diff options
author | 2024-11-26 10:11:33 +0100 | |
---|---|---|
committer | 2024-11-26 10:11:33 +0100 | |
commit | 2d163c6372d5d3d6e93437f590d58f369fb6a8ea (patch) | |
tree | 29d375526258860c8053fe54a91327541c7baced /mediaprovider_flags.aconfig | |
parent | 202654b1da73e8ad1f7d42b49d9359f201f14c01 (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: I596b8e6e03e5e3e51a0e8200b8475a1be18c58e0
Diffstat (limited to 'mediaprovider_flags.aconfig')
-rw-r--r-- | mediaprovider_flags.aconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mediaprovider_flags.aconfig b/mediaprovider_flags.aconfig index 2aa0fb0e9..bcccc0eba 100644 --- a/mediaprovider_flags.aconfig +++ b/mediaprovider_flags.aconfig @@ -217,6 +217,7 @@ flag { description: "This flag controls the Capabilities APIs in CloudMediaProvider and the contract." bug: "370445733" is_fixed_read_only: true + is_exported: true } flag { |