diff options
| author | 2017-11-01 20:51:37 +0000 | |
|---|---|---|
| committer | 2017-11-01 20:51:37 +0000 | |
| commit | 7dc51259cdb9b51d4aa8de81277ea3a655715337 (patch) | |
| tree | fff4e0a77cc45dcf02feda05cfa640b1e1107d93 | |
| parent | e8bb602327e054ad6d0010e8253b0e78acdfb16c (diff) | |
| parent | cfb01b3f3fce7b24baf399bac3b5746c52903409 (diff) | |
Merge "PMSCompilerMapping: Hardcode a value for pm.dexopt.inactive" am: dc616ab11c
am: cfb01b3f3f
Change-Id: I69346b88c5ae62d4e520de25334fe9056a817994
| -rw-r--r-- | services/core/java/com/android/server/pm/PackageManagerServiceCompilerMapping.java | 11 | 
1 files changed, 10 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/pm/PackageManagerServiceCompilerMapping.java b/services/core/java/com/android/server/pm/PackageManagerServiceCompilerMapping.java index 19b0d9bc4b90..cf9e6f3c0c98 100644 --- a/services/core/java/com/android/server/pm/PackageManagerServiceCompilerMapping.java +++ b/services/core/java/com/android/server/pm/PackageManagerServiceCompilerMapping.java @@ -52,7 +52,16 @@ public class PackageManagerServiceCompilerMapping {      // Load the property for the given reason and check for validity. This will throw an      // exception in case the reason or value are invalid.      private static String getAndCheckValidity(int reason) { -        String sysPropValue = SystemProperties.get(getSystemPropertyName(reason)); +        String sysPropName = getSystemPropertyName(reason); +        String sysPropValue; +        // TODO: This is a temporary hack to keep marlin booting on aosp/master while we +        // figure out how to deal with these system properties that currently appear on +        // vendor. +        if ("pm.dexopt.inactive".equals(sysPropName)) { +            sysPropValue = "verify"; +        } else { +            sysPropValue = SystemProperties.get(sysPropName); +        }          if (sysPropValue == null || sysPropValue.isEmpty() ||                  !DexFile.isValidCompilerFilter(sysPropValue)) {              throw new IllegalStateException("Value \"" + sysPropValue +"\" not valid "  |