Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7f5f2781 authored by Jiakai Zhang's avatar Jiakai Zhang Committed by Android (Google) Code Review
Browse files

Merge "Pass Context to DexUseManagerLocal and notify it about boot complete."

parents ffcef191 e4ed9c55
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -4285,6 +4285,11 @@ public class PackageManagerService implements PackageSender, TestUtilityService

        // Prune unused static shared libraries which have been cached a period of time
        schedulePruneUnusedStaticSharedLibraries(false /* delay */);

        DexUseManagerLocal dexUseManager = DexOptHelper.getDexUseManagerLocal();
        if (dexUseManager != null) {
            dexUseManager.systemReady();
        }
    }

    //TODO: b/111402650
+1 −1
Original line number Diff line number Diff line
@@ -1250,7 +1250,7 @@ public final class SystemServer implements Dumpable {
        // DexUseManagerLocal needs to be loaded after PackageManagerLocal has been registered, but
        // before PackageManagerService starts processing binder calls to notifyDexLoad.
        LocalManagerRegistry.addManager(
                DexUseManagerLocal.class, DexUseManagerLocal.createInstance());
                DexUseManagerLocal.class, DexUseManagerLocal.createInstance(mSystemContext));
        t.traceEnd();

        if (!mRuntimeRestart && !isFirstBootOrUpgrade()) {