/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 | 108 final PackageInfo pkgInfo = packages.get(i); in createAppidTrustlist() local 110 final int uid = pm.getPackageUid(pkgInfo.packageName, queryFlags); in createAppidTrustlist() 114 Slog.e(TAG, "Cannot find uid for package name " + pkgInfo.packageName, e); in createAppidTrustlist()
|
/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/services/core/java/com/android/server/pm/ |
D | PackageInstallerSession.java | 1097 final PackageInfo pkgInfo = mPm.getPackageInfo( in sealAndValidateLocked() local 1105 validateApkInstallLocked(pkgInfo); in sealAndValidateLocked() 1504 private void validateApkInstallLocked(@Nullable PackageInfo pkgInfo) in validateApkInstallLocked() argument 1517 && (pkgInfo == null || pkgInfo.applicationInfo == null)) { in validateApkInstallLocked() 1524 && VerityUtils.hasFsverity(pkgInfo.applicationInfo.getBaseCodePath()); in validateApkInstallLocked() 1603 if (pkgInfo == null) { in validateApkInstallLocked() 1610 if (!ArrayUtils.contains(pkgInfo.splitNames, splitName)) { in validateApkInstallLocked() 1618 mPackageName = pkgInfo.packageName; in validateApkInstallLocked() 1619 mVersionCode = pkgInfo.getLongVersionCode(); in validateApkInstallLocked() 1624 pkgInfo.applicationInfo.sourceDir, in validateApkInstallLocked() [all …]
|
D | PackageManagerService.java | 13662 private List<ComponentName> matchVerifiers(PackageInfoLite pkgInfo, 13664 if (pkgInfo.verifiers.length == 0) { 13668 final int N = pkgInfo.verifiers.length; 13671 final VerifierInfo verifierInfo = pkgInfo.verifiers[i];
|
/frameworks/base/services/core/java/com/android/server/rollback/ |
D | RollbackManagerServiceImpl.java | 935 final PackageInfo pkgInfo; in enableRollbackForPackageSession() local 937 pkgInfo = getPackageInfo(packageName); in enableRollbackForPackageSession() 946 pkgInfo.getLongVersionCode()); in enableRollbackForPackageSession() 954 ApplicationInfo appInfo = pkgInfo.applicationInfo; in enableRollbackForPackageSession() 1178 PackageInfo pkgInfo = null; in getInstalledPackageVersion() local 1180 pkgInfo = getPackageInfo(packageName); in getInstalledPackageVersion() 1185 return new VersionedPackage(packageName, pkgInfo.getLongVersionCode()); in getInstalledPackageVersion()
|
/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/tests/net/java/com/android/server/connectivity/ |
D | PermissionMonitorTest.java | 174 final PackageInfo pkgInfo = packageInfoWithPartition(partition); in buildPackageInfo() local 175 pkgInfo.applicationInfo.uid = UserHandle.getUid(userId, UserHandle.getAppId(uid)); in buildPackageInfo() 176 return pkgInfo; in buildPackageInfo()
|
/frameworks/base/core/java/android/app/ |
D | ActivityThread.java | 2183 String[] libDirs, int displayId, LoadedApk pkgInfo) { in getTopLevelResources() argument 2185 displayId, null, pkgInfo.getCompatibilityInfo(), pkgInfo.getClassLoader()); in getTopLevelResources() 5954 LoadedApk pkgInfo = ref != null ? ref.get() : null; in handleDispatchPackageBroadcast() local 5955 if (pkgInfo != null) { in handleDispatchPackageBroadcast() 5959 pkgInfo = ref != null ? ref.get() : null; in handleDispatchPackageBroadcast() 5960 if (pkgInfo != null) { in handleDispatchPackageBroadcast() 5968 if (pkgInfo != null) { in handleDispatchPackageBroadcast() 5982 ar.packageInfo = pkgInfo; in handleDispatchPackageBroadcast() 5987 final String[] oldResDirs = { pkgInfo.getResDir() }; in handleDispatchPackageBroadcast() 5990 LoadedApk.makePaths(this, pkgInfo.getApplicationInfo(), oldPaths); in handleDispatchPackageBroadcast() [all …]
|
/frameworks/base/services/appwidget/java/com/android/server/appwidget/ |
D | AppWidgetServiceImpl.java | 2633 PackageInfo pkgInfo = null; in getUidForPackage() local 2637 pkgInfo = mPackageManager.getPackageInfo(packageName, 0, userId); in getUidForPackage() 2644 if (pkgInfo == null || pkgInfo.applicationInfo == null) { in getUidForPackage() 2648 return pkgInfo.applicationInfo.uid; in getUidForPackage()
|
/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() 3036 PackageInfo pkgInfo = mPackageManager.getPackageInfo( in calculatePackageSignatureDigest() local 3038 for (Signature sig : pkgInfo.signatures) { in calculatePackageSignatureDigest()
|
/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | PermissionManagerService.java | 3006 private static boolean hasPermission(PackageParser.Package pkgInfo, String permName) { in hasPermission() argument 3007 for (int i=pkgInfo.permissions.size()-1; i>=0; i--) { in hasPermission() 3008 if (pkgInfo.permissions.get(i).info.name.equals(permName)) { in hasPermission()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ActivityManagerService.java | 7652 final PackageInfo pkgInfo = AppGlobals.getPackageManager() in installEncryptionUnawareProviders() local 7654 if (pkgInfo != null && !ArrayUtils.isEmpty(pkgInfo.providers)) { in installEncryptionUnawareProviders() 7655 for (ProviderInfo pi : pkgInfo.providers) { in installEncryptionUnawareProviders()
|