diff options
author | Christopher Tate <ctate@google.com> | 2014-05-22 14:55:11 -0700 |
---|---|---|
committer | Christopher Tate <ctate@google.com> | 2014-05-22 19:03:01 -0700 |
commit | d9a6475c9c4825b2d8fc5ea09b9de54ad4f91ee3 (patch) | |
tree | 6ebdf9462d989db14b308b3b6ebe9f20b3534093 /services | |
parent | 2ecba24c48cf42b0c589d4390f7331314e57c320 (diff) | |
download | frameworks_base-d9a6475c9c4825b2d8fc5ea09b9de54ad4f91ee3.zip frameworks_base-d9a6475c9c4825b2d8fc5ea09b9de54ad4f91ee3.tar.gz frameworks_base-d9a6475c9c4825b2d8fc5ea09b9de54ad4f91ee3.tar.bz2 |
DO NOT MERGE - Don't crash uninstalling updates to system apps
Bug 15167960
Cherrypick from master
Change-Id: Ibcb3275adb27b20939a237511aaaa8b0011127e1
Diffstat (limited to 'services')
-rwxr-xr-x | services/core/java/com/android/server/pm/PackageManagerService.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/pm/PackageManagerService.java b/services/core/java/com/android/server/pm/PackageManagerService.java index 0fa0b14..b06b090 100755 --- a/services/core/java/com/android/server/pm/PackageManagerService.java +++ b/services/core/java/com/android/server/pm/PackageManagerService.java @@ -6140,7 +6140,12 @@ public class PackageManagerService extends IPackageManager.Stub { } final String nativeLibraryPath = (new File(libDir, apkName)).getPath(); pkg.applicationInfo.nativeLibraryDir = nativeLibraryPath; - pkgSetting.nativeLibraryPathString = nativeLibraryPath; + // pkgSetting might be null during rescan following uninstall of updates + // to a bundled app, so accommodate that possibility. The settings in + // that case will be established later from the parsed package. + if (pkgSetting != null) { + pkgSetting.nativeLibraryPathString = nativeLibraryPath; + } } // Deduces the required ABI of an upgraded system app. |