diff options
| author | Peter Visontay <pvisontay@google.com> | 2017-11-23 11:06:46 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2017-11-23 11:06:46 +0000 |
| commit | 79af02db0331fa85ec70ddc042a9c6ad24de5c8a (patch) | |
| tree | 325cbb323004d5f3ee878e287024637d933d94df /core/java | |
| parent | a98bd9989e88896c2caf945bf52c9164587bffc3 (diff) | |
| parent | 51fbad5a7664812554491a89b604c10c00f84367 (diff) | |
Merge "Fix outdated docs of permission protection levels."
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/content/pm/PermissionInfo.java | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/core/java/android/content/pm/PermissionInfo.java b/core/java/android/content/pm/PermissionInfo.java index 5dd7aeda408f..75887624eef3 100644 --- a/core/java/android/content/pm/PermissionInfo.java +++ b/core/java/android/content/pm/PermissionInfo.java @@ -155,12 +155,18 @@ public class PermissionInfo extends PackageItemInfo implements Parcelable { /** * The level of access this permission is protecting, as per - * {@link android.R.attr#protectionLevel}. Values may be - * {@link #PROTECTION_NORMAL}, {@link #PROTECTION_DANGEROUS}, or - * {@link #PROTECTION_SIGNATURE}. May also include the additional - * flags {@link #PROTECTION_FLAG_SYSTEM} or {@link #PROTECTION_FLAG_DEVELOPMENT} - * (which only make sense in combination with the base - * {@link #PROTECTION_SIGNATURE}. + * {@link android.R.attr#protectionLevel}. Consists of + * a base permission type and zero or more flags: + * + * <pre> + * int basePermissionType = protectionLevel & {@link #PROTECTION_MASK_BASE}; + * int permissionFlags = protectionLevel & {@link #PROTECTION_MASK_FLAGS}; + * </pre> + * + * <p></p>Base permission types are {@link #PROTECTION_NORMAL}, + * {@link #PROTECTION_DANGEROUS}, {@link #PROTECTION_SIGNATURE} + * and the deprecated {@link #PROTECTION_SIGNATURE_OR_SYSTEM}. + * Flags are listed under {@link android.R.attr#protectionLevel}. */ public int protectionLevel; |
