From a94974764ed731e9e1803cbe6ad922a3895c7137 Mon Sep 17 00:00:00 2001 From: Kirlif Date: Tue, 25 Jul 2023 15:34:38 +0200 Subject: [PATCH] SmaliDecompiler creates label names using a sequential numbering scheme --- src/main/java/com/reandroid/apkeditor/smali/SmaliDecompiler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/reandroid/apkeditor/smali/SmaliDecompiler.java b/src/main/java/com/reandroid/apkeditor/smali/SmaliDecompiler.java index ac2bfc10..62591cb3 100644 --- a/src/main/java/com/reandroid/apkeditor/smali/SmaliDecompiler.java +++ b/src/main/java/com/reandroid/apkeditor/smali/SmaliDecompiler.java @@ -48,6 +48,7 @@ private void disassembleDexFile(DexFileInputSource inputSource, File mainDir) th File dir = toOutDir(inputSource, mainDir); BaksmaliOptions options = new BaksmaliOptions(); options.localsDirective = true; + options.sequentialLabels = true; options.setCommentProvider(getComment()); DexBackedDexFile dexFile = getInputDexFile(inputSource, options); Baksmali.disassembleDexFile(dexFile, dir, 1, options);