/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/ |
D | DeletePackageHelperTest.kt | 81 whenever(PackageManagerServiceUtils.isUpdatedSystemApp(ps)).thenReturn(true) in deleteSystemPackageFailsIfNotAdminAndNotProfile() 97 whenever(PackageManagerServiceUtils.isUpdatedSystemApp(ps)).thenReturn(true) in deleteSystemPackageFailsIfProfileOfNonAdmin() 114 whenever(PackageManagerServiceUtils.isSystemApp(ps)).thenReturn(true) in deleteSystemPackageSucceedsIfAdmin() 133 whenever(PackageManagerServiceUtils.isSystemApp(ps)).thenReturn(true) in deleteSystemPackageSucceedsIfProfileOfAdmin() 153 whenever(PackageManagerServiceUtils.isUpdatedSystemApp(ps)).thenReturn(true) in deleteSystemPackageSucceedsIfNotAdminButDeleteSystemAppSpecified() 156 whenever(PackageManagerServiceUtils.isSystemApp(ps)).thenReturn(true) in deleteSystemPackageSucceedsIfNotAdminButDeleteSystemAppSpecified() 171 whenever(PackageManagerServiceUtils.isSystemApp(ps)).thenReturn(true) in deleteSystemPackageWithKeyguard_fails()
|
/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | LegacyPermissionManagerService.java | 42 import com.android.server.pm.PackageManagerServiceUtils; 257 PackageManagerServiceUtils.enforceSystemOrRoot( in grantDefaultPermissionsToCarrierServiceApp() 266 PackageManagerServiceUtils.enforceSystemOrPhoneCaller( in grantDefaultPermissionsToActiveLuiApp() 275 PackageManagerServiceUtils.enforceSystemOrPhoneCaller( in revokeDefaultPermissionsFromLuiApps() 284 PackageManagerServiceUtils.enforceSystemOrPhoneCaller( in grantDefaultPermissionsToEnabledImsServices() 294 PackageManagerServiceUtils.enforceSystemOrPhoneCaller( in grantDefaultPermissionsToEnabledTelephonyDataServices() 304 PackageManagerServiceUtils.enforceSystemOrPhoneCaller( in revokeDefaultPermissionsFromDisabledTelephonyDataServices() 314 PackageManagerServiceUtils.enforceSystemOrPhoneCaller( in grantDefaultPermissionsToEnabledCarrierApps()
|
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/parsing/ |
D | SystemPartitionParseTest.kt | 24 import com.android.server.pm.PackageManagerServiceUtils in <lambda>() 72 .apply { PackageManagerServiceUtils.decompressFile(input, this) } in <lambda>()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | FreeStorageHelper.java | 191 final long sizeBytes = PackageManagerServiceUtils.calculateInstalledSize(resolvedPath, in freeCacheForInstallation() 196 PackageInfoLite pkgInfoLite = PackageManagerServiceUtils.getMinimalPackageInfo( in freeCacheForInstallation() 214 PackageManagerServiceUtils.enforceSystemOrRoot("Only the system can request fstrim"); in performFstrimIfNeeded()
|
D | ReconcilePackageUtils.java | 179 PackageManagerServiceUtils.verifySignatures(signatureCheckPs, in reconcilePackages() 262 && !PackageManagerServiceUtils.canJoinSharedUserId( in reconcilePackages() 265 PackageManagerServiceUtils.SHARED_USER_ID_JOIN_TYPE_SYSTEM)) { in reconcilePackages()
|
D | PackageInstallerService.java | 711 if (PackageManagerServiceUtils.isRootOrShell(callingUid) 713 || PackageManagerServiceUtils.isAdoptedShell(callingUid, mContext)) { 759 if (Build.IS_DEBUGGABLE || PackageManagerServiceUtils.isSystemOrRoot(callingUid)) { 834 if (PackageManagerServiceUtils.isSystemOrRootOrShell(callingUid) 845 && !PackageManagerServiceUtils.isSystemOrRootOrShell(callingUid) 847 && !PackageManagerServiceUtils.isAdoptedShell(callingUid, mContext)) { 866 && !PackageManagerServiceUtils.isSystemOrRootOrShell(callingUid) 873 if (params.isStaged && !PackageManagerServiceUtils.isSystemOrRootOrShell(callingUid)) { 879 if (isApex && !PackageManagerServiceUtils.isSystemOrRootOrShell(callingUid)) { 1013 if (!PackageManagerServiceUtils.isRootOrShell(callingUid)) { [all …]
|
D | DeletePackageHelper.java | 152 if (PackageManagerServiceUtils.isUpdatedSystemApp(uninstalledPs) in deletePackageX() 224 if (PackageManagerServiceUtils.isUpdatedSystemApp(uninstalledPs) in deletePackageX() 356 PackageManagerServiceUtils.getPackageManagerLocal() in deleteArtDexoptArtifacts() 384 if (PackageManagerServiceUtils.isSystemApp(ps) in deletePackageLIF() 419 if (PackageManagerServiceUtils.isSystemApp(ps)) { in mayDeletePackageLocked() 453 final boolean systemApp = PackageManagerServiceUtils.isSystemApp(ps); in executeDeletePackageLIF() 905 if (PackageManagerServiceUtils.isRootOrShell(callingUid) in isCallerAllowedToSilentlyUninstall()
|
D | DexOptHelper.java | 35 import static com.android.server.pm.PackageManagerServiceUtils.REMOVE_IF_APEX_PKG; 36 import static com.android.server.pm.PackageManagerServiceUtils.REMOVE_IF_NULL_PKG; 37 import static com.android.server.pm.PackageManagerServiceUtils.getPackageManagerLocal; 129 PackageManagerServiceUtils.enforceSystemOrRoot( in performPackageDexOptUpgradeIfNeeded() 257 if (!PackageManagerServiceUtils.isSystemOrRootOrShell() in performDexOptMode()
|
D | InstallPackageHelper.java | 88 import static com.android.server.pm.PackageManagerServiceUtils.comparePackageSignatures; 89 import static com.android.server.pm.PackageManagerServiceUtils.compareSignatures; 90 import static com.android.server.pm.PackageManagerServiceUtils.compressedFileExists; 91 import static com.android.server.pm.PackageManagerServiceUtils.deriveAbiOverride; 92 import static com.android.server.pm.PackageManagerServiceUtils.extractAppMetadataFromApk; 93 import static com.android.server.pm.PackageManagerServiceUtils.isInstalledByAdb; 94 import static com.android.server.pm.PackageManagerServiceUtils.logCriticalInfo; 95 import static com.android.server.pm.PackageManagerServiceUtils.makeDirRecursive; 1156 final String rootHashString = PackageManagerServiceUtils in installPackagesLI() 1455 PackageManagerServiceUtils.verifySignatures(signatureCheckPs, in preparePackageLI() [all …]
|
D | MovePackageHelper.java | 339 int packageExternalStorageType = PackageManagerServiceUtils.getPackageExternalStorageType( in logAppMovedStorage() 377 if (PackageManagerServiceUtils.isSystemApp(packageStateInternal) in getPackageSizeInfoLI() 378 && !PackageManagerServiceUtils.isUpdatedSystemApp(packageStateInternal)) { in getPackageSizeInfoLI()
|
D | OtaDexoptService.java | 145 others.removeIf(PackageManagerServiceUtils.REMOVE_IF_NULL_PKG); in prepare() 146 others.removeIf(PackageManagerServiceUtils.REMOVE_IF_APEX_PKG); in prepare()
|
D | ScanPackageUtils.java | 47 import static com.android.server.pm.PackageManagerServiceUtils.compareSignatures; 48 import static com.android.server.pm.PackageManagerServiceUtils.compressedFileExists; 49 import static com.android.server.pm.PackageManagerServiceUtils.deriveAbiOverride; 50 import static com.android.server.pm.PackageManagerServiceUtils.getLastModifiedTime;
|
D | PackageManagerService.java | 43 import static com.android.server.pm.PackageManagerServiceUtils.compareSignatures; 44 import static com.android.server.pm.PackageManagerServiceUtils.isInstalledByAdb; 45 import static com.android.server.pm.PackageManagerServiceUtils.logCriticalInfo; 2230 PackageManagerServiceUtils.logCriticalInfo(Log.INFO, in PackageManagerService() 2265 mCacheDir = PackageManagerServiceUtils.preparePackageParserCache( in PackageManagerService() 3240 if (!PackageManagerServiceUtils.isSystemOrRoot(callingUid) 3548 PackageManagerServiceUtils.enforceShellRestriction(mInjector.getUserManagerInternal(), 4158 PackageManagerServiceUtils.enforceSystemOrRoot( 4568 PackageManagerServiceUtils.enforceSystemOrRoot( 4730 PackageManagerServiceUtils.enforceSystemOrRootOrShell( [all …]
|
D | AppDataHelper.java | 22 import static com.android.server.pm.PackageManagerServiceUtils.getPackageManagerLocal; 23 import static com.android.server.pm.PackageManagerServiceUtils.logCriticalInfo;
|
D | ComputerEngine.java | 60 import static com.android.server.pm.PackageManagerServiceUtils.compareSignatureArrays; 61 import static com.android.server.pm.PackageManagerServiceUtils.compareSignatures; 62 import static com.android.server.pm.PackageManagerServiceUtils.isSystemOrRootOrShell; 1400 if (PackageManagerServiceUtils.hasAnyDomainApproval( in maybeAddInstantAppInstaller() 1914 if (!PackageManagerServiceUtils.isSystemOrRootOrShell(callingAppId)) { in resolveInternalPackageNameInternalLocked() 2091 if (PackageManagerServiceUtils.isSystemOrRootOrShell(appId)) { in filterStaticSharedLibPackage() 2147 if (PackageManagerServiceUtils.isSystemOrRootOrShell(appId)) { in filterSdkLibPackage() 2207 if (PackageManagerServiceUtils.isSystemOrRoot(callingUid)) { in hasCrossUserPermission() 2434 if (PackageManagerServiceUtils.hasAnyDomainApproval( in isInstantAppResolutionAllowedBody() 2853 PackageManagerServiceUtils.enforceShellRestriction( in enforceCrossUserOrProfilePermission() [all …]
|
D | InstallingSession.java | 244 PackageInfoLite pkgLite = PackageManagerServiceUtils.getMinimalPackageInfo(mPm.mContext, in handleStartCopy() 335 ret = PackageManagerServiceUtils.copyPackage( in copyApkForFileInstall()
|
D | VerifyingSession.java | 183 PackageInfoLite pkgLite = PackageManagerServiceUtils.getMinimalPackageInfo(mPm.mContext, in handleStartVerify() 474 rootHashString = PackageManagerServiceUtils.buildVerificationRootHashString( in sendPackageVerificationRequest()
|
D | StorageEventHelper.java | 27 import static com.android.server.pm.PackageManagerServiceUtils.logCriticalInfo;
|
D | BackgroundInstallControlService.java | 352 return PackageManagerServiceUtils.isInstalledByAdb(initiatingPackageName); in installedByAdb()
|
D | PackageArchiver.java | 220 if (!PackageManagerServiceUtils.isSystemOrRootOrShell(binderUid)) { in requestArchive() 762 if (!PackageManagerServiceUtils.isSystemOrRootOrShell(binderUid)) { in requestUnarchive()
|
/frameworks/base/services/core/java/com/android/server/om/ |
D | PackageManagerHelper.java | 26 import com.android.server.pm.PackageManagerServiceUtils;
|
/frameworks/base/services/core/java/com/android/server/pm/dex/ |
D | ArtManagerService.java | 55 import com.android.server.pm.PackageManagerServiceUtils; 256 PackageManagerServiceUtils.getPackageManagerLocal() in snapshotAppProfile() 301 PackageManagerServiceUtils.getPackageManagerLocal() in snapshotBootImageProfile()
|
D | DexManager.java | 44 import com.android.server.pm.PackageManagerServiceUtils; 192 if (!PackageManagerServiceUtils.checkISA(loaderIsa)) { in notifyDexLoadInternal() 558 String dexPathReal = PackageManagerServiceUtils.realpath(new File(dexPath)); in getDexPackage()
|
D | PackageDexUsage.java | 27 import com.android.server.pm.PackageManagerServiceUtils; 126 if (!PackageManagerServiceUtils.checkISA(loaderIsa)) { in record()
|
/frameworks/base/services/core/java/com/android/server/integrity/ |
D | AppIntegrityManagerServiceImpl.java | 70 import com.android.server.pm.PackageManagerServiceUtils; 388 if (PackageManagerServiceUtils.isInstalledByAdb(installer)) { in getInstallerPackageName()
|