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

This commit is contained in:
Suchi Amalapurapu
2010-05-05 19:38:53 -07:00
committed by Android Git Automerger

View File

@@ -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);
}
}
}
}