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

Commit e4ed9c55 authored by Jiakai Zhang's avatar Jiakai Zhang
Browse files

Pass Context to DexUseManagerLocal and notify it about boot complete.

Bug: 249984283
Test: Presubmit
Change-Id: Ib9c13f13dcbb100b1ee216974dcdcdd64b81ae8b
parent 5248856c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -4270,6 +4270,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()) {