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

Commit a6115ed8 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[res] Load as little of ApkAssets as possible" into main

parents b9377b33 830d4e17
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1344,7 +1344,8 @@ public final class OverlayManagerService extends SystemService {

            ApkAssets apkAssets = null;
            try {
                apkAssets = ApkAssets.loadFromPath(pkg.getSplits().get(0).getPath());
                apkAssets = ApkAssets.loadFromPath(pkg.getSplits().get(0).getPath(),
                        ApkAssets.PROPERTY_ONLY_OVERLAYABLES);
                return apkAssets.definesOverlayable();
            } finally {
                if (apkAssets != null) {