Home
last modified time | relevance | path

Searched refs:PermissionInfo (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/base/core/java/android/content/pm/
DPermissionInfo.java38 public class PermissionInfo extends PackageItemInfo implements Parcelable { class
437 case PermissionInfo.PROTECTION_DANGEROUS: in protectionToString()
440 case PermissionInfo.PROTECTION_NORMAL: in protectionToString()
443 case PermissionInfo.PROTECTION_SIGNATURE: in protectionToString()
446 case PermissionInfo.PROTECTION_SIGNATURE_OR_SYSTEM: in protectionToString()
450 if ((level & PermissionInfo.PROTECTION_FLAG_PRIVILEGED) != 0) { in protectionToString()
453 if ((level & PermissionInfo.PROTECTION_FLAG_DEVELOPMENT) != 0) { in protectionToString()
456 if ((level & PermissionInfo.PROTECTION_FLAG_APPOP) != 0) { in protectionToString()
459 if ((level & PermissionInfo.PROTECTION_FLAG_PRE23) != 0) { in protectionToString()
462 if ((level & PermissionInfo.PROTECTION_FLAG_INSTALLER) != 0) { in protectionToString()
[all …]
DPermissionInfo.aidl20 parcelable PermissionInfo;
DPackageInfo.java198 public PermissionInfo[] permissions;
528 permissions = source.createTypedArray(PermissionInfo.CREATOR); in PackageInfo()
DIPackageManager.aidl44 import android.content.pm.PermissionInfo;
81 PermissionInfo getPermissionInfo(String name, String packageName, int flags); in getPermissionInfo()
114 boolean addPermission(in PermissionInfo info); in addPermission()
630 boolean addPermissionAsync(in PermissionInfo info); in addPermissionAsync()
DPackageParser.java789 pi.permissions = new PermissionInfo[N]; in generatePackageInfo()
3238 PermissionInfo.PROTECTION_NORMAL); in parsePermission()
3245 perm.info.flags &= ~PermissionInfo.FLAG_HARD_RESTRICTED; in parsePermission()
3246 perm.info.flags &= ~PermissionInfo.FLAG_SOFT_RESTRICTED; in parsePermission()
3249 if ((perm.info.flags & PermissionInfo.FLAG_HARD_RESTRICTED) != 0 in parsePermission()
3250 && (perm.info.flags & PermissionInfo.FLAG_SOFT_RESTRICTED) != 0) { in parsePermission()
3264 perm.info.protectionLevel = PermissionInfo.fixProtectionLevel(perm.info.protectionLevel); in parsePermission()
3267 if ( (perm.info.protectionLevel&PermissionInfo.PROTECTION_FLAG_INSTANT) == 0 in parsePermission()
3268 && (perm.info.protectionLevel&PermissionInfo.PROTECTION_FLAG_RUNTIME_ONLY) == 0 in parsePermission()
3269 && (perm.info.protectionLevel&PermissionInfo.PROTECTION_MASK_BASE) != in parsePermission()
[all …]
DPackageManager.java3581 public abstract PermissionInfo getPermissionInfo(@NonNull String permissionName, in getPermissionInfo()
3597 public abstract List<PermissionInfo> queryPermissionsByGroup(@NonNull String permissionGroup, in queryPermissionsByGroup()
3934 public abstract boolean addPermission(@NonNull PermissionInfo info); in addPermission()
3943 public abstract boolean addPermissionAsync(@NonNull PermissionInfo info); in addPermissionAsync()
/frameworks/base/services/core/java/com/android/server/pm/permission/
DBasePermission.java20 import static android.content.pm.PermissionInfo.PROTECTION_DANGEROUS;
21 import static android.content.pm.PermissionInfo.PROTECTION_NORMAL;
22 import static android.content.pm.PermissionInfo.PROTECTION_SIGNATURE;
23 import static android.content.pm.PermissionInfo.PROTECTION_SIGNATURE_OR_SYSTEM;
34 import android.content.pm.PermissionInfo;
94 PermissionInfo pendingPermissionInfo;
113 protectionLevel = PermissionInfo.PROTECTION_SIGNATURE; in BasePermission()
183 return (protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in isNormal()
184 == PermissionInfo.PROTECTION_NORMAL; in isNormal()
187 return (protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in isRuntime()
[all …]
DPermissionManagerServiceInternal.java26 import android.content.pm.PermissionInfo;
125 public abstract boolean addDynamicPermission(@NonNull PermissionInfo info, boolean async, in addDynamicPermission()
147 public abstract @Nullable PermissionInfo getPermissionInfo(@NonNull String permName, in getPermissionInfo()
152 public abstract @Nullable List<PermissionInfo> getPermissionInfoByGroup(@NonNull String group, in getPermissionInfoByGroup()
200 public abstract @NonNull ArrayList<PermissionInfo> getAllPermissionWithProtectionLevel( in getAllPermissionWithProtectionLevel()
201 @PermissionInfo.Protection int protectionLevel); in getAllPermissionWithProtectionLevel()
DPermissionManagerService.java58 import android.content.pm.PermissionInfo;
520 private PermissionInfo getPermissionInfo(String permName, String packageName, int flags, in getPermissionInfo()
537 private List<PermissionInfo> getPermissionInfoByGroup( in getPermissionInfoByGroup()
546 final ArrayList<PermissionInfo> out = new ArrayList<PermissionInfo>(10); in getPermissionInfoByGroup()
548 final PermissionInfo pi = bp.generatePermissionInfo(groupName, flags); in getPermissionInfoByGroup()
561 & (PermissionInfo.PROTECTION_NORMAL in adjustPermissionProtectionFlagsLocked()
562 | PermissionInfo.PROTECTION_DANGEROUS in adjustPermissionProtectionFlagsLocked()
563 | PermissionInfo.PROTECTION_SIGNATURE); in adjustPermissionProtectionFlagsLocked()
564 if (protectionLevelMasked == PermissionInfo.PROTECTION_SIGNATURE) { in adjustPermissionProtectionFlagsLocked()
627 if ((newProtection & PermissionInfo.PROTECTION_DANGEROUS) != 0) { in revokeRuntimePermissionsIfGroupChanged()
[all …]
DDefaultPermissionGrantPolicy.java39 import android.content.pm.PermissionInfo;
1564 final PermissionInfo pi = mContext.getPackageManager().getPermissionInfo(name, 0); in isPermissionDangerous()
1565 return (pi.getProtection() == PermissionInfo.PROTECTION_DANGEROUS); in isPermissionDangerous()
/frameworks/base/services/core/java/com/android/server/policy/
DPermissionPolicyService.java42 import android.content.pm.PermissionInfo;
147 final ArrayList<PermissionInfo> dangerousPerms = in onStart()
149 PermissionInfo.PROTECTION_DANGEROUS); in onStart()
154 PermissionInfo perm = dangerousPerms.get(i); in onStart()
560 private void addOpIfRestricted(@NonNull PermissionInfo permissionInfo, in addOpIfRestricted()
631 final PermissionInfo bgPermInfo = mPackageManager.getPermissionInfo(perm, 0); in isBgPermRestricted()
656 private void addOpIfFgPermissions(@NonNull PermissionInfo permissionInfo, in addOpIfFgPermissions()
730 final PermissionInfo permissionInfo; in addPackage()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DMetaDataTest.java23 import android.content.pm.PermissionInfo;
157 PermissionInfo pi = mContext.getPackageManager().getPermissionInfo( in testPermissionWithData()
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/testutils/
DPackageManagerStub.java23 import android.content.pm.PermissionInfo;
125 public PermissionInfo getPermissionInfo(String name, int flags) in getPermissionInfo()
131 public List<PermissionInfo> queryPermissionsByGroup(String group, int flags) in queryPermissionsByGroup()
224 public boolean addPermission(PermissionInfo info) { in addPermission()
229 public boolean addPermissionAsync(PermissionInfo info) { in addPermissionAsync()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgePackageManager.java41 import android.content.pm.PermissionInfo;
144 public PermissionInfo getPermissionInfo(String name, int flags) throws NameNotFoundException { in getPermissionInfo()
149 public List<PermissionInfo> queryPermissionsByGroup(String group, int flags) in queryPermissionsByGroup()
242 public boolean addPermission(PermissionInfo info) { in addPermission()
247 public boolean addPermissionAsync(PermissionInfo info) { in addPermissionAsync()
/frameworks/base/test-mock/src/android/test/mock/
DMockPackageManager.java41 import android.content.pm.PermissionInfo;
147 public PermissionInfo getPermissionInfo(String name, int flags) in getPermissionInfo()
153 public List<PermissionInfo> queryPermissionsByGroup(String group, int flags) in queryPermissionsByGroup()
257 public boolean addPermission(PermissionInfo info) { in addPermission()
262 public boolean addPermissionAsync(PermissionInfo info) { in addPermissionAsync()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerShellCommand.java57 import android.content.pm.PermissionInfo;
850 PermissionInfo.PROTECTION_DANGEROUS, in runListPermissions()
851 PermissionInfo.PROTECTION_DANGEROUS); in runListPermissions()
856 PermissionInfo.PROTECTION_NORMAL, in runListPermissions()
857 PermissionInfo.PROTECTION_NORMAL); in runListPermissions()
863 PermissionInfo.PROTECTION_NORMAL, in runListPermissions()
864 PermissionInfo.PROTECTION_DANGEROUS); in runListPermissions()
2886 List<PermissionInfo> ps = in doListPermissions()
2891 PermissionInfo pi = ps.get(p); in doListPermissions()
2895 final int base = pi.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE; in doListPermissions()
[all …]
DSettings.java47 import android.content.pm.PermissionInfo;
4701 pw.print(PermissionInfo.protectionToString(perm.info.protectionLevel)); in dumpPackageLPr()
4702 if ((perm.info.flags&PermissionInfo.FLAG_COSTS_MONEY) != 0) { in dumpPackageLPr()
4705 if ((perm.info.flags&PermissionInfo.FLAG_REMOVED) != 0) { in dumpPackageLPr()
4708 if ((perm.info.flags&PermissionInfo.FLAG_INSTALLED) != 0) { in dumpPackageLPr()
DPackageManagerService.java186 import android.content.pm.PermissionInfo;
4609 public PermissionInfo getPermissionInfo(String name, String packageName, int flags) { in getPermissionInfo()
4614 public @Nullable ParceledListSlice<PermissionInfo> queryPermissionsByGroup(String groupName, in queryPermissionsByGroup()
4616 final List<PermissionInfo> permissionList = in queryPermissionsByGroup()
5688 private boolean addDynamicPermission(PermissionInfo info, final boolean async) { in addDynamicPermission()
5703 public boolean addPermission(PermissionInfo info) {
5710 public boolean addPermissionAsync(PermissionInfo info) {
17521 if ((perm.info.protectionLevel & PermissionInfo.PROTECTION_FLAG_INSTANT) != 0
17526 perm.info.protectionLevel &= ~PermissionInfo.PROTECTION_FLAG_INSTANT;
17586 if ((perm.info.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE)
[all …]
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageParserTest.java429 packageName, PermissionInfo.PROTECTION_NORMAL, p.permissions.get(0)); in checkPackageWithComponents()
475 PermissionInfo.PROTECTION_NORMAL, parent.permissions.get(0)); in testMultiPackageComponents()
DPackageManagerTests.java626 PermissionInfo pi = pm.getPermissionInfo(cmd, 0); in assertPermissions()
/frameworks/base/test-mock/api/
Dcurrent.txt194 method @Deprecated public boolean addPermission(android.content.pm.PermissionInfo);
195 method @Deprecated public boolean addPermissionAsync(android.content.pm.PermissionInfo);
246 …method @Deprecated public android.content.pm.PermissionInfo getPermissionInfo(String, int) throws …
276 …method @Deprecated public java.util.List<android.content.pm.PermissionInfo> queryPermissionsByGrou…
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java54 import android.content.pm.PermissionInfo;
315 public PermissionInfo getPermissionInfo(String name, int flags) in getPermissionInfo()
318 PermissionInfo pi = mPM.getPermissionInfo(name, in getPermissionInfo()
332 public List<PermissionInfo> queryPermissionsByGroup(String group, int flags) in queryPermissionsByGroup()
335 ParceledListSlice<PermissionInfo> parceledList = in queryPermissionsByGroup()
338 List<PermissionInfo> pi = parceledList.getList(); in queryPermissionsByGroup()
654 public boolean addPermission(PermissionInfo info) { in addPermission()
663 public boolean addPermissionAsync(PermissionInfo info) { in addPermissionAsync()
/frameworks/base/services/core/java/com/android/server/am/
DBroadcastQueue.java35 import android.content.pm.PermissionInfo;
927 PermissionInfo pi = pm.getPermissionInfo(perms[i], "android", 0); in isSignaturePerm()
933 if ((pi.protectionLevel & (PermissionInfo.PROTECTION_MASK_BASE in isSignaturePerm()
934 | PermissionInfo.PROTECTION_FLAG_PRIVILEGED)) in isSignaturePerm()
935 != PermissionInfo.PROTECTION_SIGNATURE) { in isSignaturePerm()
/frameworks/base/services/core/java/com/android/server/stats/
DStatsCompanionService.java20 import static android.content.pm.PermissionInfo.PROTECTION_DANGEROUS;
57 import android.content.pm.PermissionInfo;
1999 PermissionInfo permissionInfo; in pullDangerousPermissionState()
/frameworks/base/services/core/java/com/android/server/
DAlarmManagerService.java47 import android.content.pm.PermissionInfo;
3930 PermissionInfo sysUiPerm = pm.getPermissionInfo(SYSTEM_UI_SELF_PERMISSION, 0); in getSystemUiUid()

12