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

Commit e640dd1f 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

am: 8249a5d6

Change-Id: I28aa38d66ab9c59c269157aff71edec5bd440942
parents 36521b89 8249a5d6
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 "