/frameworks/base/services/core/java/com/android/server/am/ |
D | UriPermissionOwner.java | 77 UriPermission perm = it.next(); in removeUriPermissionLocked() local 78 if (grantUri == null || grantUri.equals(perm.uri)) { in removeUriPermissionLocked() 79 perm.removeReadOwner(this); in removeUriPermissionLocked() 80 service.removeUriPermissionIfNeededLocked(perm); in removeUriPermissionLocked() 92 UriPermission perm = it.next(); in removeUriPermissionLocked() local 93 if (grantUri == null || grantUri.equals(perm.uri)) { in removeUriPermissionLocked() 94 perm.removeWriteOwner(this); in removeUriPermissionLocked() 95 service.removeUriPermissionIfNeededLocked(perm); in removeUriPermissionLocked() 105 public void addReadPermission(UriPermission perm) { in addReadPermission() argument 109 mReadPerms.add(perm); in addReadPermission() [all …]
|
D | UriPermission.java | 371 private Snapshot(UriPermission perm) { in Snapshot() argument 372 this.targetUserId = perm.targetUserId; in Snapshot() 373 this.sourcePkg = perm.sourcePkg; in Snapshot() 374 this.targetPkg = perm.targetPkg; in Snapshot() 375 this.uri = perm.uri; in Snapshot() 376 this.persistedModeFlags = perm.persistedModeFlags; in Snapshot() 377 this.persistedCreateTime = perm.persistedCreateTime; in Snapshot()
|
D | BroadcastQueue.java | 506 int perm = mService.checkComponentPermission(filter.requiredPermission, in deliverToRegisteredReceiverLocked() local 508 if (perm != PackageManager.PERMISSION_GRANTED) { in deliverToRegisteredReceiverLocked() 535 int perm = mService.checkComponentPermission(requiredPermission, in deliverToRegisteredReceiverLocked() local 537 if (perm != PackageManager.PERMISSION_GRANTED) { in deliverToRegisteredReceiverLocked() 569 int perm = mService.checkComponentPermission(null, in deliverToRegisteredReceiverLocked() local 571 if (perm != PackageManager.PERMISSION_GRANTED) { in deliverToRegisteredReceiverLocked() 988 int perm = mService.checkComponentPermission(info.activityInfo.permission, in processNextBroadcast() local 991 if (!skip && perm != PackageManager.PERMISSION_GRANTED) { in processNextBroadcast() 1029 perm = AppGlobals.getPackageManager(). in processNextBroadcast() 1035 perm = PackageManager.PERMISSION_DENIED; in processNextBroadcast() [all …]
|
D | ActivityManagerService.java | 7992 UriPermission perm = targetUris.get(grantUri); in findOrCreateUriPermissionLocked() local 7993 if (perm == null) { in findOrCreateUriPermissionLocked() 7994 perm = new UriPermission(sourcePkg, targetPkg, targetUid, grantUri); in findOrCreateUriPermissionLocked() 7995 targetUris.put(grantUri, perm); in findOrCreateUriPermissionLocked() 7998 return perm; in findOrCreateUriPermissionLocked() 8024 final UriPermission perm = perms.valueAt(i); in checkUriPermissionLocked() local 8025 if (perm.uri.prefix && grantUri.uri.isPathPrefixMatch(perm.uri.uri) in checkUriPermissionLocked() 8026 && perm.getStrength(modeFlags) >= minStrength) { in checkUriPermissionLocked() 8230 final UriPermission perm = findOrCreateUriPermissionLocked( in grantUriPermissionUncheckedLocked() local 8232 perm.grantModes(modeFlags, owner); in grantUriPermissionUncheckedLocked() [all …]
|
/frameworks/native/cmds/servicemanager/ |
D | service_manager.c | 67 static bool check_mac_perms(pid_t spid, uid_t uid, const char *tctx, const char *perm, const char *… in check_mac_perms() argument 83 int result = selinux_check_access(sctx, tctx, class, perm, (void *) &ad); in check_mac_perms() 90 static bool check_mac_perms_from_getcon(pid_t spid, uid_t uid, const char *perm) in check_mac_perms_from_getcon() argument 96 return check_mac_perms(spid, uid, service_manager_context, perm, NULL); in check_mac_perms_from_getcon() 99 static bool check_mac_perms_from_lookup(pid_t spid, uid_t uid, const char *perm, const char *name) in check_mac_perms_from_lookup() argument 118 allowed = check_mac_perms(spid, uid, tctx, perm, name); in check_mac_perms_from_lookup() 125 const char *perm = "add"; in svc_can_register() local 131 return check_mac_perms_from_lookup(spid, uid, perm, str8(name, name_len)) ? 1 : 0; in svc_can_register() 136 const char *perm = "list"; in svc_can_list() local 137 return check_mac_perms_from_getcon(spid, uid, perm) ? 1 : 0; in svc_can_list() [all …]
|
/frameworks/compile/mclinker/lib/Support/Unix/ |
D | FileSystem.inc | 106 mode_t perm = 0; 108 perm |= S_IRUSR; 110 perm |= S_IWUSR; 112 perm |= S_IXUSR; 114 perm |= S_IRGRP; 116 perm |= S_IWGRP; 118 perm |= S_IXGRP; 120 perm |= S_IROTH; 122 perm |= S_IWOTH; 124 perm |= S_IXOTH; [all …]
|
/frameworks/base/core/java/com/android/server/ |
D | SystemConfig.java | 312 String perm = parser.getAttributeValue(null, "name"); in readPermissionsFromXml() local 313 if (perm == null) { in readPermissionsFromXml() 319 perm = perm.intern(); in readPermissionsFromXml() 320 readPermission(parser, perm); in readPermissionsFromXml() 323 String perm = parser.getAttributeValue(null, "name"); in readPermissionsFromXml() local 324 if (perm == null) { in readPermissionsFromXml() 345 perm = perm.intern(); in readPermissionsFromXml() 351 perms.add(perm); in readPermissionsFromXml() 560 final PermissionEntry perm = new PermissionEntry(name, perUser); in readPermission() local 561 mPermissions.put(name, perm); in readPermission() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | AppSecurityPermissions.java | 91 MyPermissionGroupInfo(PermissionInfo perm) { in MyPermissionGroupInfo() argument 92 name = perm.packageName; in MyPermissionGroupInfo() 93 packageName = perm.packageName; in MyPermissionGroupInfo() 147 public void setPermission(MyPermissionGroupInfo grp, MyPermissionInfo perm, in setPermission() argument 151 mPerm = perm; in setPermission() 163 CharSequence label = perm.mLabel; in setPermission() 164 if (perm.mNew && newPermPrefix != null) { in setPermission() 180 if (localLOGV) Log.i(TAG, "Made perm item " + perm.name in setPermission() 480 MyPermissionInfo perm = perms.get(j); in displayPermissions() local 481 View view = getPermissionItemView(grp, perm, j == 0, in displayPermissions() [all …]
|
/frameworks/av/drm/drmserver/ |
D | DrmManagerService.cpp | 51 const char *DrmManagerService::get_perm_label(drm_perm_t perm) { in get_perm_label() argument 52 unsigned int index = perm; in get_perm_label() 55 ALOGE("SELinux: Failed to retrieve permission label(perm=%d).\n", perm); in get_perm_label() 61 bool DrmManagerService::selinuxIsProtectedCallAllowed(pid_t spid, drm_perm_t perm) { in selinuxIsProtectedCallAllowed() argument 68 const char *str_perm = get_perm_label(perm); in selinuxIsProtectedCallAllowed() 82 bool DrmManagerService::isProtectedCallAllowed(drm_perm_t perm) { in isProtectedCallAllowed() argument 92 return selinuxIsProtectedCallAllowed(spid, perm); in isProtectedCallAllowed()
|
/frameworks/av/drm/libdrmframework/include/ |
D | DrmManagerService.h | 61 static const char *get_perm_label(drm_perm_t perm); 63 static bool selinuxIsProtectedCallAllowed(pid_t spid, drm_perm_t perm); 65 static bool isProtectedCallAllowed(drm_perm_t perm);
|
/frameworks/compile/mclinker/lib/Support/Windows/ |
D | FileSystem.inc | 77 int perm = 0; 80 perm |= _S_IREAD; 84 perm |= _S_IWRITE; 86 return ::_open(pPath.native().c_str(), pOFlag | _O_BINARY, perm);
|
/frameworks/base/services/core/java/com/android/server/job/ |
D | JobSchedulerShellCommand.java | 60 final int perm = mPM.checkUidPermission( in runJob() local 62 if (perm != PackageManager.PERMISSION_GRANTED) { in runJob()
|
/frameworks/base/docs/html/training/permissions/ |
D | declaring.jd | 11 <a href="#perm-needed">Determine What Permissions Your App Needs</a> 14 <a href="#perm-add">Add Permissions to the Manifest</a> 54 <h2 id="perm-needed">Determine What Permissions Your App Needs</h2> 81 <h2 id="perm-add">Add Permissions to the Manifest</h2>
|
D | requesting.jd | 13 <a href="#perm-check">Check For Permissions</a> 16 <a href="#perm-request">Request Permissions</a> 115 <h2 id="perm-check">Check For Permissions</h2> 145 <h2 id="perm-request">Request Permissions</h2> 304 "{@docRoot}guide/topics/security/permissions.html#perm-groups">permission
|
/frameworks/base/core/java/android/content/pm/ |
D | AppsQueryHelper.java | 203 protected List<PackageInfo> getPackagesHoldingPermission(String perm, int userId) { in getPackagesHoldingPermission() argument 205 return mPackageManager.getPackagesHoldingPermissions(new String[]{perm}, 0, in getPackagesHoldingPermission()
|
D | PackageParser.java | 612 final String perm = p.requestedPermissions.get(i); in generatePackageInfo() local 613 pi.requestedPermissions[i] = perm; in generatePackageInfo() 616 if (grantedPermissions != null && grantedPermissions.contains(perm)) { in generatePackageInfo() 2176 final String perm = spi.newPerms[in]; in parseBaseApkCommon() local 2177 if (!pkg.requestedPermissions.contains(perm)) { in parseBaseApkCommon() 2178 pkg.requestedPermissions.add(perm); in parseBaseApkCommon() 2503 PermissionGroup perm = new PermissionGroup(owner); in parsePermissionGroup() local 2507 if (!parsePackageItemInfo(owner, perm.info, outError, in parsePermissionGroup() 2520 perm.info.descriptionRes = sa.getResourceId( in parsePermissionGroup() 2523 perm.info.flags = sa.getInt( in parsePermissionGroup() [all …]
|
/frameworks/base/core/java/android/os/ |
D | SELinux.java | 102 …atic final native boolean checkSELinuxAccess(String scon, String tcon, String tclass, String perm); in checkSELinuxAccess() argument
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | BasePermission.java | 40 PackageParser.Permission perm; field in BasePermission
|
D | PackageManagerService.java | 2155 SystemConfig.PermissionEntry perm = permConfig.valueAt(i); in PackageManagerService() local 2156 BasePermission bp = mSettings.mPermissions.get(perm.name); in PackageManagerService() 2158 bp = new BasePermission(perm.name, "android", BasePermission.TYPE_BUILTIN); in PackageManagerService() 2159 mSettings.mPermissions.put(perm.name, bp); in PackageManagerService() 2161 if (perm.gids != null) { in PackageManagerService() 2162 bp.setGids(perm.gids, perm.perUser); in PackageManagerService() 3257 if (bp.perm != null) { 3258 return PackageParser.generatePermissionInfo(bp.perm, flags); 3293 if (p.perm == null || p.perm.info.group == null) { 3297 if (p.perm != null && group.equals(p.perm.info.group)) { [all …]
|
D | PermissionsState.java | 610 public PermissionData(BasePermission perm) { in PermissionData() argument 611 mPerm = perm; in PermissionData()
|
/frameworks/base/core/java/android/accounts/ |
D | AbstractAccountAuthenticator.java | 513 final String perm = Manifest.permission.ACCOUNT_MANAGER; in checkBinderPermission() local 514 if (mContext.checkCallingOrSelfPermission(perm) != PackageManager.PERMISSION_GRANTED) { in checkBinderPermission() 515 throw new SecurityException("caller uid " + uid + " lacks " + perm); in checkBinderPermission()
|
/frameworks/av/media/mtp/ |
D | MtpDevice.h | 123 int perm);
|
/frameworks/base/docs/html-intl/intl/zh-tw/about/versions/nougat/ |
D | android-7.0-changes.jd | 21 <li><a href="#perm">權限變更</a></li> 187 <h2 id="perm">權限變更</h2>
|
/frameworks/base/docs/html-intl/intl/ru/about/versions/nougat/ |
D | android-7.0-changes.jd | 21 <li><a href="#perm">Изменения разрешений</a></li> 187 <h2 id="perm">Изменения разрешений</h2>
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | AppsQueryHelperTests.java | 140 protected List<PackageInfo> getPackagesHoldingPermission(String perm, int userId) { in getPackagesHoldingPermission() argument
|