From 3e7d977ff7c743713f0ad6336a039d7760ba47d1 Mon Sep 17 00:00:00 2001 From: Svetoslav Date: Mon, 6 Jul 2015 18:31:23 -0700 Subject: Grant installer and verifier install permissions robustly bug:22248271 Change-Id: I3a47ae9a112ba7d88b421fcb5f9651d1168ba7a5 --- core/java/android/content/pm/PermissionInfo.java | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'core/java/android/content/pm') 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 installer value of + * {@link android.R.attr#protectionLevel}. + */ + public static final int PROTECTION_FLAG_INSTALLER = 0x100; + + /** + * Additional flag for {@link #protectionLevel}, corresponding + * to the verifier 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 -- cgit v1.1