summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorChristopher Tate <ctate@google.com>2014-05-23 22:36:12 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-05-23 22:36:12 +0000
commitec41d7ababd3145b7f19e5bd69480e9436cb5c7c (patch)
tree95e22e0451ddd8ce463b7ce032938ffa34ee6242 /services
parent0b723fdbaafe7503bc09d8c71bfee9c853adfd55 (diff)
parentd9a6475c9c4825b2d8fc5ea09b9de54ad4f91ee3 (diff)
downloadframeworks_base-ec41d7ababd3145b7f19e5bd69480e9436cb5c7c.zip
frameworks_base-ec41d7ababd3145b7f19e5bd69480e9436cb5c7c.tar.gz
frameworks_base-ec41d7ababd3145b7f19e5bd69480e9436cb5c7c.tar.bz2
Merge "DO NOT MERGE - Don't crash uninstalling updates to system apps" into lmp-preview-dev
Diffstat (limited to 'services')
-rwxr-xr-xservices/core/java/com/android/server/pm/PackageManagerService.java7
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.