Home
last modified time | relevance | path

Searched refs:AID_ROOT (Results 1 – 24 of 24) sorted by relevance

/frameworks/native/services/surfaceflinger/tests/
DCredentials_test.cpp37 seteuid(AID_ROOT); in SetUp()
47 seteuid(AID_ROOT); in TearDown()
106 seteuid(AID_ROOT); in setGraphicsUID()
114 seteuid(AID_ROOT); in setSystemUID()
123 seteuid(AID_ROOT); in setBinUID()
135 seteuid(AID_ROOT); in checkWithPrivileges()
312 seteuid(AID_ROOT); in TEST_F()
320 seteuid(AID_ROOT); in TEST_F()
/frameworks/base/cmds/idmap2/tests/
DFileUtilsTests.cpp90 ASSERT_TRUE(UidHasWriteAccessToPath(AID_ROOT, tmp_path)); in TEST()
91 ASSERT_TRUE(UidHasWriteAccessToPath(AID_ROOT, cache_path)); in TEST()
92 ASSERT_TRUE(UidHasWriteAccessToPath(AID_ROOT, sneaky_cache_path)); in TEST()
DIdmap2BinaryTests.cpp75 if (uid != AID_ROOT && uid != AID_SYSTEM) { \
/frameworks/base/core/jni/
Dcom_android_internal_os_Zygote.cpp831 PrepareDir(user_source, 0710, user_id ? AID_ROOT : AID_SHELL, in MountEmulatedStorage()
840 PrepareDir(pass_through_source, 0710, AID_ROOT, AID_MEDIA_RW, fail_fn); in MountEmulatedStorage()
1164 PrepareDir(actualAppDataPath, 0700, AID_ROOT, AID_ROOT, fail_fn); in createAndMountAppData()
1368 AID_ROOT, AID_ROOT, fail_fn); in isolateAppData()
1393 PrepareDirIfNotPresent(volPath, DEFAULT_DATA_DIR_PERMISSION, AID_ROOT, AID_ROOT, fail_fn); in isolateAppData()
1394 PrepareDirIfNotPresent(volCePath, DEFAULT_DATA_DIR_PERMISSION, AID_ROOT, AID_ROOT, fail_fn); in isolateAppData()
1395 PrepareDirIfNotPresent(volDePath, DEFAULT_DATA_DIR_PERMISSION, AID_ROOT, AID_ROOT, fail_fn); in isolateAppData()
1396 PrepareDirIfNotPresent(volCeUserPath, DEFAULT_DATA_DIR_PERMISSION, AID_ROOT, AID_ROOT, in isolateAppData()
1398 PrepareDirIfNotPresent(volDeUserPath, DEFAULT_DATA_DIR_PERMISSION, AID_ROOT, AID_ROOT, in isolateAppData()
1414 AID_ROOT, AID_ROOT, fail_fn); in isolateAppData()
[all …]
/frameworks/av/media/utils/include/mediautils/
DServiceUtilities.h53 return uid == AID_AUDIOSERVER || uid == AID_ROOT; in isAudioServerOrRootUid()
66 || uid == AID_MEDIA || uid == AID_ROOT; in isAudioServerOrMediaServerOrSystemServerOrRootUid()
/frameworks/base/cmds/app_process/
Dapp_main.cpp157 result = chown(dalvikCacheDir, AID_ROOT, AID_ROOT); in maybeCreateDalvikCache()
/frameworks/native/services/vr/performanced/
Dperformance_service.cpp134 CheckAnd<SameProcess, CheckOr<UserId<AID_ROOT, AID_SYSTEM, AID_GRAPHICS>, in PerformanceService()
137 CheckAnd<SameProcess, CheckOr<UserId<AID_ROOT, AID_SYSTEM, AID_AUDIO>, in PerformanceService()
140 CheckOr<Trusted, UserId<AID_ROOT, AID_SYSTEM>, GroupId<AID_SYSTEM>>; in PerformanceService()
Dperformance_service_tests.cpp263 ASSERT_EQ(AID_ROOT, original_uid) in TEST()
/frameworks/base/cmds/incidentd/src/
DIncidentService.cpp66 if (callingUid == AID_ROOT || callingUid == AID_SHELL) { in checkIncidentPermissions()
97 if (callingUid != AID_SHELL && callingUid != AID_ROOT) { in checkIncidentPermissions()
106 if (callingUid != AID_SHELL && callingUid != AID_ROOT && callingUid != AID_STATSD && in checkIncidentPermissions()
317 if (caller != AID_ROOT && caller != AID_SHELL) { in reportIncidentToDumpstate()
/frameworks/base/cmds/statsd/src/state/
DStateManager.cpp47 if (event.GetUid() == AID_ROOT || (event.GetUid() >= 1000 && event.GetUid() < 2000) || in onLogEvent()
/frameworks/native/services/inputflinger/
DInputManager.cpp125 if (uid != AID_SHELL && uid != AID_ROOT) { in registerInputChannel()
/frameworks/base/core/java/android/os/
DUserHandle.java143 public static final int AID_ROOT = android.os.Process.ROOT_UID; field in UserHandle
328 } else if (appId >= AID_ROOT && appId <= AID_APP_START) { in getSharedAppGid()
/frameworks/base/cmds/idmap2/libidmap2/
DFileUtils.cpp100 return uid == AID_ROOT || uid == AID_SYSTEM; in UidHasWriteAccessToPath()
/frameworks/native/libs/vr/libvrflinger/
Ddisplay_manager_service.cpp46 const bool trusted = user_id == AID_ROOT || IsTrustedUid(user_id); in OnChannelOpen()
Ddisplay_service.cpp299 const bool trusted = user_id == AID_ROOT || IsTrustedUid(user_id); in OnSetupGlobalBuffer()
313 const bool trusted = (user_id == AID_ROOT) || IsTrustedUid(user_id); in OnDeleteGlobalBuffer()
Ddisplay_surface.cpp470 const bool trusted = user_id == AID_ROOT || IsTrustedUid(user_id); in Create()
/frameworks/av/services/mediatranscoding/
DMediaTranscodingService.cpp38 case AID_ROOT: // root user in isTrustedCallingUid()
/frameworks/base/cmds/statsd/src/
DStatsService.cpp76 if (uid == expectedUid || uid == AID_ROOT) { in checkUid()
290 if (uid != AID_ROOT && uid != AID_SHELL) { in handleShellCommand()
904 || (callingUid == AID_ROOT && goodUid == AID_SHELL); // ROOT can impersonate SHELL. in getUidFromString()
Dstats_log_util.cpp429 uid != AID_ROOT) { in TimeUnitToBucketSizeInMillisGuardrailed()
/frameworks/native/cmds/rawbu/
Dbackup.cpp662 if (getuid() != AID_ROOT) { in main()
/frameworks/native/libs/binder/ndk/
Dibinder.cpp182 if (uid != AID_ROOT && uid != AID_SHELL) { in onTransact()
/frameworks/base/cmds/statsd/tests/
DMetricsManager_test.cpp689 const set<int32_t> defaultPullUids = {AID_SYSTEM, AID_ROOT}; in TEST()
/frameworks/native/cmds/installd/
DInstalldNativeService.cpp161 if (uid == expectedUid || uid == AID_ROOT) { in checkUid()
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.cpp4973 if (uid == AID_ROOT || uid == AID_GRAPHICS || uid == AID_SYSTEM || uid == AID_SHELL) { in CheckTransactCodeCredentials()