Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8249a5d6 authored by Andreas Gampe's avatar Andreas Gampe Committed by android-build-merger
Browse files

Merge "Revert "PMSCompilerMapping: Hardcode a value for pm.dexopt.inactive""

am: 08efd368

Change-Id: I97b6bbce9a969f06b923bebd60ccf9a5dee91e9e
parents 61fb76d9 08efd368
Loading
Loading
Loading
Loading
+1 −10
Original line number Diff line number Diff line
@@ -52,16 +52,7 @@ 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 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);
        }
        String sysPropValue = SystemProperties.get(getSystemPropertyName(reason));
        if (sysPropValue == null || sysPropValue.isEmpty() ||
                !DexFile.isValidCompilerFilter(sysPropValue)) {
            throw new IllegalStateException("Value \"" + sysPropValue +"\" not valid "