Integrate system feature codegen into SystemServer + framework
Reroute feature queries in SystemServer init for the following APIS:
* hasFeatureWatch
* hasFeatureAutomotive
* hasFeatureEmbedded
Also handle related queries in ApplicationPackageManager for such
features. The current codegen is a no-op with respect to this behavior
as RELEASE_USE_SYSTEM_FEATURE_BUILD_FLAGS is flagged as off, and
these features are not yet defined at compile time.
A follow-up change will refactor additional feature types and
queries to use the new helper API, with some supportive lint checks
where appropriate. This usage remains restricted to internal platform
targets.
Bug: 203143243
Test: atest FrameworksServicesTests FrameworksCoreTests
Flag: build.RELEASE_USE_SYSTEM_FEATURE_BUILD_FLAGS
Change-Id: I3d82c9d775b23106238dd4bb067d69465332de85
2 files changed