Merge "Don't add APEX keysets to KeySetManagerService"
This commit is contained in:
committed by
Android (Google) Code Review
commit
85199de9d6
@@ -473,9 +473,13 @@ final class InstallPackageHelper {
|
||||
mApexManager.registerApkInApex(pkg);
|
||||
}
|
||||
|
||||
// Add the package's KeySets to the global KeySetManagerService
|
||||
KeySetManagerService ksms = mPm.mSettings.getKeySetManagerService();
|
||||
ksms.addScannedPackageLPw(pkg);
|
||||
// Don't add keysets for APEX as their package settings are not persisted and will
|
||||
// result in orphaned keysets.
|
||||
if ((scanFlags & SCAN_AS_APEX) == 0) {
|
||||
// Add the package's KeySets to the global KeySetManagerService
|
||||
KeySetManagerService ksms = mPm.mSettings.getKeySetManagerService();
|
||||
ksms.addScannedPackageLPw(pkg);
|
||||
}
|
||||
|
||||
final Computer snapshot = mPm.snapshotComputer();
|
||||
mPm.mComponentResolver.addAllComponents(pkg, chatty, mPm.mSetupWizardPackage, snapshot);
|
||||
|
||||
Reference in New Issue
Block a user