diff options
author | 2024-07-31 21:35:24 +0000 | |
---|---|---|
committer | 2024-08-09 17:49:31 +0000 | |
commit | 230d6502e7cfb6008d11825baa8604e7e331c1a2 (patch) | |
tree | f903885578a3d1dee993f936f41d434afc74a2e2 /libs/androidfw/PosixUtils.cpp | |
parent | b7e715d8d900f0095cfd66be459f9960c36651ff (diff) |
Initial system feature codegen prototype
Add a simple codegen utility for system features that:
* Exports a `hasFeatureX` method for each defined system feature
* Hardcodes the result if readonly system features are enabled
* Falls back to a runtime query otherwise
Note that this tool is not yet used, referenced, or enabled in any
production code. Follow-up changes will route build flags into
inputs for the codegen, and the outputs will be wired into the
framework.
Test: atest systemfeatures-gen-tests --host
Bug: 203143243
Change-Id: I059a38b11305c759662ea6c74c11d3cfdb058c40
Diffstat (limited to 'libs/androidfw/PosixUtils.cpp')
0 files changed, 0 insertions, 0 deletions