diff options
author | Narayan Kamath <narayan@google.com> | 2014-05-01 13:56:58 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-05-01 13:56:59 +0000 |
commit | 1cec7f8539e6465ff80577169d7d07df3c2574b7 (patch) | |
tree | 375fa50285fc6d2f83d458ff6ca1ec12b5bf65ec /services/java/com/android/server | |
parent | 27f2bfc406157039c5241f6a4f38f597b2076e2a (diff) | |
parent | f465db9f1d6da1c94af66b64e0450aba72ee8824 (diff) | |
download | frameworks_base-1cec7f8539e6465ff80577169d7d07df3c2574b7.zip frameworks_base-1cec7f8539e6465ff80577169d7d07df3c2574b7.tar.gz frameworks_base-1cec7f8539e6465ff80577169d7d07df3c2574b7.tar.bz2 |
Merge "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 c214c83..b77c94c 100755 --- a/services/java/com/android/server/pm/PackageManagerService.java +++ b/services/java/com/android/server/pm/PackageManagerService.java @@ -5373,12 +5373,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()); + } } } } |