diff options
author | Narayan Kamath <narayan@google.com> | 2014-05-01 14:39:20 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-05-01 14:39:20 +0000 |
commit | 531381056fac077cffcd509b1e89d9b41f400fca (patch) | |
tree | 55ef0c5c2cd611edbb8e764266bce8e975825978 /services | |
parent | d6809b35aff02fdccf7ac433005aba2d06bbc3ff (diff) | |
parent | 5dca099df7100c531e111b50435605c318f1e6d4 (diff) | |
download | frameworks_base-531381056fac077cffcd509b1e89d9b41f400fca.zip frameworks_base-531381056fac077cffcd509b1e89d9b41f400fca.tar.gz frameworks_base-531381056fac077cffcd509b1e89d9b41f400fca.tar.bz2 |
am 5dca099d: am 1cec7f85: Merge "Don\'t adjust ABI if PackageSetting#pkg is null."
* commit '5dca099df7100c531e111b50435605c318f1e6d4':
Don't adjust ABI if PackageSetting#pkg is null.
Diffstat (limited to 'services')
-rwxr-xr-x | services/core/java/com/android/server/pm/PackageManagerService.java | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/services/core/java/com/android/server/pm/PackageManagerService.java b/services/core/java/com/android/server/pm/PackageManagerService.java index 707b3be..b0428cb 100755 --- a/services/core/java/com/android/server/pm/PackageManagerService.java +++ b/services/core/java/com/android/server/pm/PackageManagerService.java @@ -5413,12 +5413,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()); + } } } } |