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

Commit c1d07d9b authored by Suchi Amalapurapu's avatar Suchi Amalapurapu
Browse files

Fix 2656989. Clean up update to updated system applications.

Change-Id: Ic66b00926c45fac43396f1f8f23d0865ba77faba
parent a69e10db
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -5780,6 +5780,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);
                }
            }
        }
    }