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

Commit f08cb151 authored by Hai Zhang's avatar Hai Zhang Committed by Android (Google) Code Review
Browse files

Revert "Deprecate retailDemo permission protection flag."

This reverts commit 7831df99.

Reason for revert: Can’t deprecate before 24Q2 cut
Fixes: 318362596
Test: presubmit

Change-Id: I5f6f97c3258b3ded48907d635858411407310fb4
parent 7831df99
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4086,7 +4086,7 @@ package android.content.pm {
    field public static final int PROTECTION_FLAG_MODULE = 4194304; // 0x400000
    field public static final int PROTECTION_FLAG_OEM = 16384; // 0x4000
    field public static final int PROTECTION_FLAG_RECENTS = 33554432; // 0x2000000
    field @Deprecated public static final int PROTECTION_FLAG_RETAIL_DEMO = 16777216; // 0x1000000
    field public static final int PROTECTION_FLAG_RETAIL_DEMO = 16777216; // 0x1000000
    field public static final int PROTECTION_FLAG_ROLE = 67108864; // 0x4000000
    field public static final int PROTECTION_FLAG_SYSTEM_TEXT_CLASSIFIER = 65536; // 0x10000
    field public static final int PROTECTION_FLAG_VENDOR_PRIVILEGED = 32768; // 0x8000
+0 −3
Original line number Diff line number Diff line
@@ -273,9 +273,6 @@ public class PermissionInfo extends PackageItemInfo implements Parcelable {
     * to the <code>retailDemo</code> value of
     * {@link android.R.attr#protectionLevel}.
     *
     * @deprecated This flag has been replaced by the retail demo role and is a no-op since Android
     *             V.
     *
     * @hide
     */
    @SystemApi
+1 −3
Original line number Diff line number Diff line
@@ -301,9 +301,7 @@
            granted to the system companion device manager service -->
        <flag name="companion" value="0x800000" />
        <!-- Additional flag from base permission type: this permission will be granted to the
             retail demo app, as defined by the OEM.
             This flag has been replaced by the retail demo role and is a no-op since Android V.
          -->
             retail demo app, as defined by the OEM. -->
        <flag name="retailDemo" value="0x1000000" />
        <!-- Additional flag from base permission type: this permission will be granted to the
             recents app. -->