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

Commit e80ecd55 authored by Evan Severson's avatar Evan Severson
Browse files

Add reserved permission flag values for the permission controller

The permission controller may need flags that are of no interest to
other apps. The definition of these flags should therefore be in the
permission controller.

Bug: 148095482
Test: Compile
Change-Id: I3c20a510bc26315f7d8d04b0c74f8fa68e8d70e2
parent e9a4f023
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2221,6 +2221,7 @@ package android.content.pm {
    field public static final String FEATURE_BROADCAST_RADIO = "android.hardware.broadcastradio";
    field public static final String FEATURE_REBOOT_ESCROW = "android.hardware.reboot_escrow";
    field public static final String FEATURE_TELEPHONY_CARRIERLOCK = "android.hardware.telephony.carrierlock";
    field public static final int FLAGS_PERMISSION_RESERVED_PERMISSIONCONTROLLER = -268435456; // 0xf0000000
    field public static final int FLAG_PERMISSION_APPLY_RESTRICTION = 16384; // 0x4000
    field public static final int FLAG_PERMISSION_GRANTED_BY_DEFAULT = 32; // 0x20
    field public static final int FLAG_PERMISSION_GRANTED_BY_ROLE = 32768; // 0x8000
+9 −0
Original line number Diff line number Diff line
@@ -3286,6 +3286,15 @@ public abstract class PackageManager {
    @SystemApi
    public static final int FLAG_PERMISSION_ONE_TIME = 1 << 16;

    /**
     * Permission flags: Reserved for use by the permission controller.
     *
     * @hide
     */
    @SystemApi
    public static final int FLAGS_PERMISSION_RESERVED_PERMISSIONCONTROLLER = 1 << 28 | 1 << 29
            | 1 << 30 | 1 << 31;

    /**
     * Permission flags: Bitwise or of all permission flags allowing an
     * exemption for a restricted permission.