diff --git a/src/main/kotlin/org/ollide/java2smali/Class2DexHelper.kt b/src/main/kotlin/org/ollide/java2smali/Class2DexHelper.kt index aa8aae7..98018f1 100644 --- a/src/main/kotlin/org/ollide/java2smali/Class2DexHelper.kt +++ b/src/main/kotlin/org/ollide/java2smali/Class2DexHelper.kt @@ -23,6 +23,7 @@ object Class2DexHelper { arguments.outName = outputDexPath arguments.strictNameCheck = false arguments.fileNames = inputClassFilePaths + arguments.minSdkVersion = 28 return try { val returnCode = Main(dxContext).runDx(arguments) diff --git a/src/main/kotlin/org/ollide/java2smali/Dex2SmaliHelper.kt b/src/main/kotlin/org/ollide/java2smali/Dex2SmaliHelper.kt index 295c94c..41f0159 100644 --- a/src/main/kotlin/org/ollide/java2smali/Dex2SmaliHelper.kt +++ b/src/main/kotlin/org/ollide/java2smali/Dex2SmaliHelper.kt @@ -20,7 +20,7 @@ object Dex2SmaliHelper { */ @Throws(IOException::class) fun disassembleDexFile(dexFilePath: String, outputDir: String) { - val opCodes = Opcodes.getDefault() + val opCodes = Opcodes.forApi(28) val dexBackedDexFile = DexFileFactory.loadDexFile(dexFilePath, opCodes) val options = BaksmaliOptions()