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

Commit df7ccbc8 authored by Suchi Amalapurapu's avatar Suchi Amalapurapu Committed by Android (Google) Code Review
Browse files

Merge "Fix 2656989. Clean up update to updated system applications." into froyo

parents 2d315667 c1d07d9b
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);
                }
            }
        }
    }