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

Commit fa56d3fb authored by Winson Chiu's avatar Winson Chiu Committed by Automerger Merge Worker
Browse files

Merge "Calculate oldPaths for out of date LoadedApks" into rvc-dev am:...

Merge "Calculate oldPaths for out of date LoadedApks" into rvc-dev am: c023f447 am: bd1ad245 am: 66170e2a am: cc0cd60e

Change-Id: Ib2b82ee402e9024485e26eeac57bd4601cbc61de
parents 23e35bd2 cc0cd60e
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -2234,7 +2234,9 @@ public final class ActivityThread extends ClientTransactionHandler {
            LoadedApk packageInfo = ref != null ? ref.get() : null;
            if (ai != null && packageInfo != null) {
                if (!isLoadedApkResourceDirsUpToDate(packageInfo, ai)) {
                    packageInfo.updateApplicationInfo(ai, null);
                    List<String> oldPaths = new ArrayList<>();
                    LoadedApk.makePaths(this, ai, oldPaths);
                    packageInfo.updateApplicationInfo(ai, oldPaths);
                }

                if (packageInfo.isSecurityViolation()
@@ -2322,7 +2324,9 @@ public final class ActivityThread extends ClientTransactionHandler {

            if (packageInfo != null) {
                if (!isLoadedApkResourceDirsUpToDate(packageInfo, aInfo)) {
                    packageInfo.updateApplicationInfo(aInfo, null);
                    List<String> oldPaths = new ArrayList<>();
                    LoadedApk.makePaths(this, aInfo, oldPaths);
                    packageInfo.updateApplicationInfo(aInfo, oldPaths);
                }

                return packageInfo;