summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFyodor Kupolov <fkupolov@google.com>2015-04-07 18:35:10 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-04-07 18:35:10 +0000
commit88d9797aa815b1addfe8421885424a1219b96d45 (patch)
tree2388e8d38212311c04c8948b16f876b056065158
parent06adabdbec7207e61b84d006e538a9f5ead6e79c (diff)
parent77e46d214db035f150e8522fad03edec913939e8 (diff)
downloadframeworks_base-88d9797aa815b1addfe8421885424a1219b96d45.zip
frameworks_base-88d9797aa815b1addfe8421885424a1219b96d45.tar.gz
frameworks_base-88d9797aa815b1addfe8421885424a1219b96d45.tar.bz2
am 77e46d21: am 6a17f601: Merge "Unnecessary dexopt in installPackageLI"
* commit '77e46d214db035f150e8522fad03edec913939e8': Unnecessary dexopt in installPackageLI
-rw-r--r--services/core/java/com/android/server/pm/PackageManagerService.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/services/core/java/com/android/server/pm/PackageManagerService.java b/services/core/java/com/android/server/pm/PackageManagerService.java
index 5cec765..dea4bed 100644
--- a/services/core/java/com/android/server/pm/PackageManagerService.java
+++ b/services/core/java/com/android/server/pm/PackageManagerService.java
@@ -10470,13 +10470,13 @@ public class PackageManagerService extends IPackageManager.Stub {
return;
}
+ // Call with SCAN_NO_DEX, since dexopt has already been made
if (replace) {
- // Call replacePackageLI with SCAN_NO_DEX, since we already made dexopt
replacePackageLI(pkg, parseFlags, scanFlags | SCAN_REPLACING | SCAN_NO_DEX, args.user,
installerPackageName, res);
} else {
- installNewPackageLI(pkg, parseFlags, scanFlags | SCAN_DELETE_DATA_ON_FAILURES,
- args.user, installerPackageName, res);
+ installNewPackageLI(pkg, parseFlags, scanFlags | SCAN_DELETE_DATA_ON_FAILURES
+ | SCAN_NO_DEX, args.user, installerPackageName, res);
}
synchronized (mPackages) {
final PackageSetting ps = mSettings.mPackages.get(pkgName);