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

Commit a779288e authored by Xin Li's avatar Xin Li
Browse files

DO NOT MERGE - Merge RQ3A.210605.005

Bug: 190855093
Merged-In: Idc989ac84777589b4bdd72012833cdbdab7e872c
Change-Id: I1e6e75762ceceffb716b5742983f5655b5ad3db3
parents 92fa87d7 ba595d5d
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -782,12 +782,15 @@ public abstract class ApexManager {
        void registerApkInApex(AndroidPackage pkg) {
            synchronized (mLock) {
                for (ActiveApexInfo aai : mActiveApexInfosCache) {
                    if (pkg.getBaseCodePath().startsWith(aai.apexDirectory.getAbsolutePath())) {
                    if (pkg.getBaseCodePath().startsWith(
                            aai.apexDirectory.getAbsolutePath() + File.separator)) {
                        List<String> apks = mApksInApex.get(aai.apexModuleName);
                        if (apks == null) {
                            apks = Lists.newArrayList();
                            mApksInApex.put(aai.apexModuleName, apks);
                        }
                        Slog.i(TAG, "Registering " + pkg.getPackageName() + " as apk-in-apex of "
                                + aai.apexModuleName);
                        apks.add(pkg.getPackageName());
                    }
                }