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

Commit fb8dbf91 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix the scanning on non-APEX devices." am: 6589fd10

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1889637

Change-Id: I96575cfdec30d5b9e7183d6559fc223c359b34d7
parents 79f3ff5a 6589fd10
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -21917,7 +21917,9 @@ public class PackageManagerService extends IPackageManager.Stub
            ApexManager.ActiveApexInfo apexInfo) {
        for (int i = 0, size = SYSTEM_PARTITIONS.size(); i < size; i++) {
            ScanPartition sp = SYSTEM_PARTITIONS.get(i);
            if (apexInfo.preInstalledApexPath.getAbsolutePath().startsWith(
            if (apexInfo.preInstalledApexPath.getAbsolutePath().equals(
                    sp.getFolder().getAbsolutePath())
                    || apexInfo.preInstalledApexPath.getAbsolutePath().startsWith(
                        sp.getFolder().getAbsolutePath() + File.separator)) {
                return new ScanPartition(apexInfo.apexDirectory, sp, SCAN_AS_APK_IN_APEX);
            }