diff options
| author | 2024-09-19 23:25:21 +0000 | |
|---|---|---|
| committer | 2024-10-15 22:04:30 +0000 | |
| commit | 2a90b8fa79c96539f18e108fc97b653af7b2beda (patch) | |
| tree | 6c83ce196b3e28779f706ff1797dfa236a306e3e /libs/androidfw/StringPool.cpp | |
| parent | 35bb4587b0f6435dfcdb4b7937506239bbd2c4f6 (diff) | |
Integrate system feature codegen into SystemConfig
Add initial hooks from SystemConfig to query against system features
that are compiled into the framework via build flags. The behavior
is as follows:
* System features compiled as available will always be exposed
* System features compiled as unavailable will never be exposed
* Runtime parsing of system features won't override compiled features
Currently, we log a warning if there's a conflict between the set of
compiled and runtime system features, but this will likely be elevated
to an exception after additional hardening and development.
The current codegen is a no-op with respect to this behavior, as
RELEASE_USE_SYSTEM_FEATURE_BUILD_FLAGS is flagged as off.
A follow-up change will integrate RoSystemFeature queries into:
* ApplicationPackageManager - To bypass binder calls when possible
* SystemServer - For various hasSystemFeature checks
Bug: 203143243
Test: atest FrameworksServicesTests
Flag: build.RELEASE_USE_SYSTEM_FEATURE_BUILD_FLAGS
Change-Id: I1fcd2f2f86dc5605f33182e88fc98a21b57bf812
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions