diff options
author | Narayan Kamath <narayan@google.com> | 2014-05-01 14:00:52 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-05-01 14:00:52 +0000 |
commit | 5dca099df7100c531e111b50435605c318f1e6d4 (patch) | |
tree | feedbdedffab1231e5664d717702f7e45aaafea8 /services/java/com/android/server | |
parent | c1f81f9086037dde6e082b8a80c84277cb727726 (diff) | |
parent | 1cec7f8539e6465ff80577169d7d07df3c2574b7 (diff) | |
download | frameworks_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-x | services/java/com/android/server/pm/PackageManagerService.java | 13 |
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()); + } } } } |