/frameworks/base/services/core/java/com/android/server/pm/permission/ |
H A D | BasePermission.java | 89 int protectionLevel; field in class:BasePermission 112 protectionLevel = PermissionInfo.PROTECTION_SIGNATURE; 125 return protectionLevel; 182 return (protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) 186 return (protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) 190 return (protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) == 195 return (protectionLevel & PermissionInfo.PROTECTION_FLAG_APPOP) != 0; 199 && (protectionLevel & PermissionInfo.PROTECTION_FLAG_DEVELOPMENT) != 0; 202 return (protectionLevel & PermissionInfo.PROTECTION_FLAG_INSTALLER) != 0; 205 return (protectionLevel 250 addToTree(@rotectionLevel int protectionLevel, @NonNull PermissionInfo info, @NonNull BasePermission tree) argument [all...] |
H A D | PermissionManagerService.java | 361 int protectionLevel, String packageName, int uid) { 363 final int protectionLevelMasked = protectionLevel 368 return protectionLevel; 374 return protectionLevel; 379 return protectionLevel; 387 return protectionLevel; 390 return protectionLevel; 392 return protectionLevel; 619 int fixedLevel = PermissionInfo.fixProtectionLevel(info.protectionLevel); 959 + " (protectionLevel 360 adjustPermissionProtectionFlagsLocked( int protectionLevel, String packageName, int uid) argument [all...] |
/frameworks/support/compat/src/androidTest/java/androidx/core/content/pm/ |
H A D | PermissionInfoCompatTest.java | 34 pi.protectionLevel = PermissionInfo.PROTECTION_DANGEROUS 43 pi.protectionLevel = 0xf | 0xfff0;
|
/frameworks/base/core/java/android/content/pm/ |
H A D | PermissionInfo.java | 36 * A normal application value for {@link #protectionLevel}, corresponding 38 * {@link android.R.attr#protectionLevel}. 43 * Dangerous value for {@link #protectionLevel}, corresponding 45 * {@link android.R.attr#protectionLevel}. 50 * System-level value for {@link #protectionLevel}, corresponding 52 * {@link android.R.attr#protectionLevel}. 74 * Additional flag for {@link #protectionLevel}, corresponding 76 * {@link android.R.attr#protectionLevel}. 89 * Additional flag for {@link #protectionLevel}, corresponding 91 * {@link android.R.attr#protectionLevel} 237 public int protectionLevel; field in class:PermissionInfo [all...] |
H A D | PackageParser.java | 3147 perm.info.protectionLevel = sa.getInt( 3156 if (perm.info.protectionLevel == -1) { 3157 outError[0] = "<permission> does not specify protectionLevel"; 3162 perm.info.protectionLevel = PermissionInfo.fixProtectionLevel(perm.info.protectionLevel); 3165 if ( (perm.info.protectionLevel&PermissionInfo.PROTECTION_FLAG_INSTANT) == 0 3166 && (perm.info.protectionLevel&PermissionInfo.PROTECTION_FLAG_RUNTIME_ONLY) == 0 3167 && (perm.info.protectionLevel&PermissionInfo.PROTECTION_MASK_BASE) != 3169 outError[0] = "<permission> protectionLevel specifies a non-instant flag but is " 3222 perm.info.protectionLevel [all...] |
/frameworks/support/compat/src/main/java/androidx/core/content/pm/ |
H A D | PermissionInfoCompat.java | 76 return permissionInfo.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE; 89 return permissionInfo.protectionLevel & ~PermissionInfo.PROTECTION_MASK_BASE;
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
H A D | PackageParserTest.java | 352 private void assertPermission(String name, String packageName, int protectionLevel, argument 356 assertEquals(protectionLevel, permission.info.protectionLevel);
|
/frameworks/base/core/java/android/widget/ |
H A D | AppSecurityPermissions.java | 538 final int base = pInfo.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE; 547 || ((pInfo.protectionLevel&PermissionInfo.PROTECTION_FLAG_PRE23) != 0); 551 ((pInfo.protectionLevel&PermissionInfo.PROTECTION_FLAG_DEVELOPMENT) != 0); 568 + ": protlevel=0x" + Integer.toHexString(pInfo.protectionLevel));
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
H A D | PackageParserTest.java | 329 assertEquals(a.info.protectionLevel, b.info.protectionLevel);
|
/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | PackageManagerShellCommand.java | 2584 final int base = pi.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE; 2616 pw.println(prefix + " protectionLevel:" 2617 + PermissionInfo.protectionToString(pi.protectionLevel));
|
H A D | PackageManagerService.java | 17317 if ((perm.info.protectionLevel & PermissionInfo.PROTECTION_FLAG_INSTANT) != 0 17322 perm.info.protectionLevel &= ~PermissionInfo.PROTECTION_FLAG_INSTANT; 17381 if ((perm.info.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) 17387 perm.info.protectionLevel = bp.getProtectionLevel(); [all...] |
H A D | Settings.java | 4725 pw.print(PermissionInfo.protectionToString(perm.info.protectionLevel));
|
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | BroadcastQueue.java | 809 if ((pi.protectionLevel & (PermissionInfo.PROTECTION_MASK_BASE
|
H A D | ActivityManagerService.java | 9069 return (info.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) [all...] |
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
H A D | DevicePolicyManagerService.java | 10895 return (permissionInfo.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE)
|