Home
last modified time | relevance | path

Searched refs:pkgInfo (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/services/backup/java/com/android/server/backup/utils/
DTarBackupReader.java400 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/
DWearPackageIconProvider.java187 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()
DWearPackageInstallerService.java369 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/
DBinderCallsStatsService.java108 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/
DUninstallAlertDialogFragment.java169 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/
DPackageInstallerSession.java1097 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 …]
DPackageManagerService.java13662 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/
DRollbackManagerServiceImpl.java935 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/
DPackageManagerTests.java606 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/
DPermissionControllerService.java232 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/
DPermissionMonitorTest.java174 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/
DActivityThread.java2183 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/
DAppWidgetServiceImpl.java2633 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/
DAccountManagerService.java1260 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/
DPermissionManagerService.java3006 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/
DActivityManagerService.java7652 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()