Home
last modified time | relevance | path

Searched refs:PackageManagerServiceUtils (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DDeletePackageHelperTest.kt81 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/
DLegacyPermissionManagerService.java42 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/
DSystemPartitionParseTest.kt24 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/
DFreeStorageHelper.java191 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()
DReconcilePackageUtils.java179 PackageManagerServiceUtils.verifySignatures(signatureCheckPs, in reconcilePackages()
262 && !PackageManagerServiceUtils.canJoinSharedUserId( in reconcilePackages()
265 PackageManagerServiceUtils.SHARED_USER_ID_JOIN_TYPE_SYSTEM)) { in reconcilePackages()
DPackageInstallerService.java711 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 …]
DDeletePackageHelper.java152 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()
DDexOptHelper.java35 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()
DInstallPackageHelper.java88 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 …]
DMovePackageHelper.java339 int packageExternalStorageType = PackageManagerServiceUtils.getPackageExternalStorageType( in logAppMovedStorage()
377 if (PackageManagerServiceUtils.isSystemApp(packageStateInternal) in getPackageSizeInfoLI()
378 && !PackageManagerServiceUtils.isUpdatedSystemApp(packageStateInternal)) { in getPackageSizeInfoLI()
DOtaDexoptService.java145 others.removeIf(PackageManagerServiceUtils.REMOVE_IF_NULL_PKG); in prepare()
146 others.removeIf(PackageManagerServiceUtils.REMOVE_IF_APEX_PKG); in prepare()
DScanPackageUtils.java47 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;
DPackageManagerService.java43 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 …]
DAppDataHelper.java22 import static com.android.server.pm.PackageManagerServiceUtils.getPackageManagerLocal;
23 import static com.android.server.pm.PackageManagerServiceUtils.logCriticalInfo;
DComputerEngine.java60 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 …]
DInstallingSession.java244 PackageInfoLite pkgLite = PackageManagerServiceUtils.getMinimalPackageInfo(mPm.mContext, in handleStartCopy()
335 ret = PackageManagerServiceUtils.copyPackage( in copyApkForFileInstall()
DVerifyingSession.java183 PackageInfoLite pkgLite = PackageManagerServiceUtils.getMinimalPackageInfo(mPm.mContext, in handleStartVerify()
474 rootHashString = PackageManagerServiceUtils.buildVerificationRootHashString( in sendPackageVerificationRequest()
DStorageEventHelper.java27 import static com.android.server.pm.PackageManagerServiceUtils.logCriticalInfo;
DBackgroundInstallControlService.java352 return PackageManagerServiceUtils.isInstalledByAdb(initiatingPackageName); in installedByAdb()
DPackageArchiver.java220 if (!PackageManagerServiceUtils.isSystemOrRootOrShell(binderUid)) { in requestArchive()
762 if (!PackageManagerServiceUtils.isSystemOrRootOrShell(binderUid)) { in requestUnarchive()
/frameworks/base/services/core/java/com/android/server/om/
DPackageManagerHelper.java26 import com.android.server.pm.PackageManagerServiceUtils;
/frameworks/base/services/core/java/com/android/server/pm/dex/
DArtManagerService.java55 import com.android.server.pm.PackageManagerServiceUtils;
256 PackageManagerServiceUtils.getPackageManagerLocal() in snapshotAppProfile()
301 PackageManagerServiceUtils.getPackageManagerLocal() in snapshotBootImageProfile()
DDexManager.java44 import com.android.server.pm.PackageManagerServiceUtils;
192 if (!PackageManagerServiceUtils.checkISA(loaderIsa)) { in notifyDexLoadInternal()
558 String dexPathReal = PackageManagerServiceUtils.realpath(new File(dexPath)); in getDexPackage()
DPackageDexUsage.java27 import com.android.server.pm.PackageManagerServiceUtils;
126 if (!PackageManagerServiceUtils.checkISA(loaderIsa)) { in record()
/frameworks/base/services/core/java/com/android/server/integrity/
DAppIntegrityManagerServiceImpl.java70 import com.android.server.pm.PackageManagerServiceUtils;
388 if (PackageManagerServiceUtils.isInstalledByAdb(installer)) { in getInstallerPackageName()

12