diff options
| author | Svetoslav <svetoslavganov@google.com> | 2015-07-07 23:44:24 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-07-07 23:44:34 +0000 |
| commit | 3e07ee078de8e364d6be0b18b2b514e40decdb3c (patch) | |
| tree | 1984905d557837c28c3aa97aeea9a65c32d2963c /core/java | |
| parent | 15369c6c3ba50a852ed0c499eb5929436cffa005 (diff) | |
| parent | 3e7d977ff7c743713f0ad6336a039d7760ba47d1 (diff) | |
Merge "Grant installer and verifier install permissions robustly" into mnc-dev
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/content/pm/PermissionInfo.java | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/core/java/android/content/pm/PermissionInfo.java b/core/java/android/content/pm/PermissionInfo.java index 0a1f148f9ebf..1857ecfa53bb 100644 --- a/core/java/android/content/pm/PermissionInfo.java +++ b/core/java/android/content/pm/PermissionInfo.java @@ -83,6 +83,20 @@ public class PermissionInfo extends PackageItemInfo implements Parcelable { public static final int PROTECTION_FLAG_PRE23 = 0x80; /** + * Additional flag for {@link #protectionLevel}, corresponding + * to the <code>installer</code> value of + * {@link android.R.attr#protectionLevel}. + */ + public static final int PROTECTION_FLAG_INSTALLER = 0x100; + + /** + * Additional flag for {@link #protectionLevel}, corresponding + * to the <code>verifier</code> value of + * {@link android.R.attr#protectionLevel}. + */ + public static final int PROTECTION_FLAG_VERIFIER = 0x200; + + /** * Mask for {@link #protectionLevel}: the basic protection type. */ public static final int PROTECTION_MASK_BASE = 0xf; @@ -90,7 +104,7 @@ public class PermissionInfo extends PackageItemInfo implements Parcelable { /** * Mask for {@link #protectionLevel}: additional flag bits. */ - public static final int PROTECTION_MASK_FLAGS = 0xf0; + public static final int PROTECTION_MASK_FLAGS = 0xff0; /** * The level of access this permission is protecting, as per |
