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

Commit 3e7d0344 authored by Christopher Tate's avatar Christopher Tate Committed by Gerrit Code Review
Browse files

Merge "Avoid adding FORWARD_LOCK flag to an updated system app"

parents 4be48d43 2d91007e
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -3363,11 +3363,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;