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

Commit 3abb09c7 authored by Jiakai Zhang's avatar Jiakai Zhang
Browse files

Pass context to ArtManagerLocal.

ART Services needs the context for:

1. Getting PowerManager and AppHibernationManager
2. Getting resource strings such as R.string.config_systemUi

Bug: 236954191
Test: adb shell pm art optimize-package -m speed-profile -f \
  com.google.android.youtube
Change-Id: I80ffebdcf6f19e8ef0384f1df5877a79a7bf7384
parent 5b09eef2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2709,7 +2709,7 @@ public final class SystemServer implements Dumpable {
        t.traceEnd();

        t.traceBegin("ArtManagerLocal");
        LocalManagerRegistry.addManager(ArtManagerLocal.class, new ArtManagerLocal());
        LocalManagerRegistry.addManager(ArtManagerLocal.class, new ArtManagerLocal(context));
        t.traceEnd();

        if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_UWB)) {