summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdnan Begovic <adnan@cyngn.com>2015-06-17 13:00:54 -0700
committerAdnan Begovic <adnan@cyngn.com>2015-10-13 16:34:01 -0700
commitb5f732facdc9778601ca37b488e0762b5b037a24 (patch)
tree360dd84f1628951f8f616abc02b97d2fd0a494d1
parent5d0d089a72c57c7c6d81e59bdedf5295df29d13d (diff)
downloadframeworks_base-b5f732facdc9778601ca37b488e0762b5b037a24.zip
frameworks_base-b5f732facdc9778601ca37b488e0762b5b037a24.tar.gz
frameworks_base-b5f732facdc9778601ca37b488e0762b5b037a24.tar.bz2
PackageManagerService: Don't attempt to dexopt platform-res.
Otherwise installd will logspew about its inablity to create a dex file for something that doesn't really have any code. Change-Id: I300d66d798f4cc1cee0c6ec9ac5e3e2127107216
-rw-r--r--services/core/java/com/android/server/pm/PackageManagerService.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/pm/PackageManagerService.java b/services/core/java/com/android/server/pm/PackageManagerService.java
index 4047083..c657768 100644
--- a/services/core/java/com/android/server/pm/PackageManagerService.java
+++ b/services/core/java/com/android/server/pm/PackageManagerService.java
@@ -2003,6 +2003,10 @@ public class PackageManagerService extends IPackageManager.Stub {
// avoid the resulting log spew.
alreadyDexOpted.add(frameworkDir.getPath() + "/core-libart.jar");
+ // Gross hack for now: we know this file doesn't contain any
+ // code, so don't dexopt it to avoid the resulting log spew
+ alreadyDexOpted.add(frameworkDir.getPath() + "/org.cyanogenmod.platform-res.apk");
+
/**
* There are a number of commands implemented in Java, which
* we currently need to do the dexopt on so that they can be