summaryrefslogtreecommitdiffstats
path: root/core/java/android/content/pm
diff options
context:
space:
mode:
authorSvetoslav <svetoslavganov@google.com>2015-07-06 18:31:23 -0700
committerSvetoslav <svetoslavganov@google.com>2015-07-07 14:02:51 -0700
commit3e7d977ff7c743713f0ad6336a039d7760ba47d1 (patch)
tree78c832f2bf7fde55fd89dcfcebf19db74e7e6ac1 /core/java/android/content/pm
parent79d9219c9f9734025837a01a6f8e490d1e0ab57e (diff)
downloadframeworks_base-3e7d977ff7c743713f0ad6336a039d7760ba47d1.zip
frameworks_base-3e7d977ff7c743713f0ad6336a039d7760ba47d1.tar.gz
frameworks_base-3e7d977ff7c743713f0ad6336a039d7760ba47d1.tar.bz2
Grant installer and verifier install permissions robustly
bug:22248271 Change-Id: I3a47ae9a112ba7d88b421fcb5f9651d1168ba7a5
Diffstat (limited to 'core/java/android/content/pm')
-rw-r--r--core/java/android/content/pm/PermissionInfo.java16
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 0a1f148..1857ecf 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