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

Commit 34718238 authored by Christopher Tate's avatar Christopher Tate Committed by Android Git Automerger
Browse files

am 3e7d0344: Merge "Avoid adding FORWARD_LOCK flag to an updated system app"

* commit '3e7d0344':
  Avoid adding FORWARD_LOCK flag to an updated system app
parents 5b3afe3a 3e7d0344
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -3532,11 +3532,14 @@ public class PackageManagerService extends IPackageManager.Stub {
        }

        // The apk is forward locked (not public) if its code and resources
        // are kept in different files.
        // are kept in different files. (except for app in either system or
        // vendor path).
        // TODO grab this value from PackageSettings
        if ((parseFlags & PackageParser.PARSE_IS_SYSTEM_DIR) == 0) {
            if (ps != null && !ps.codePath.equals(ps.resourcePath)) {
                parseFlags |= PackageParser.PARSE_FORWARD_LOCK;
            }
        }

        String codePath = null;
        String resPath = null;