summaryrefslogtreecommitdiffstats
path: root/services/java/com/android/server
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2014-05-01 14:00:52 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-05-01 14:00:52 +0000
commit5dca099df7100c531e111b50435605c318f1e6d4 (patch)
treefeedbdedffab1231e5664d717702f7e45aaafea8 /services/java/com/android/server
parentc1f81f9086037dde6e082b8a80c84277cb727726 (diff)
parent1cec7f8539e6465ff80577169d7d07df3c2574b7 (diff)
downloadframeworks_base-5dca099df7100c531e111b50435605c318f1e6d4.zip
frameworks_base-5dca099df7100c531e111b50435605c318f1e6d4.tar.gz
frameworks_base-5dca099df7100c531e111b50435605c318f1e6d4.tar.bz2
am 1cec7f85: Merge "Don\'t adjust ABI if PackageSetting#pkg is null."
* commit '1cec7f8539e6465ff80577169d7d07df3c2574b7': Don't adjust ABI if PackageSetting#pkg is null.
Diffstat (limited to 'services/java/com/android/server')
-rwxr-xr-xservices/java/com/android/server/pm/PackageManagerService.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/services/java/com/android/server/pm/PackageManagerService.java b/services/java/com/android/server/pm/PackageManagerService.java
index 74a4518..ac10f8b 100755
--- a/services/java/com/android/server/pm/PackageManagerService.java
+++ b/services/java/com/android/server/pm/PackageManagerService.java
@@ -5380,12 +5380,13 @@ public class PackageManagerService extends IPackageManager.Stub {
for (PackageSetting ps : packagesForUser) {
if (ps.requiredCpuAbiString == null) {
ps.requiredCpuAbiString = requirer.requiredCpuAbiString;
- ps.pkg.applicationInfo.requiredCpuAbi = requirer.requiredCpuAbiString;
-
- Slog.i(TAG, "Adjusting ABI for : " + ps.pkg.packageName + " to " + ps.requiredCpuAbiString);
- if (doDexOpt) {
- performDexOptLI(ps.pkg, forceDexOpt, deferDexOpt, true);
- mInstaller.rmdex(ps.codePathString, getPreferredInstructionSet());
+ if (ps.pkg != null) {
+ ps.pkg.applicationInfo.requiredCpuAbi = requirer.requiredCpuAbiString;
+ Slog.i(TAG, "Adjusting ABI for : " + ps.name + " to " + ps.requiredCpuAbiString);
+ if (doDexOpt) {
+ performDexOptLI(ps.pkg, forceDexOpt, deferDexOpt, true);
+ mInstaller.rmdex(ps.codePathString, getPreferredInstructionSet());
+ }
}
}
}