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

Commit 05322204 authored by Mark Punzalan's avatar Mark Punzalan
Browse files

Add `featureFlag` manifest attribute

This attribute will be used by the system to determine whether the
element should be enabled or disabled based on the state of the feature
flags in the attribute value.

Test: Deployed to Pixel 6 Pro and booted
Bug: 297373084
Change-Id: I15413984d9c48bf5f271c4e1c90928fcabaa03bb
parent 9bc9dc71
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -419,6 +419,7 @@ package android {
  public static final class R.attr {
    field public static final int allowClearUserDataOnFailedRestore = 16844288; // 0x1010600
    field @FlaggedApi("android.content.res.manifest_flagging") public static final int featureFlag;
    field public static final int gameSessionService = 16844373; // 0x1010655
    field public static final int hotwordDetectionService = 16844326; // 0x1010626
    field @FlaggedApi("android.companion.virtual.flags.vdm_custom_ime") public static final int isVirtualDeviceOnly;
+6 −0
Original line number Diff line number Diff line
@@ -1809,6 +1809,12 @@

    <attr name="allowUpdateOwnership" format="boolean" />

    <!-- This attribute can be applied to any tag in the manifest. The system uses its value to
         determine whether the element (e.g., a permission) should be enabled or disabled
         depending on the state of feature flags.
         @hide @SystemApi @FlaggedApi("android.content.res.manifest_flagging") -->
    <attr name="featureFlag" format="string" />

    <!-- The <code>manifest</code> tag is the root of an
         <code>AndroidManifest.xml</code> file,
         describing the contents of an Android package (.apk) file.  One
+2 −0
Original line number Diff line number Diff line
@@ -119,6 +119,8 @@
    <public name="optional"/>
    <!-- @FlaggedApi("android.media.tv.flags.enable_ad_service_fw") -->
    <public name="adServiceTypes" />
    <!-- @hide @SystemApi @FlaggedApi("android.content.res.manifest_flagging") -->
    <public name="featureFlag"/>
  </staging-public-group>

  <staging-public-group type="id" first-id="0x01bc0000">