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

Commit 51b9a824 authored by Shubham Ajmera's avatar Shubham Ajmera Committed by android-build-merger
Browse files

Update DexFile#getDexOptNeeded usages to reflect API change

am: 52c8620c

Change-Id: I31b2aec15ace15e159eaeaafdd55d10767aaca0f
parents 1195d660 52c8620c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -548,7 +548,7 @@ public class ZygoteInit {
            try {
                dexoptNeeded = DexFile.getDexOptNeeded(
                    classPathElement, instructionSet, "speed",
                    false /* newProfile */);
                    false /* newProfile */, false /* downgrade */);
            } catch (FileNotFoundException ignored) {
                // Do not add to the classpath.
                Log.w(TAG, "Missing classpath element for system server: " + classPathElement);
+2 −1
Original line number Diff line number Diff line
@@ -428,7 +428,8 @@ public class PackageDexOptimizer {
            boolean newProfile) {
        int dexoptNeeded;
        try {
            dexoptNeeded = DexFile.getDexOptNeeded(path, isa, compilerFilter, newProfile);
          dexoptNeeded = DexFile.getDexOptNeeded(path, isa, compilerFilter, newProfile,
              false /* downgrade */);
        } catch (IOException ioe) {
            Slog.w(TAG, "IOException reading apk: " + path, ioe);
            return DEX_OPT_FAILED;