am 9c08d5c5: am 9dfc6971: am df7ccbc8: Merge "Fix 2656989. Clean up update to updated system applications." into froyo
This commit is contained in:
@@ -5805,6 +5805,18 @@ class PackageManagerService extends IPackageManager.Stub {
|
|||||||
}
|
}
|
||||||
mSettings.writeLP();
|
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);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user