diff options
author | 2024-11-26 10:11:29 +0100 | |
---|---|---|
committer | 2024-11-26 10:11:29 +0100 | |
commit | 1d26f393038f039985275d87770cb3bf02335153 (patch) | |
tree | ab16de6b9c282dfc9cdeabfc0e2a47255b071c7d /location | |
parent | b7222fdf7537a422c1384cc97d37b5cf86899ec5 (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: If45930e4afdcc87e374679ea73502651ce2de445
Diffstat (limited to 'location')
-rw-r--r-- | location/java/android/location/flags/location.aconfig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/location/java/android/location/flags/location.aconfig b/location/java/android/location/flags/location.aconfig index 24e1d32164d0..5395206155b3 100644 --- a/location/java/android/location/flags/location.aconfig +++ b/location/java/android/location/flags/location.aconfig @@ -6,6 +6,7 @@ flag { namespace: "location" description: "Deprecates LocationManager ProviderChanged APIs" bug: "361811782" + is_exported: true } flag { @@ -27,6 +28,7 @@ flag { namespace: "location" description: "Flag for new Geocoder APIs" bug: "229872126" + is_exported: true } flag { @@ -56,6 +58,7 @@ flag { namespace: "location" description: "Flag for making geoid heights available via the Altitude HAL" bug: "304375846" + is_exported: true } flag { @@ -63,6 +66,7 @@ flag { namespace: "location" description: "Flag for GNSS API for NavIC L1" bug: "302199306" + is_exported: true } flag { @@ -70,6 +74,7 @@ flag { namespace: "location" description: "Flag for GnssMeasurementRequest WorkSource API" bug: "295235160" + is_exported: true } flag { @@ -129,6 +134,7 @@ flag { metadata { purpose: PURPOSE_BUGFIX } + is_exported: true } flag { |