Home
last modified time | relevance | path

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

12

/frameworks/base/services/core/java/com/android/server/pm/
DInstallSource.java69 final String installerPackageName; field in InstallSource
88 @Nullable String originatingPackageName, @Nullable String installerPackageName, in create() argument
90 return create(initiatingPackageName, originatingPackageName, installerPackageName, in create()
95 @Nullable String originatingPackageName, @Nullable String installerPackageName, in create() argument
101 intern(installerPackageName), in create()
107 @Nullable String originatingPackageName, @Nullable String installerPackageName, in createInternal() argument
112 && installerPackageName == null && initiatingPackageSignatures == null in createInternal()
117 installerPackageName, installerAttributionTag, isOrphaned, in createInternal()
123 @Nullable String originatingPackageName, @Nullable String installerPackageName, in InstallSource() argument
133 this.installerPackageName = installerPackageName; in InstallSource()
[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 …]
DPackageInstallerService.java516 public int createSession(SessionParams params, String installerPackageName, in createSession() argument
519 return createSessionInternal(params, installerPackageName, callingAttributionTag, in createSession()
526 private int createSessionInternal(SessionParams params, String installerPackageName, in createSessionInternal() argument
569 String requestedInstallerPackageName = (params.installerPackageName != null in createSessionInternal()
570 && params.installerPackageName.length() < SessionParams.MAX_PACKAGE_NAME_LENGTH) in createSessionInternal()
571 ? params.installerPackageName : installerPackageName; in createSessionInternal()
577 installerPackageName = null; in createSessionInternal()
581 mAppOps.checkPackage(callingUid, installerPackageName); in createSessionInternal()
585 if (!TextUtils.equals(requestedInstallerPackageName, installerPackageName)) { in createSessionInternal()
783 InstallSource installSource = InstallSource.create(installerPackageName, in createSessionInternal()
[all …]
DApkChecksums.java308 @Nullable String installerPackageName, in getChecksums() argument
320 getAvailableApkChecksums(split, file, optional | required, installerPackageName, in getChecksums()
386 @Nullable String installerPackageName, in getAvailableApkChecksums() argument
413 getInstallerChecksums(split, file, types, installerPackageName, trustedInstallers, in getAvailableApkChecksums()
419 @Nullable String installerPackageName, in getInstallerChecksums() argument
423 if (TextUtils.isEmpty(installerPackageName)) { in getInstallerChecksums()
457 installerPackageName); in getInstallerChecksums()
503 new ApkChecksum(split, digest, installerPackageName, trustedCertBytes)); in getInstallerChecksums()
DPackageInstallerSession.java910 mInstallSource.installerPackageName, mInstallerUid); in isInstallerDeviceOwnerOrAffiliatedProfileOwner()
1023 mOriginalInstallerPackageName = mInstallSource.installerPackageName; in PackageInstallerSession()
1125 info.installerPackageName = mInstallSource.installerPackageName; in generateInfoInternal()
2240 .setAdmin(mInstallSource.installerPackageName) in handleInstall()
2256 mInstallSource.installerPackageName)) { in handleInstall()
2259 + mInstallSource.installerPackageName); in handleInstall()
2818 private boolean isApexUpdateAllowed(String apexPackageName, String installerPackageName) { in isApexUpdateAllowed() argument
2826 return modulesInstaller.equals(installerPackageName); in isApexUpdateAllowed()
2834 return vendorApexInstaller.equals(installerPackageName); in isApexUpdateAllowed()
2989 final String installerPackageName = getInstallerPackageName(); in validateApkInstallLocked() local
[all …]
DPackageManagerShellCommand.java1342 params.installerPackageName, params.userId); in doRunInstall()
1457 installParams.installerPackageName, installParams.userId); in runInstallCreate()
2747 String installerPackageName; field in PackageManagerShellCommand.InstallParams
2771 params.installerPackageName = getNextArg(); in makeInstallParams()
2772 if (params.installerPackageName == null) { in makeInstallParams()
2870 if (params.installerPackageName == null) { in makeInstallParams()
2878 params.installerPackageName = "com.android.shell"; in makeInstallParams()
2953 final String installerPackageName = getNextArg(); in runSetInstaller() local
2955 if (targetPackage == null || installerPackageName == null) { in runSetInstaller()
2960 mInterface.setInstallerPackageName(targetPackage, installerPackageName); in runSetInstaller()
[all …]
DSettings.java2635 } else if (pkg.installSource.installerPackageName != null
2636 && !pkg.installSource.installerPackageName.isEmpty()) {
2637 sb.append(pkg.installSource.installerPackageName);
2730 if (installSource.installerPackageName != null) {
2731 serializer.attribute(null, "installer", installSource.installerPackageName);
3496 String installerPackageName = null;
3541 installerPackageName = parser.getAttributeValue(null, "installer");
3681 installerPackageName, installerAttributionTag, isOrphaned,
3788 if (installSource.installerPackageName != null) {
3789 mInstallerPackages.add(installSource.installerPackageName);
[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.java418 String installerPackageName, String installerAttributionTag, int userId) { in PackageInstaller() argument
420 mInstallerPackageName = installerPackageName; in PackageInstaller()
1609 public String installerPackageName; field in PackageInstaller.SessionParams
1655 installerPackageName = source.readString(); in SessionParams()
1688 ret.installerPackageName = installerPackageName; in copy()
2033 public void setInstallerPackageName(@Nullable String installerPackageName) { in setInstallerPackageName() argument
2034 this.installerPackageName = installerPackageName; in setInstallerPackageName()
2182 pw.printPair("installerPackageName", installerPackageName); in dump()
2217 dest.writeString(installerPackageName); in writeToParcel()
2313 public String installerPackageName; field in PackageInstaller.SessionInfo
[all …]
/frameworks/base/services/core/java/com/android/server/rollback/
DRollback.java213 String installerPackageName, int[] packageSessionIds, in Rollback() argument
221 mInstallerPackageName = installerPackageName; in Rollback()
232 String installerPackageName) { in Rollback() argument
233 this(rollbackId, backupDir, stagedSessionId, userId, installerPackageName, null, in Rollback()
242 int userId, String installerPackageName, SparseIntArray extensionVersions) { in Rollback() argument
245 mInstallerPackageName = installerPackageName; in Rollback()
555 String installerPackageName = mInstallerPackageName; in commit() local
557 installerPackageName = pm.getInstallerPackageName( in commit()
560 if (installerPackageName != null) { in commit()
561 params.setInstallerPackageName(installerPackageName); in commit()
DRollbackManagerServiceImpl.java853 final String installerPackageName = session.getInstallerPackageName();
854 if (!enableRollbackAllowed(installerPackageName, packageName)) {
855 Slog.e(TAG, "Installer " + installerPackageName
1026 private boolean enableRollbackAllowed(String installerPackageName, String packageName) {
1027 if (installerPackageName == null) {
1034 installerPackageName) == PackageManager.PERMISSION_GRANTED;
1038 installerPackageName) == PackageManager.PERMISSION_GRANTED;
1290 String installerPackageName = parentSession.getInstallerPackageName();
1295 + " user=" + userId + " installer=" + installerPackageName);
1308 installerPackageName, packageSessionIds, getExtensionVersions());
[all …]
DRollbackStore.java212 Rollback createNonStagedRollback(int rollbackId, int userId, String installerPackageName, in createNonStagedRollback() argument
215 return new Rollback(rollbackId, backupDir, -1, userId, installerPackageName, in createNonStagedRollback()
224 String installerPackageName, int[] packageSessionIds, in createStagedRollback() argument
227 return new Rollback(rollbackId, backupDir, stagedSessionId, userId, installerPackageName, in createStagedRollback()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageInstallerSessionTest.java275 assertEquals(expected.installerPackageName, actual.installerPackageName); in assertSessionParamsEquivalent()
326 assertEquals(expected.installerPackageName, actual.installerPackageName); in assertInstallSourcesEquivalent()
/frameworks/base/services/core/java/com/android/server/integrity/
DAppIntegrityManagerServiceImpl.java283 String installerPackageName = getInstallerPackageName(intent); in handleIntegrityVerification() local
286 if (!integrityCheckIncludesRuleProvider() && isRuleProvider(installerPackageName)) { in handleIntegrityVerification()
308 getInstallerCertificateFingerprint(installerPackageName); in handleIntegrityVerification()
315 builder.setInstallerName(getPackageNameNormalized(installerPackageName)); in handleIntegrityVerification()
345 installerPackageName, in handleIntegrityVerification()
701 private boolean isRuleProvider(String installerPackageName) { in isRuleProvider() argument
703 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/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()
DPackageInstallerActivity.java613 String installerPackageName = getIntent().getStringExtra( in startInstall() local
624 if (installerPackageName != null) { in startInstall()
626 installerPackageName); in startInstall()
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DFullRestoreEngine.java234 mPackageInstallers.put(pkg, info.installerPackageName); in restoreOneFile()
271 String installerPackageName = mPackageInstallers.get(pkg); in restoreOneFile() local
275 mPackagePolicies, info, installerPackageName, in restoreOneFile()
/frameworks/base/tests/StagedInstallTest/src/com/android/tests/stagedinstallinternal/host/
DStagedInstallInternalTest.java145 private void pushTestVendorApexAllowList(String installerPackageName) throws Exception { in pushTestVendorApexAllowList() argument
157 writer.write(String.format(fmt, installerPackageName)); in pushTestVendorApexAllowList()
/frameworks/base/core/tests/PackageInstallerSessions/src/android/content/pm/
DPackageSessionTests.kt155 assertThat(installer.getSessionInfo(it)?.installerPackageName) in <lambda>()

12