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

Commit ac889bc8 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 am: fb8dbf91

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

Change-Id: Iec41da939e171a9a7a03f076508e598595155960
parents bd3da6e4 fb8dbf91
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -22051,7 +22051,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);
            }