Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1d26f393 authored by Mårten Kongstad's avatar Mårten Kongstad
Browse files

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
parent b7222fdf
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@ flag {
   namespace: "backstage_power"
   description: "Detect, report and take action on jobs that maybe abandoned by the app without calling jobFinished."
   bug: "372529068"
   is_exported: true
}

flag {
@@ -36,6 +37,7 @@ flag {
    namespace: "backstage_power"
    description: "Ignore the important_while_foreground flag and change the related APIs to be not effective"
    bug: "374175032"
    is_exported: true
}

flag {
+1 −0
Original line number Diff line number Diff line
@@ -164,4 +164,5 @@ flag {
     name: "app_start_info_component"
     description: "Control ApplicationStartInfo component field and API"
     bug: "362537357"
     is_exported: true
}
+2 −0
Original line number Diff line number Diff line
@@ -367,6 +367,7 @@ flag {
    namespace: "enterprise"
    description: "API that removes a given managed profile."
    bug: "372652841"
    is_exported: true
}

flag {
@@ -390,6 +391,7 @@ flag {
  namespace: "enterprise"
  description: "Split up existing create and provision managed profile API."
  bug: "375382324"
  is_exported: true
}

flag {
+1 −0
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@ flag {
  namespace: "machine_learning"
  description: "Flag to enable the service"
  bug: "309689654"
  is_exported: true
}
flag {
  name: "enable_token_refresh"
+1 −0
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@ flag {
  namespace: "system_performance"
  description: "Control the API portion of Detailed Application Jank Metrics"
  bug: "366264614"
  is_exported: true
}

flag {
Loading