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

Commit 5c611f35 authored by Dario Freni's avatar Dario Freni
Browse files

Fix scanning APKs from APEX installed in /data.

The preinstalledModulePath field was added exactly for this purpose, but
I mistakenly used the modulePath field, which in turn was causing
PackageManager to not scan APEXs activated from /data since /data is not
one of the eligible system partitions.

Bug: 138429615
Test: Manual. Self reminder to add this to CTS tests.
Change-Id: If3cf5b666c3ed8215331383e08d958ae31e6206e
parent 861e2556
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -286,7 +286,7 @@ abstract class ApexManager {
                                new File(
                                Environment.getApexDirectory() + File.separator
                                        + apexInfo.moduleName),
                                new File(apexInfo.modulePath))).collect(
                                new File(apexInfo.preinstalledModulePath))).collect(
                                Collectors.toList());
            } catch (RemoteException e) {
                Slog.e(TAG, "Unable to retrieve packages from apexservice", e);