Lines Matching defs:permission

1375             ServiceManager.addService("permission", new PermissionController(m));
1493 if (mActivityManagerService.checkCallingPermission(android.Manifest.permission.DUMP)
1497 + " without permission " + android.Manifest.permission.DUMP);
1514 if (mActivityManagerService.checkCallingPermission(android.Manifest.permission.DUMP)
1518 + " without permission " + android.Manifest.permission.DUMP);
1534 if (mActivityManagerService.checkCallingPermission(android.Manifest.permission.DUMP)
1538 + " without permission " + android.Manifest.permission.DUMP);
1554 if (mActivityManagerService.checkCallingPermission(android.Manifest.permission.DUMP)
1558 + " without permission " + android.Manifest.permission.DUMP);
2079 android.Manifest.permission.ACCESS_ALL_EXTERNAL_STORAGE,
2345 enforceCallingPermission(android.Manifest.permission.SET_SCREEN_COMPATIBILITY,
2360 enforceCallingPermission(android.Manifest.permission.SET_SCREEN_COMPATIBILITY,
2375 enforceCallingPermission(android.Manifest.permission.SET_SCREEN_COMPATIBILITY,
2767 if (checkCallingPermission(android.Manifest.permission.FORCE_STOP_PACKAGES)
2772 + " requires " + android.Manifest.permission.FORCE_STOP_PACKAGES;
2803 if (checkCallingPermission(android.Manifest.permission.FORCE_STOP_PACKAGES)
2808 + " requires " + android.Manifest.permission.FORCE_STOP_PACKAGES;
3448 android.Manifest.permission.CLEAR_APP_USER_DATA,
3453 throw new SecurityException(pid+" does not have permission:"+
3454 android.Manifest.permission.CLEAR_APP_USER_DATA+" to clear data" +
3476 if (checkCallingPermission(android.Manifest.permission.KILL_BACKGROUND_PROCESSES)
3478 checkCallingPermission(android.Manifest.permission.RESTART_PACKAGES)
3483 + " requires " + android.Manifest.permission.KILL_BACKGROUND_PROCESSES;
3512 if (checkCallingPermission(android.Manifest.permission.KILL_BACKGROUND_PROCESSES)
3517 + " requires " + android.Manifest.permission.KILL_BACKGROUND_PROCESSES;
3554 if (checkCallingPermission(android.Manifest.permission.FORCE_STOP_PACKAGES)
3559 + " requires " + android.Manifest.permission.FORCE_STOP_PACKAGES;
4423 android.Manifest.permission.RECEIVE_BOOT_COMPLETED,
4768 enforceCallingPermission(android.Manifest.permission.SET_PROCESS_LIMIT,
4804 enforceCallingPermission(android.Manifest.permission.SET_PROCESS_LIMIT,
4860 public boolean checkPermission(String permission, int pid, int uid) {
4861 return mActivityManagerService.checkPermission(permission, pid,
4869 int checkComponentPermission(String permission, int pid, int uid,
4886 return ActivityManager.checkComponentPermission(permission, uid,
4893 * permission is automatically denied. (Internally a null permission
4899 public int checkPermission(String permission, int pid, int uid) {
4900 if (permission == null) {
4903 return checkComponentPermission(permission, pid, UserHandle.getAppId(uid), -1, true);
4910 int checkCallingPermission(String permission) {
4911 return checkPermission(permission,
4919 void enforceCallingPermission(String permission, String func) {
4920 if (checkCallingPermission(permission)
4928 + " requires " + permission;
4935 * the given {@link ProviderInfo}. Final permission checking is always done
4963 // <path-permission> below removes this ability
4967 // check if target holds any <path-permission> that match uri
5009 // <path-permission> above
5056 * Check if the targetPkg can be granted permission to access uri by
5059 * if the URI permission grant should be performed; returns -1 if it is not
5060 * needed (for example targetPkg already has permission to access the URI).
5074 "Checking grant " + targetPkg + " permission to " + uri);
5082 "Can't grant URI permission for non-content URI: " + uri);
5101 Slog.w(TAG, "No content provider found for permission check: " + uri.toSafeString());
5111 "Can't grant URI permission no uid for: " + targetPkg);
5120 // First... does the target actually need this permission?
5122 // No need to grant the target this permission.
5124 "Target " + targetPkg + " already has full permission to " + uri);
5165 + " does not allow granting of permission to path of Uri "
5170 // Third... does the caller itself have permission to access
5176 + " does not have permission to uri " + uri);
5200 // So here we are: the caller has the assumed permission
5205 "Granting " + targetPkg + "/" + targetUid + " permission to " + uri);
5355 + " when granting permission to uri " + uri);
5376 "Removing " + perm.uid + " permission to " + perm.uri);
5412 Slog.w(TAG, "No content provider found for permission revoke: " + uri.toSafeString());
5416 // Does the caller have this permission on the URI?
5418 // Right now, if you are not the original owner of the permission,
5422 + " does not have permission to uri " + uri);
5455 "Revoking " + perm.uid + " permission to " + perm.uri);
5479 + " when revoking permission to uri " + uri);
5507 Slog.w(TAG, "No content provider found for permission revoke: "
5614 if (checkCallingPermission(android.Manifest.permission.GET_TASKS)
5627 + " requires " + android.Manifest.permission.GET_TASKS;
5741 enforceCallingPermission(android.Manifest.permission.GET_TASKS,
5744 android.Manifest.permission.GET_DETAILED_TASKS)
5820 enforceCallingPermission(android.Manifest.permission.READ_FRAME_BUFFER,
5832 enforceCallingPermission(android.Manifest.permission.READ_FRAME_BUFFER,
5844 enforceCallingPermission(android.Manifest.permission.REMOVE_TASKS,
5905 enforceCallingPermission(android.Manifest.permission.REMOVE_TASKS,
5989 enforceCallingPermission(android.Manifest.permission.REORDER_TASKS,
6036 enforceCallingPermission(android.Manifest.permission.REORDER_TASKS,
6076 enforceCallingPermission(android.Manifest.permission.REORDER_TASKS,
6245 * given {@link ProviderInfo}. Final permission checking is always done
6650 enforceCallingPermission(android.Manifest.permission.ACCESS_CONTENT_PROVIDERS_EXTERNALLY,
6651 "Do not have permission in call getContentProviderExternal()");
6688 enforceCallingPermission(android.Manifest.permission.ACCESS_CONTENT_PROVIDERS_EXTERNALLY,
6689 "Do not have permission in call removeContentProviderExternal()");
6907 * Allows app to retrieve the MIME type of a URI without having permission
7019 enforceCallingPermission(android.Manifest.permission.FORCE_BACK,
7075 if (checkCallingPermission(android.Manifest.permission.DEVICE_POWER)
7077 throw new SecurityException("Requires permission "
7078 + android.Manifest.permission.DEVICE_POWER);
7099 if (checkCallingPermission(android.Manifest.permission.SHUTDOWN)
7101 throw new SecurityException("Requires permission "
7102 + android.Manifest.permission.SHUTDOWN);
7165 if (checkCallingPermission(android.Manifest.permission.DEVICE_POWER)
7167 throw new SecurityException("Requires permission "
7168 + android.Manifest.permission.DEVICE_POWER);
7183 if (checkCallingPermission(android.Manifest.permission.DEVICE_POWER)
7185 throw new SecurityException("Requires permission "
7186 + android.Manifest.permission.DEVICE_POWER);
7196 if (checkCallingPermission(android.Manifest.permission.STOP_APP_SWITCHES)
7198 throw new SecurityException("Requires permission "
7199 + android.Manifest.permission.STOP_APP_SWITCHES);
7213 if (checkCallingPermission(android.Manifest.permission.STOP_APP_SWITCHES)
7215 throw new SecurityException("Requires permission "
7216 + android.Manifest.permission.STOP_APP_SWITCHES);
7234 android.Manifest.permission.STOP_APP_SWITCHES, callingPid,
7246 enforceCallingPermission(android.Manifest.permission.SET_DEBUG_APP,
7317 enforceCallingPermission(android.Manifest.permission.SET_ALWAYS_FINISH,
7330 enforceCallingPermission(android.Manifest.permission.SET_ACTIVITY_WATCHER,
7346 // No permission check because this can't do anything harmful --
7353 if (checkCallingPermission(android.Manifest.permission.FILTER_EVENTS)
7355 throw new SecurityException("Requires permission "
7356 + android.Manifest.permission.FILTER_EVENTS);
7398 enforceCallingPermission(android.Manifest.permission.SET_ACTIVITY_WATCHER,
7925 android.Manifest.permission.INTERACT_ACROSS_USERS,
8703 android.Manifest.permission.INTERACT_ACROSS_USERS_FULL,
8792 android.Manifest.permission.INTERACT_ACROSS_USERS_FULL,
8872 if (checkCallingPermission(android.Manifest.permission.DUMP)
8877 + " without permission "
8878 + android.Manifest.permission.DUMP);
10980 android.Manifest.permission.INTERACT_ACROSS_USERS,
10983 android.Manifest.permission.INTERACT_ACROSS_USERS_FULL,
11003 builder.append(android.Manifest.permission.INTERACT_ACROSS_USERS_FULL);
11006 builder.append(android.Manifest.permission.INTERACT_ACROSS_USERS);
11036 android.Manifest.permission.INTERACT_ACROSS_USERS,
11041 + android.Manifest.permission.INTERACT_ACROSS_USERS;
11123 enforceCallingPermission("android.permission.BACKUP", "bindBackupAgent");
11187 enforceCallingPermission("android.permission.BACKUP", "clearPendingBackup");
11312 IIntentReceiver receiver, IntentFilter filter, String permission, int userId) {
11402 permission, callingUid, userId);
11634 android.Manifest.permission.BROADCAST_PACKAGE_REMOVED,
11680 + android.Manifest.permission.BROADCAST_PACKAGE_REMOVED;
11716 if (checkPermission(android.Manifest.permission.BROADCAST_STICKY,
11721 + " requires " + android.Manifest.permission.BROADCAST_STICKY;
11727 + " and enforce permission " + requiredPermission);
12003 if (checkCallingPermission(android.Manifest.permission.BROADCAST_STICKY)
12008 + " requires " + android.Manifest.permission.BROADCAST_STICKY;
12242 enforceCallingPermission(android.Manifest.permission.CHANGE_CONFIGURATION,
12244 enforceCallingPermission(android.Manifest.permission.WRITE_SETTINGS,
12258 enforceCallingPermission(android.Manifest.permission.CHANGE_CONFIGURATION,
13915 if (checkCallingPermission(android.Manifest.permission.SIGNAL_PERSISTENT_PROCESSES)
13917 throw new SecurityException("Requires permission "
13918 + android.Manifest.permission.SIGNAL_PERSISTENT_PROCESSES);
13967 // its own permission.
13968 if (checkCallingPermission(android.Manifest.permission.SET_ACTIVITY_WATCHER)
13970 throw new SecurityException("Requires permission "
13971 + android.Manifest.permission.SET_ACTIVITY_WATCHER);
14063 // its own permission (same as profileControl).
14064 if (checkCallingPermission(android.Manifest.permission.SET_ACTIVITY_WATCHER)
14066 throw new SecurityException("Requires permission "
14067 + android.Manifest.permission.SET_ACTIVITY_WATCHER);
14124 if (checkCallingPermission(android.Manifest.permission.INTERACT_ACROSS_USERS_FULL)
14129 + " requires " + android.Manifest.permission.INTERACT_ACROSS_USERS_FULL;
14246 android.Manifest.permission.INTERACT_ACROSS_USERS,
14284 android.Manifest.permission.MANAGE_USERS,
14382 android.Manifest.permission.RECEIVE_BOOT_COMPLETED,
14418 if (checkCallingPermission(android.Manifest.permission.INTERACT_ACROSS_USERS_FULL)
14423 + " requires " + android.Manifest.permission.INTERACT_ACROSS_USERS_FULL;
14505 android.Manifest.permission.INTERACT_ACROSS_USERS,
14549 if ((checkCallingPermission(android.Manifest.permission.INTERACT_ACROSS_USERS)
14551 checkCallingPermission(android.Manifest.permission.INTERACT_ACROSS_USERS_FULL)
14556 + " requires " + android.Manifest.permission.INTERACT_ACROSS_USERS;
14571 if (checkCallingPermission(android.Manifest.permission.INTERACT_ACROSS_USERS)
14576 + " requires " + android.Manifest.permission.INTERACT_ACROSS_USERS;
14599 if (checkCallingPermission(android.Manifest.permission.INTERACT_ACROSS_USERS)
14604 + " requires " + android.Manifest.permission.INTERACT_ACROSS_USERS;
14637 if (checkCallingPermission(android.Manifest.permission.INTERACT_ACROSS_USERS_FULL)
14642 + " requires " + android.Manifest.permission.INTERACT_ACROSS_USERS_FULL;