Merge "Run appsFilter.systemReady() last"

This commit is contained in:
Patrick Baumann
2020-08-28 18:24:48 +00:00
committed by Android (Google) Code Review

View File

@@ -21645,8 +21645,6 @@ public class PackageManagerService extends IPackageManager.Stub
.getUriFor(Secure.INSTANT_APPS_ENABLED), false, co, UserHandle.USER_ALL);
co.onChange(true);
mAppsFilter.onSystemReady();
// Disable any carrier apps. We do this very early in boot to prevent the apps from being
// disabled after already being started.
CarrierAppUtils.disableCarrierAppsUntilPrivileged(
@@ -21795,6 +21793,9 @@ public class PackageManagerService extends IPackageManager.Stub
mInstallerService.restoreAndApplyStagedSessionIfNeeded();
mExistingPackages = null;
// We'll do this last as it builds its cache while holding mLock via callback.
mAppsFilter.onSystemReady();
}
public void waitForAppDataPrepared() {