Home
last modified time | relevance | path

Searched refs:ROOT_UID (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/base/core/java/com/android/internal/os/
DZygoteInit.java117 private static final int ROOT_UID = 0; field in ZygoteInit
261 if (reuid == ROOT_UID && regid == ROOT_GID) { in preloadClasses()
264 Os.setreuid(ROOT_UID, UNPRIVILEGED_UID); in preloadClasses()
336 Os.setreuid(ROOT_UID, ROOT_UID); in preloadClasses()
DBatteryStatsHelper.java929 if (uid >= Process.ROOT_UID && uid < Process.FIRST_APPLICATION_UID) { in isTypeSystem()
/frameworks/base/core/java/android/net/metrics/
DWakeupStats.java54 case Process.ROOT_UID: in countEvent()
/frameworks/base/core/java/com/android/internal/util/
DDumpUtils.java102 case android.os.Process.ROOT_UID: in checkUsageStatsPermission()
/frameworks/base/core/java/android/os/
DProcess.java46 public static final int ROOT_UID = 0; field in Process
/frameworks/base/services/core/java/com/android/server/
DRescueParty.java273 super(android.os.Process.ROOT_UID, 5, 300 * DateUtils.SECOND_IN_MILLIS); in BootThreshold()
/frameworks/base/services/core/java/com/android/server/net/
DLockdownVpnTracker.java72 private static final int ROOT_UID = 0; field in LockdownVpnTracker
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest7.java97 mInjectedCallingUid = Process.ROOT_UID; in testRoot()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageInstallerService.java435 if ((callingUid == Process.SHELL_UID) || (callingUid == Process.ROOT_UID)) { in createSessionInternal()
736 if ((callingUid != Process.SHELL_UID) && (callingUid != Process.ROOT_UID)) { in uninstall()
808 if (callingUid == Process.ROOT_UID) { in isCallingUidOwner()
DPackageInstallerSession.java332 final boolean isInstallerRoot = (mInstallerUid == Process.ROOT_UID); in needToAskForPermissionsLocked()
701 if (callingUid != Process.ROOT_UID && callingUid != mInstallerUid) { in assertCallerIsOwnerOrRootLocked()
DUserManagerService.java1684 || callingUid == Process.ROOT_UID in hasManageUsersPermission()
1698 || callingUid == Process.ROOT_UID in hasManageOrCreateUsersPermission()
1716 if (!UserHandle.isSameApp(uid, Process.SYSTEM_UID) && uid != Process.ROOT_UID) { in checkSystemOrRoot()
DPackageManagerService.java4148 || appId == Process.ROOT_UID) { in filterSharedLibPackageLPr()
4361 if (appId == Process.SYSTEM_UID || appId == Process.ROOT_UID in adjustPermissionProtectionFlagsLPr()
9751 if (uid != Process.SYSTEM_UID && uid != Process.ROOT_UID) { in enforceSystemOrRoot()
10330 callingUid != Process.ROOT_UID && in dumpProfiles()
14852 if ((callingUid == Process.SHELL_UID) || (callingUid == Process.ROOT_UID)) { in installPackageAsUser()
19441 && callingAppId != Process.ROOT_UID) { in resolveInternalPackageNameLPr()
19498 if (callingUid == Process.SHELL_UID || callingUid == Process.ROOT_UID in isCallerAllowedToSilentlyUninstall()
25934 if (callingUid != uid && callingUid != Process.ROOT_UID in canRequestPackageInstallsInternal()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsHelperTest.java173 when(mNormalBatterySipper.getUid()).thenReturn(Process.ROOT_UID); in testShouldHideSipper_TypeSystem_ReturnTrue()
/frameworks/base/core/java/android/webkit/
DWebViewFactory.java184 if (uid == android.os.Process.ROOT_UID || uid == android.os.Process.SYSTEM_UID in getProvider()
/frameworks/base/services/backup/java/com/android/server/backup/
DTrampoline.java146 && caller != Process.ROOT_UID) { in setBackupServiceActive()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsService.java440 case Process.ROOT_UID: { in resolveCallingPackage()
DSettingsProvider.java99 import static android.os.Process.ROOT_UID;
1553 if (appId == Process.SYSTEM_UID || appId == Process.ROOT_UID) {
1616 || appId == Process.ROOT_UID) {
1966 && (appId == SHELL_UID || appId == ROOT_UID));
/frameworks/base/cmds/content/src/com/android/commands/content/
DContent.java461 case Process.ROOT_UID: { in resolveCallingPackage()
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/
DTrampolineTest.java190 TrampolineTestable.sCallingUid = Process.ROOT_UID; in setBackupServiceActive_callerRootUid_serviceCreated()
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsService.java180 Process.ROOT_UID, Process.SYSTEM_UID };
1898 return callingUid == Process.SHELL_UID || callingUid == Process.ROOT_UID; in isCallerShell()
/frameworks/base/cmds/pm/src/com/android/commands/pm/
DPm.java1027 (Process.myUid() == Process.ROOT_UID) ? "root" : "com.android.shell"); in runCreateUser()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowManagerService.java30 import static android.os.Process.ROOT_UID;
1684 if (callingUid != SHELL_UID && callingUid != ROOT_UID) { in enableSurfaceTrace()
1696 if (callingUid != SHELL_UID && callingUid != ROOT_UID && in disableSurfaceTrace()
/frameworks/base/core/java/android/app/
DActivityManager.java3944 if (appId == Process.ROOT_UID || appId == Process.SYSTEM_UID) { in checkComponentPermission()
DContextImpl.java1687 if (appId == Process.ROOT_UID || appId == Process.SYSTEM_UID) { in checkPermission()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java3392 if (callingUid != Process.SHELL_UID && callingUid != Process.ROOT_UID) { in enforceShell()
7259 if (!(isCallerWithSystemUid() || callingUid == Process.ROOT_UID)) { in enforceManageUsers()
7275 if (!(isCallerWithSystemUid() || mInjector.binderGetCallingUid() == Process.ROOT_UID)) { in enforceSystemUserOrPermission()
10825 return callingUid == Process.SHELL_UID || callingUid == Process.ROOT_UID; in isAdb()

12