Home
last modified time | relevance | path

Searched refs:SHELL_UID (Results 1 – 25 of 40) sorted by relevance

12

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest7.java106 mInjectedCallingUid = Process.SHELL_UID; in testRestConfig()
115 mInjectedCallingUid = Process.SHELL_UID; in testOverrideConfig()
132 mInjectedCallingUid = Process.SHELL_UID; in testResetThrottling()
153 mInjectedCallingUid = Process.SHELL_UID; in testResetThrottling_user_not_running()
184 mInjectedCallingUid = Process.SHELL_UID; in testResetThrottling_user_running()
205 mInjectedCallingUid = Process.SHELL_UID; in testResetAllThrottling()
236 mInjectedCallingUid = Process.SHELL_UID; in testLauncherCommands()
276 mInjectedCallingUid = Process.SHELL_UID; in testUnloadUser()
316 mInjectedCallingUid = Process.SHELL_UID; in testClearShortcuts()
329 mInjectedCallingUid = Process.SHELL_UID; in testClearShortcuts()
/frameworks/base/cmds/statsd/tools/localtools/src/com/android/statsd/shelltools/
DUtils.java41 public static final String SHELL_UID = "2000"; // Use shell, even if rooted. field in Utils
93 useShellUid ? SHELL_UID : "", in getReportList()
104 + (useShellUid ? ("uid=" + SHELL_UID + ", ") : "") in getReportList()
/frameworks/base/cmds/statsd/tools/localtools/src/com/android/statsd/shelltools/localdrive/
DLocalDrive.java176 Utils.SHELL_UID, String.valueOf(configId)); in updateConfig()
212 Utils.CMD_UPDATE_CONFIG, Utils.SHELL_UID, String.valueOf(configId)); in updateConfig()
313 Utils.SHELL_UID, String.valueOf(configId)); in cmdRemove()
/frameworks/base/services/print/java/com/android/server/print/
DPrintManagerService.java23 import static android.os.Process.SHELL_UID;
737 if (callingUid != SHELL_UID && callingUid != ROOT_UID) { in getBindInstantServiceAllowed()
738 throw new SecurityException("Can only be called by uid " + SHELL_UID in getBindInstantServiceAllowed()
757 if (callingUid != SHELL_UID && callingUid != ROOT_UID) { in setBindInstantServiceAllowed()
758 throw new SecurityException("Can only be called by uid " + SHELL_UID in setBindInstantServiceAllowed()
1045 if (appId == callingAppId || callingAppId == SHELL_UID in resolveCallingAppEnforcingPermissions()
/frameworks/base/services/core/java/com/android/server/slice/
DSliceShellCommand.java66 if (Binder.getCallingUid() != Process.SHELL_UID in runGetPermissions()
/frameworks/base/services/contentsuggestions/java/com/android/server/contentsuggestions/
DContentSuggestionsManagerService.java208 if (callingUid != android.os.Process.SHELL_UID in onShellCommand()
/frameworks/base/services/core/java/com/android/server/net/watchlist/
DNetworkWatchlistService.java164 return callingUid == Process.SHELL_UID || callingUid == Process.ROOT_UID; in isCallerShell()
/frameworks/base/core/java/com/android/internal/util/
DDumpUtils.java120 case android.os.Process.SHELL_UID: in checkUsageStatsPermission()
/frameworks/base/services/core/java/com/android/server/pm/dex/
DArtManagerService.java142 if (callingUid != Process.SHELL_UID) { in checkShellPermissions()
312 … if (callingUid != Process.SHELL_UID && !checkAndroidPermissions(callingUid, callingPackage)) { in isRuntimeProfilingEnabled()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DDeviceConfigService.java287 case Process.SHELL_UID: { in resolveCallingPackage()
DSettingsService.java438 case Process.SHELL_UID: { in resolveCallingPackage()
DSettingsProvider.java21 import static android.os.Process.SHELL_UID;
1872 || appId == Process.SHELL_UID
2202 && (appId == SHELL_UID || appId == ROOT_UID));
2280 case Process.SHELL_UID: {
/frameworks/base/core/java/android/os/
DProcess.java58 public static final int SHELL_UID = 2000; field in Process
/frameworks/base/services/core/java/com/android/server/pm/
DPackageInstallerService.java487 if ((callingUid == Process.SHELL_UID) || (callingUid == Process.ROOT_UID)) { in createSessionInternal()
641 || callingUid == Process.SHELL_UID; in isDowngradeAllowedForCaller()
823 if ((callingUid != Process.SHELL_UID) && (callingUid != Process.ROOT_UID)) { in uninstall()
DPackageManagerServiceUtils.java378 if (callingUid == Process.SHELL_UID) { in enforceShellRestriction()
/frameworks/base/telephony/common/com/android/internal/telephony/
DTelephonyPermissions.java684 if (callingUid == Process.SHELL_UID || callingUid == Process.ROOT_UID) { in enforceShellOnly()
/frameworks/base/cmds/content/src/com/android/commands/content/
DContent.java488 case Process.SHELL_UID: { in resolveCallingPackage()
/frameworks/base/services/core/java/com/android/server/am/
DUserController.java28 import static android.os.Process.SHELL_UID;
1700 if (callingUid == Process.SHELL_UID && targetUserId >= UserHandle.USER_SYSTEM) {
1979 if (Binder.getCallingUid() == SHELL_UID) {
DActivityManagerService.java66 import static android.os.Process.SHELL_UID;
14729 if (callingUid == SHELL_UID in collectReceiverComponents()
15393 if (userId == UserHandle.USER_ALL && callingUid == SHELL_UID) { in broadcastIntentLocked()
15635 case SHELL_UID: in verifyBroadcastLocked()
15904 return callingUid == SHELL_UID || callingUid == ROOT_UID; in isCallerShell()
18566 if (uid == SHELL_UID || uid == ROOT_UID) { in getStorageMountMode()
18951 if (UserHandle.getCallingAppId() != Process.SHELL_UID in startDelegateShellPermissionIdentity()
19003 if (UserHandle.getCallingAppId() != Process.SHELL_UID in stopDelegateShellPermissionIdentity()
19038 return superImpl.apply(code, Process.SHELL_UID, in checkOperation()
19053 return superImpl.apply(code, usage, Process.SHELL_UID, in checkAudioOperation()
[all …]
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/
DExternalStorageProvider.java123 if (UserHandle.getCallingAppId() == android.os.Process.SHELL_UID in enforceShellRestrictions()
/frameworks/base/services/core/java/com/android/server/content/
DContentService.java1305 case Process.SHELL_UID: in validateExtras()
1640 if (callingUid != Process.SHELL_UID && callingUid != Process.ROOT_UID) { in enforceShell()
/frameworks/base/services/core/java/com/android/server/power/
DThermalManagerService.java507 return callingUid == Process.SHELL_UID || callingUid == Process.ROOT_UID;
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsService.java1234 final boolean shellCaller = callingUid == 0 || callingUid == Process.SHELL_UID; in setAppStandbyBucket()
1299 final boolean shellCaller = callingUid == 0 || callingUid == Process.SHELL_UID; in setAppStandbyBuckets()
/frameworks/base/services/core/java/com/android/server/statusbar/
DStatusBarManagerService.java1007 if (Binder.getCallingUid() == Process.SHELL_UID) { in enforceStatusBarOrShell()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityManagerService.java3706 || callingUid == Process.SHELL_UID) { in resolveCallingUserIdEnforcingPermissionsLocked()
3740 || callingUid == Process.SHELL_UID in isCallerInteractingAcrossUsers()
3750 if (Binder.getCallingUid() == Process.SHELL_UID) { in isRetrievalAllowingWindowLocked()

12