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

Commit 9c08d5c5 authored by Suchi Amalapurapu's avatar Suchi Amalapurapu Committed by Android Git Automerger
Browse files

am 9dfc6971: am df7ccbc8: Merge "Fix 2656989. Clean up update to updated...

am 9dfc6971: am df7ccbc8: Merge "Fix 2656989. Clean up update to updated system applications." into froyo

Merge commit '9dfc6971' into kraken

* commit '9dfc6971':
  Fix 2656989. Clean up update to updated system applications.
parents ebd2890b 9dfc6971
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -5805,6 +5805,18 @@ class PackageManagerService extends IPackageManager.Stub {
                }
                mSettings.writeLP();
            }
        } else {
            // If this is an update to an existing update, setup 
            // to remove the existing update.
            synchronized (mPackages) {
                PackageSetting ps = mSettings.getDisabledSystemPkg(packageName);
                if (ps != null && ps.codePathString != null &&
                        !ps.codePathString.equals(oldPkgSetting.codePathString)) {
                    int installFlags = 0;
                    res.removedInfo.args = createInstallArgs(0, oldPkgSetting.codePathString,
                            oldPkgSetting.resourcePathString);
                }
            }
        }
    }