Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b47d056c authored by Jared Duke's avatar Jared Duke
Browse files

Integrate SDK system feature cache behind a flag

Add the SDK system feature cache to the hasSystemFeature query lookup.
This involves populating the initial cache array in system server, and
handing this as a compact int array (<1KB) to each process via
ApplicationSharedMemory.

Currently, the compact array is copied into Java heap for easy and fast
access. Follow-up work will explore reusing the mapped buffer and
relying on JNI and/or MappedByteBuffer for zero-copy access.

Flag: android.content.pm.cache_sdk_system_features
Bug: 326623529
Test: presubmit
Change-Id: I905e82eb7ae3a6714cb3751280b927f8bb379358
parent a5c29f6c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment