/frameworks/base/services/backup/java/com/android/server/backup/utils/ |
D | TarBackupReader.java | 400 PackageInfo pkgInfo = packageManager.getPackageInfoAsUser( in chooseRestorePolicy() local 403 final int flags = pkgInfo.applicationInfo.flags; in chooseRestorePolicy() 407 if (!UserHandle.isCore(pkgInfo.applicationInfo.uid) in chooseRestorePolicy() 408 || (pkgInfo.applicationInfo.backupAgentName != null)) { in chooseRestorePolicy() 416 if (AppBackupUtils.signaturesMatch(signatures, pkgInfo, pmi)) { in chooseRestorePolicy() 417 if ((pkgInfo.applicationInfo.flags in chooseRestorePolicy() 423 pkgInfo, in chooseRestorePolicy() 427 } else if (pkgInfo.getLongVersionCode() >= info.version) { in chooseRestorePolicy() 433 pkgInfo, in chooseRestorePolicy() 444 + pkgInfo.getLongVersionCode() in chooseRestorePolicy() [all …]
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/ |
D | WearPackageIconProvider.java | 187 PackageInfo pkgInfo = context.getPackageManager().getPackageInfo( in isSystemApp() local 189 if (pkgInfo != null && pkgInfo.applicationInfo != null && in isSystemApp() 190 (pkgInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0) { in isSystemApp()
|
D | WearPackageInstallerService.java | 369 PackageInfo pkgInfo = pm.getPackageInfo(packageName, 0); in uninstallPackage() local 371 getString(R.string.uninstalling_app, pkgInfo.applicationInfo.loadLabel(pm))); in uninstallPackage()
|
/frameworks/base/services/core/java/com/android/server/ |
D | BinderCallsStatsService.java | 105 final PackageInfo pkgInfo = packages.get(i); in createAppidWhitelist() local 107 final int uid = pm.getPackageUid(pkgInfo.packageName, queryFlags); in createAppidWhitelist() 111 Slog.e(TAG, "Cannot find uid for package name " + pkgInfo.packageName, e); in createAppidWhitelist()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/handheld/ |
D | UninstallAlertDialogFragment.java | 169 PackageInfo pkgInfo = pm.getPackageInfo(pkg, 0); in onCreateDialog() local 171 suggestToKeepAppData = pkgInfo.applicationInfo.hasFragileUserData(); in onCreateDialog()
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | PermissionMonitorTest.java | 191 final PackageInfo pkgInfo; in buildPackageInfo() local 196 pkgInfo = packageInfoWithPermissions(systemPermissions, PARTITION_SYSTEM); in buildPackageInfo() 198 pkgInfo = packageInfoWithPermissions(new String[] {}, ""); in buildPackageInfo() 200 pkgInfo.applicationInfo.uid = UserHandle.getUid(userId, UserHandle.getAppId(uid)); in buildPackageInfo() 201 return pkgInfo; in buildPackageInfo()
|
/frameworks/base/services/core/java/com/android/server/rollback/ |
D | RollbackManagerServiceImpl.java | 1013 final PackageInfo pkgInfo; in enableRollbackForPackageSession() local 1015 pkgInfo = getPackageInfo(packageName); in enableRollbackForPackageSession() 1024 pkgInfo.getLongVersionCode()); in enableRollbackForPackageSession() 1033 ApplicationInfo appInfo = pkgInfo.applicationInfo; in enableRollbackForPackageSession() 1261 PackageInfo pkgInfo = null; in getInstalledPackageVersion() local 1263 pkgInfo = getPackageInfo(packageName); in getInstalledPackageVersion() 1268 return new VersionedPackage(packageName, pkgInfo.getLongVersionCode()); in getInstalledPackageVersion()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageInstallerSession.java | 1120 final PackageInfo pkgInfo = mPm.getPackageInfo( in sealAndValidateLocked() local 1130 validateApkInstallLocked(pkgInfo); in sealAndValidateLocked() 1503 private void validateApkInstallLocked(@Nullable PackageInfo pkgInfo) in validateApkInstallLocked() argument 1516 && (pkgInfo == null || pkgInfo.applicationInfo == null)) { in validateApkInstallLocked() 1523 && VerityUtils.hasFsverity(pkgInfo.applicationInfo.getBaseCodePath()); in validateApkInstallLocked() 1609 if (pkgInfo == null) { in validateApkInstallLocked() 1616 if (!ArrayUtils.contains(pkgInfo.splitNames, splitName)) { in validateApkInstallLocked() 1624 mPackageName = pkgInfo.packageName; in validateApkInstallLocked() 1625 mVersionCode = pkgInfo.getLongVersionCode(); in validateApkInstallLocked() 1630 pkgInfo.applicationInfo.sourceDir, in validateApkInstallLocked() [all …]
|
D | PackageManagerService.java | 14113 private List<ComponentName> matchVerifiers(PackageInfoLite pkgInfo, 14115 if (pkgInfo.verifiers.length == 0) { 14119 final int N = pkgInfo.verifiers.length; 14122 final VerifierInfo verifierInfo = pkgInfo.verifiers[i];
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | PackageManagerTests.java | 606 PackageInfo pkgInfo = null; in assertPermissions() local 614 pkgInfo = pm.getPackageInfo(pkg, in assertPermissions() 618 pkgInfo = null; in assertPermissions() 630 assertNotNull(pkgInfo); in assertPermissions() 632 for (int j = 0; j < pkgInfo.permissions.length && !found; j++) { in assertPermissions() 633 if (pkgInfo.permissions[j].name.equals(cmd)) { in assertPermissions() 649 if (pkgInfo != null) { in assertPermissions() 651 for (int j = 0; j < pkgInfo.permissions.length && !found; j++) { in assertPermissions() 652 if (pkgInfo.permissions[j].name.equals(cmd)) { in assertPermissions() 662 for (int j = 0; j < pkgInfo.requestedPermissions.length && !found; j++) { in assertPermissions() [all …]
|
/frameworks/base/core/java/android/permission/ |
D | PermissionControllerService.java | 232 PackageInfo pkgInfo = getPackageManager().getPackageInfo(callerPackageName, 0); in onBind() local 233 checkArgument(getCallingUid() == pkgInfo.applicationInfo.uid); in onBind()
|
/frameworks/base/core/java/android/app/ |
D | ActivityThread.java | 2164 String[] libDirs, int displayId, LoadedApk pkgInfo) { in getTopLevelResources() argument 2166 displayId, null, pkgInfo.getCompatibilityInfo(), pkgInfo.getClassLoader()); in getTopLevelResources() 5914 LoadedApk pkgInfo = ref != null ? ref.get() : null; in handleDispatchPackageBroadcast() local 5915 if (pkgInfo != null) { in handleDispatchPackageBroadcast() 5919 pkgInfo = ref != null ? ref.get() : null; in handleDispatchPackageBroadcast() 5920 if (pkgInfo != null) { in handleDispatchPackageBroadcast() 5928 if (pkgInfo != null) { in handleDispatchPackageBroadcast() 5942 ar.packageInfo = pkgInfo; in handleDispatchPackageBroadcast() 5947 final String[] oldResDirs = { pkgInfo.getResDir() }; in handleDispatchPackageBroadcast() 5950 LoadedApk.makePaths(this, pkgInfo.getApplicationInfo(), oldPaths); in handleDispatchPackageBroadcast() [all …]
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
D | AccountManagerService.java | 1260 for (PackageInfo pkgInfo : pkgsWithData) { in getUidsOfInstalledOrUpdatedPackagesAsUser() 1261 if (pkgInfo.applicationInfo != null in getUidsOfInstalledOrUpdatedPackagesAsUser() 1262 && (pkgInfo.applicationInfo.flags & ApplicationInfo.FLAG_INSTALLED) != 0) { in getUidsOfInstalledOrUpdatedPackagesAsUser() 1263 knownUids.put(pkgInfo.applicationInfo.uid, true); in getUidsOfInstalledOrUpdatedPackagesAsUser() 3009 PackageInfo pkgInfo = mPackageManager.getPackageInfo( in calculatePackageSignatureDigest() local 3011 for (Signature sig : pkgInfo.signatures) { in calculatePackageSignatureDigest()
|
/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | PermissionManagerService.java | 2939 private static boolean hasPermission(PackageParser.Package pkgInfo, String permName) { in hasPermission() argument 2940 for (int i=pkgInfo.permissions.size()-1; i>=0; i--) { in hasPermission() 2941 if (pkgInfo.permissions.get(i).info.name.equals(permName)) { in hasPermission()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ActivityManagerService.java | 7613 final PackageInfo pkgInfo = AppGlobals.getPackageManager() in installEncryptionUnawareProviders() local 7615 if (pkgInfo != null && !ArrayUtils.isEmpty(pkgInfo.providers)) { in installEncryptionUnawareProviders() 7616 for (ProviderInfo pi : pkgInfo.providers) { in installEncryptionUnawareProviders()
|