mirror of
https://github.com/revanced/smali.git
synced 2025-05-09 10:54:29 +02:00
Make sure the api level is set before reading in the dex file
This commit is contained in:
parent
4d3b3311e1
commit
0da8e11d11
@ -259,6 +259,8 @@ public class main {
|
||||
System.exit(1);
|
||||
}
|
||||
|
||||
Opcode.updateMapsForApiLevel(apiLevel);
|
||||
|
||||
//Read in and parse the dex file
|
||||
DexFile dexFile = new DexFile(dexFileFile, !fixRegisters, false);
|
||||
|
||||
@ -288,8 +290,6 @@ public class main {
|
||||
bootClassPathDirsArray[i] = bootClassPathDirs.get(i);
|
||||
}
|
||||
|
||||
Opcode.updateMapsForApiLevel(apiLevel);
|
||||
|
||||
baksmali.disassembleDexFile(dexFileFile.getPath(), dexFile, deodex, outputDirectory,
|
||||
bootClassPathDirsArray, bootClassPath, extraBootClassPathEntries.toString(),
|
||||
noParameterRegisters, useLocalsDirective, useSequentialLabels, outputDebugInfo, addCodeOffsets,
|
||||
|
Loading…
x
Reference in New Issue
Block a user