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

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

am 41bfe121: am 16678ac6: Merge "Fixed upgrading from forward-lock application...

am 41bfe121: am 16678ac6: Merge "Fixed upgrading from forward-lock application to system application"

* commit '41bfe121':
  Fixed upgrading from forward-lock application to system application
parents 30420d58 41bfe121
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3674,6 +3674,7 @@ public class PackageManagerService extends IPackageManager.Stub {
            updatedPkg = mSettings.getDisabledSystemPkgLPr(ps != null ? ps.name : pkg.packageName);
            if (DEBUG_INSTALL && updatedPkg != null) Slog.d(TAG, "updatedPkg = " + updatedPkg);
        }
        boolean updatedPkgBetter = false;
        // First check if this is a system package that may involve an update
        if (updatedPkg != null && (parseFlags&PackageParser.PARSE_IS_SYSTEM) != 0) {
            if (ps != null && !ps.codePath.equals(scanFile)) {
@@ -3728,6 +3729,7 @@ public class PackageManagerService extends IPackageManager.Stub {
                    synchronized (mPackages) {
                        mSettings.enableSystemPackageLPw(ps.name);
                    }
                    updatedPkgBetter = true;
                }
            }
        }
@@ -3804,7 +3806,7 @@ public class PackageManagerService extends IPackageManager.Stub {

        String codePath = null;
        String resPath = null;
        if ((parseFlags & PackageParser.PARSE_FORWARD_LOCK) != 0) {
        if ((parseFlags & PackageParser.PARSE_FORWARD_LOCK) != 0 && !updatedPkgBetter) {
            if (ps != null && ps.resourcePathString != null) {
                resPath = ps.resourcePathString;
            } else {