Merge "Fix issue #3289835: NullPointerException in..." into gingerbread
This commit is contained in:
committed by
Android (Google) Code Review
commit
c8e8a12b3c
@ -5699,7 +5699,10 @@ class PackageManagerService extends IPackageManager.Stub {
|
||||
res.removedInfo.removedPackage = packageName;
|
||||
// Remove existing system package
|
||||
removePackageLI(oldPkg, true);
|
||||
|
||||
synchronized (mPackages) {
|
||||
mSettings.disableSystemPackageLP(packageName);
|
||||
}
|
||||
|
||||
// Successfully disabled the old package. Now proceed with re-installation
|
||||
mLastScanError = PackageManager.INSTALL_SUCCEEDED;
|
||||
pkg.applicationInfo.flags |= ApplicationInfo.FLAG_UPDATED_SYSTEM_APP;
|
||||
|
Reference in New Issue
Block a user