diff options
author | 2024-11-26 10:11:33 +0100 | |
---|---|---|
committer | 2024-11-26 10:11:33 +0100 | |
commit | 2781af86501eafbd42fa80ffeefd4f7dd3782735 (patch) | |
tree | 2a62382ea28a275408441766bc3398ea3dd1dd01 | |
parent | bb280871585d0adb8d4de66d72a7cb5fffab4bb3 (diff) |
Mark @FlaggedApi flags as exported
An aconfig flag that is used together with @FlaggedApi must be marked as
`is_exported: true` to guarantee that the auto-generated lookup code
checks the actual flag value (instead of using a hard-coded value set at
compile time). This is important when the API is called across aconfig
container boundaries (e.g. a mainline module calling code on the system
partition).
Mark all non-exported flags used with @FlaggedApi as exported.
The "all @FlaggedApi flags are exported" invariant should be checked at
build time; this will be added in future CLs.
Bug: 378061535
Test: treehugger
Flag: EXEMPT can't flag changes to flag declarations
Change-Id: I760df548aa0fea078bd16e182b5eaaeeeefbe8a1
-rw-r--r-- | flags/wifi_flags.aconfig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/flags/wifi_flags.aconfig b/flags/wifi_flags.aconfig index 581e4e6e43..e914e9d225 100644 --- a/flags/wifi_flags.aconfig +++ b/flags/wifi_flags.aconfig @@ -84,6 +84,7 @@ flag { description: "Add new API to get channel width" bug: "335358378" is_fixed_read_only: true + is_exported: true } flag { @@ -123,6 +124,7 @@ flag { description: "optimize local-only connection API" bug: "347117408" is_fixed_read_only: true + is_exported: true } flag { |