commit | 6dfd83dbe88bd461f5aab224ced0830b07db1c03 | [log] [tgz] |
---|---|---|
author | Calin Juravle <calin@google.com> | Fri Jan 29 18:23:57 2016 +0000 |
committer | Calin Juravle <calin@google.com> | Fri Jan 29 18:23:57 2016 +0000 |
tree | 8387f3cc77fd70e027fe7b964d959d03dad8f365 | |
parent | d9c31db2e9e4da08ed43c88135fa7e220bc26ebf [diff] [blame] |
Revert "Revert "Fix optimizable package filter"" The issue was traced to go/aog/854901. This revert was only temporary. Bug: 26863668 This reverts commit d9c31db2e9e4da08ed43c88135fa7e220bc26ebf. Change-Id: I6724059db18263936cc392651c621d27836f1c33
diff --git a/services/core/java/com/android/server/pm/PackageDexOptimizer.java b/services/core/java/com/android/server/pm/PackageDexOptimizer.java index bce7223..4d66e10 100644 --- a/services/core/java/com/android/server/pm/PackageDexOptimizer.java +++ b/services/core/java/com/android/server/pm/PackageDexOptimizer.java
@@ -70,8 +70,7 @@ } static boolean canOptimizePackage(PackageParser.Package pkg) { - return pkg.canHaveOatDir() && - ((pkg.applicationInfo.flags & ApplicationInfo.FLAG_HAS_CODE) != 0); + return (pkg.applicationInfo.flags & ApplicationInfo.FLAG_HAS_CODE) != 0; } /**