OSDN Git Service

PMSCompilerMapping: Hardcode a value for pm.dexopt.shared
authorAndreas Gampe <agampe@google.com>
Thu, 2 Nov 2017 16:35:28 +0000 (09:35 -0700)
committerAndreas Gampe <agampe@google.com>
Thu, 2 Nov 2017 16:35:28 +0000 (09:35 -0700)
This is a temporary hack while we sort out the larger issues.

Test: make & flash
Bug: 68755013
Change-Id: I59caf79027dd8be2fd698606822a20b19c0d942a

services/core/java/com/android/server/pm/PackageManagerServiceCompilerMapping.java

index cf9e6f3..781216c 100644 (file)
@@ -59,6 +59,8 @@ public class PackageManagerServiceCompilerMapping {
         // vendor.
         if ("pm.dexopt.inactive".equals(sysPropName)) {
             sysPropValue = "verify";
+        } else if ("pm.dexopt.shared".equals(sysPropName)) {
+            sysPropValue = "speed";
         } else {
             sysPropValue = SystemProperties.get(sysPropName);
         }