commit | d9c31db2e9e4da08ed43c88135fa7e220bc26ebf | [log] [tgz] |
---|---|---|
author | Calin Juravle <calin@google.com> | Fri Jan 29 16:38:11 2016 +0000 |
committer | Calin Juravle <calin@google.com> | Fri Jan 29 16:38:11 2016 +0000 |
tree | fad4b70d23a602b6d9bc1d342fe63143472ad873 | |
parent | 8aaaf138887355f218b5da3f0efe1c4610a6c31a [diff] |
Revert "Fix optimizable package filter" Bug: 26863668 This reverts commit 8aaaf138887355f218b5da3f0efe1c4610a6c31a. Change-Id: I659e2de56afd729f36aa111772fec8c9c2ddf801
diff --git a/services/core/java/com/android/server/pm/PackageDexOptimizer.java b/services/core/java/com/android/server/pm/PackageDexOptimizer.java index 4d66e10..bce7223 100644 --- a/services/core/java/com/android/server/pm/PackageDexOptimizer.java +++ b/services/core/java/com/android/server/pm/PackageDexOptimizer.java
@@ -70,7 +70,8 @@ } static boolean canOptimizePackage(PackageParser.Package pkg) { - return (pkg.applicationInfo.flags & ApplicationInfo.FLAG_HAS_CODE) != 0; + return pkg.canHaveOatDir() && + ((pkg.applicationInfo.flags & ApplicationInfo.FLAG_HAS_CODE) != 0); } /**