Home
last modified time | relevance | path

Searched refs:installerPackageName (Results 1 – 25 of 50) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/pm/
DInstallSource.java71 final String installerPackageName; field in InstallSource
92 @Nullable String originatingPackageName, @Nullable String installerPackageName, in create() argument
94 return create(initiatingPackageName, originatingPackageName, installerPackageName, in create()
99 @Nullable String originatingPackageName, @Nullable String installerPackageName, in create() argument
102 return create(initiatingPackageName, originatingPackageName, installerPackageName, in create()
108 @Nullable String originatingPackageName, @Nullable String installerPackageName, in create() argument
110 return create(initiatingPackageName, originatingPackageName, installerPackageName, in create()
115 @Nullable String originatingPackageName, @Nullable String installerPackageName, in create() argument
121 intern(installerPackageName), in create()
128 @Nullable String originatingPackageName, @Nullable String installerPackageName, in createInternal() argument
[all …]
DSilentUpdatePolicy.java58 public boolean isSilentUpdateAllowed(@Nullable String installerPackageName, in isSilentUpdateAllowed() argument
60 if (installerPackageName == null) { in isSilentUpdateAllowed()
64 final long lastSilentUpdatedMs = getTimestampMs(installerPackageName, packageName); in isSilentUpdateAllowed()
79 public void track(@Nullable String installerPackageName, @NonNull String packageName) { in track() argument
80 if (installerPackageName == null) { in track()
86 && mAllowUnlimitedSilentUpdatesInstaller.equals(installerPackageName)) { in track()
92 final Pair<String, String> key = Pair.create(installerPackageName, packageName); in track()
101 void setAllowUnlimitedSilentUpdates(@Nullable String installerPackageName) { in setAllowUnlimitedSilentUpdates() argument
103 if (installerPackageName == null) { in setAllowUnlimitedSilentUpdates()
106 mAllowUnlimitedSilentUpdatesInstaller = installerPackageName; in setAllowUnlimitedSilentUpdates()
[all …]
DPackageSessionVerifier.java481 private boolean isApexUpdateAllowed(String apexPackageName, String installerPackageName) { in isApexUpdateAllowed() argument
489 return modulesInstaller.equals(installerPackageName); in isApexUpdateAllowed()
497 return vendorApexInstaller.equals(installerPackageName); in isApexUpdateAllowed()
517 final String installerPackageName = session.getInstallSource().installerPackageName; in checkApexUpdateAllowed() local
518 if (!isApexUpdateAllowed(packageName, installerPackageName)) { in checkApexUpdateAllowed()
522 + installerPackageName); in checkApexUpdateAllowed()
DPackageInstallerService.java590 public int createSession(SessionParams params, String installerPackageName,
593 return createSessionInternal(params, installerPackageName, callingAttributionTag,
600 private int createSessionInternal(SessionParams params, String installerPackageName,
643 String requestedInstallerPackageName = (params.installerPackageName != null
644 && params.installerPackageName.length() < SessionParams.MAX_PACKAGE_NAME_LENGTH)
645 ? params.installerPackageName : installerPackageName;
652 installerPackageName = null;
656 mAppOps.checkPackage(callingUid, installerPackageName);
660 if (!TextUtils.equals(requestedInstallerPackageName, installerPackageName)) {
853 InstallSource installSource = InstallSource.create(installerPackageName,
[all …]
DApkChecksums.java312 @Nullable String installerPackageName, in getChecksums() argument
324 getAvailableApkChecksums(split, file, optional | required, installerPackageName, in getChecksums()
390 @Nullable String installerPackageName, in getAvailableApkChecksums() argument
417 getInstallerChecksums(split, file, types, installerPackageName, trustedInstallers, in getAvailableApkChecksums()
423 @Nullable String installerPackageName, in getInstallerChecksums() argument
427 if (TextUtils.isEmpty(installerPackageName)) { in getInstallerChecksums()
461 installerPackageName); in getInstallerChecksums()
507 new ApkChecksum(split, digest, installerPackageName, trustedCertBytes)); in getInstallerChecksums()
DInstallParams.java114 installSource.installerPackageName, installerUid, sessionParams.installReason); in InstallParams()
290 private int fixUpInstallReason(String installerPackageName, int installerUid, in fixUpInstallReason() argument
300 if (ownerPackage != null && ownerPackage.equals(installerPackageName)) { in fixUpInstallReason()
DPackageInstallerSession.java798 getInstallSource().installerPackageName, mInstallerUid); in isInstallerDeviceOwnerOrAffiliatedProfileOwner()
922 mOriginalInstallerPackageName = mInstallSource.installerPackageName; in PackageInstallerSession()
1033 info.installerPackageName = mInstallSource.installerPackageName; in generateInfoInternal()
1278 final String installerPackageName; in setChecksums() local
1280 installerPackageName = getInstallSource().initiatingPackageName; in setChecksums()
1282 installerPackageName = getInstallSource().installerPackageName; in setChecksums()
1284 if (TextUtils.isEmpty(installerPackageName)) { in setChecksums()
1289 appOps.checkPackage(Binder.getCallingUid(), installerPackageName); in setChecksums() local
1292 final AndroidPackage callingInstaller = pmi.getPackage(installerPackageName); in setChecksums()
1323 final String installerPackageName = getInstallSource().initiatingPackageName; in requestChecksums() local
[all …]
DPackageManagerShellCommand.java1447 params.installerPackageName, params.userId); in doRunInstall()
1562 installParams.installerPackageName, installParams.userId); in runInstallCreate()
3033 String installerPackageName; field in PackageManagerShellCommand.InstallParams
3062 params.installerPackageName = getNextArg(); in makeInstallParams()
3063 if (params.installerPackageName == null) { in makeInstallParams()
3161 if (params.installerPackageName == null) { in makeInstallParams()
3169 params.installerPackageName = "com.android.shell"; in makeInstallParams()
3244 final String installerPackageName = getNextArg(); in runSetInstaller() local
3246 if (targetPackage == null || installerPackageName == null) { in runSetInstaller()
3251 mInterface.setInstallerPackageName(targetPackage, installerPackageName); in runSetInstaller()
[all …]
/frameworks/base/services/core/java/com/android/server/utils/
DAppInstallerUtil.java37 String installerPackageName = null; in getInstallerPackageName() local
39 installerPackageName = in getInstallerPackageName()
44 if (installerPackageName == null) { in getInstallerPackageName()
47 return installerPackageName; in getInstallerPackageName()
53 public static Intent createIntent(Context context, String installerPackageName, in createIntent() argument
55 Intent intent = new Intent(Intent.ACTION_SHOW_APP_INFO).setPackage(installerPackageName); in createIntent()
69 String installerPackageName = getInstallerPackageName(context, packageName); in createIntent() local
70 return createIntent(context, installerPackageName, packageName); in createIntent()
/frameworks/base/core/java/android/content/pm/
DIPackageInstaller.aidl31 int createSession(in PackageInstaller.SessionParams params, String installerPackageName, in createSession() argument
44 ParceledListSlice getMySessions(String installerPackageName, int userId); in getMySessions() argument
67 void setAllowUnlimitedSilentUpdates(String installerPackageName); in setAllowUnlimitedSilentUpdates() argument
DApkChecksum.java151 @Nullable String installerPackageName, in ApkChecksum() argument
157 this.mInstallerPackageName = installerPackageName; in ApkChecksum()
210 String installerPackageName = (flg & 0x4) == 0 ? null : in.readString(); in ApkChecksum() local
217 this.mInstallerPackageName = installerPackageName; in ApkChecksum()
DPackageInstaller.java479 String installerPackageName, String installerAttributionTag, int userId) { in PackageInstaller() argument
481 mInstallerPackageName = installerPackageName; in PackageInstaller()
1775 public String installerPackageName; field in PackageInstaller.SessionParams
1823 installerPackageName = source.readString(); in SessionParams()
1857 ret.installerPackageName = installerPackageName; in copy()
2216 public void setInstallerPackageName(@Nullable String installerPackageName) { in setInstallerPackageName() argument
2217 this.installerPackageName = installerPackageName; in setInstallerPackageName()
2372 pw.printPair("installerPackageName", installerPackageName); in dump()
2407 dest.writeString(installerPackageName); in writeToParcel()
2525 public String installerPackageName; field in PackageInstaller.SessionInfo
[all …]
/frameworks/base/services/core/java/com/android/server/rollback/
DRollback.java207 String installerPackageName, int[] packageSessionIds, in Rollback() argument
215 mInstallerPackageName = installerPackageName; in Rollback()
230 int userId, String installerPackageName, SparseIntArray extensionVersions) { in Rollback() argument
233 mInstallerPackageName = installerPackageName; in Rollback()
542 String installerPackageName = mInstallerPackageName; in commit() local
544 installerPackageName = pm.getInstallerPackageName( in commit()
547 if (installerPackageName != null) { in commit()
548 params.setInstallerPackageName(installerPackageName); in commit()
DRollbackManagerServiceImpl.java855 final String installerPackageName = session.getInstallerPackageName();
856 if (!enableRollbackAllowed(installerPackageName, packageName)) {
857 Slog.e(TAG, "Installer " + installerPackageName
995 private boolean enableRollbackAllowed(String installerPackageName, String packageName) {
996 if (installerPackageName == null) {
1003 installerPackageName) == PackageManager.PERMISSION_GRANTED;
1007 installerPackageName) == PackageManager.PERMISSION_GRANTED;
1264 String installerPackageName = parentSession.getInstallerPackageName();
1269 + " user=" + userId + " installer=" + installerPackageName);
1282 installerPackageName, packageSessionIds, getExtensionVersions());
[all …]
DRollbackStore.java212 String installerPackageName, int[] packageSessionIds, in createNonStagedRollback() argument
216 installerPackageName, packageSessionIds, extensionVersions); in createNonStagedRollback()
224 String installerPackageName, int[] packageSessionIds, in createStagedRollback() argument
228 installerPackageName, packageSessionIds, extensionVersions); in createStagedRollback()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/
DPackageInstallerSessionTest.java286 assertEquals(expected.installerPackageName, actual.installerPackageName); in assertSessionParamsEquivalent()
337 assertEquals(expected.installerPackageName, actual.installerPackageName); in assertInstallSourcesEquivalent()
/frameworks/base/services/core/java/com/android/server/integrity/
DAppIntegrityManagerServiceImpl.java286 String installerPackageName = getInstallerPackageName(intent); in handleIntegrityVerification() local
289 if (!integrityCheckIncludesRuleProvider() && isRuleProvider(installerPackageName)) { in handleIntegrityVerification()
312 getInstallerCertificateFingerprint(installerPackageName); in handleIntegrityVerification()
320 builder.setInstallerName(getPackageNameNormalized(installerPackageName)); in handleIntegrityVerification()
350 installerPackageName, in handleIntegrityVerification()
752 private boolean isRuleProvider(String installerPackageName) { in isRuleProvider() argument
754 if (ruleProvider.matches(installerPackageName)) { in isRuleProvider()
/frameworks/base/core/java/android/app/
DApplicationErrorReport.java106 public String installerPackageName; field in ApplicationErrorReport
236 dest.writeString(installerPackageName); in writeToParcel()
263 installerPackageName = in.readString(); in readFromParcel()
690 pw.println(prefix + "installerPackageName: " + installerPackageName); in dump()
/frameworks/base/services/core/java/com/android/server/pm/pkg/mutate/
DPackageStateWrite.java59 PackageStateWrite setInstaller(@NonNull String installerPackageName); in setInstaller() argument
DPackageStateMutator.java266 public PackageStateWrite setInstaller(@NonNull String installerPackageName) { in setInstaller() argument
268 mState.setInstallerPackageName(installerPackageName); in setInstaller()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DRestoreUtils.java75 String installerPackageName, in installApk() argument
90 params.setInstallerPackageName(installerPackageName); in installApk()
/frameworks/base/services/backup/java/com/android/server/backup/
DFileMetadata.java32 public String installerPackageName; // name of the market-type app that installed the owner field in FileMetadata
/frameworks/base/services/robotests/backup/src/com/android/server/backup/fullbackup/
DAppMetadataBackupWriterTest.java382 String packageName, @Nullable String installerPackageName, long versionCode) { in createPackageInfo() argument
387 if (installerPackageName != null) { in createPackageInfo()
388 mPackageManager.setInstallerPackageName(packageName, installerPackageName); in createPackageInfo()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DPackageInstalledNotificationUtils.java199 @NonNull String installerPackageName, @NonNull String packageName) { in getAppStoreLink() argument
201 .setPackage(installerPackageName); in getAppStoreLink()
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DFullRestoreEngine.java238 mPackageInstallers.put(pkg, info.installerPackageName); in restoreOneFile()
275 String installerPackageName = mPackageInstallers.get(pkg); in restoreOneFile() local
279 mPackagePolicies, info, installerPackageName, in restoreOneFile()

12