mirror of
https://github.com/revanced/smali.git
synced 2025-05-02 23:54:38 +02:00
Fix the dump command to work with dex files in an oat file
This commit is contained in:
parent
36be93a76a
commit
41a5b4953c
@ -118,7 +118,7 @@ public class DumpCommand extends DexInputCommand {
|
||||
consoleWidth = 120;
|
||||
}
|
||||
|
||||
RawDexFile rawDexFile = new RawDexFile(Opcodes.forApi(apiLevel), dexFile);
|
||||
RawDexFile rawDexFile = new RawDexFile(dexFile.getOpcodes(), dexFile);
|
||||
DexAnnotator annotator = new DexAnnotator(rawDexFile, consoleWidth);
|
||||
annotator.writeAnnotations(writer);
|
||||
}
|
||||
|
@ -93,7 +93,7 @@ public class DexBackedDexFile extends BaseDexBuffer implements DexFile {
|
||||
}
|
||||
|
||||
public DexBackedDexFile(@Nonnull Opcodes opcodes, @Nonnull BaseDexBuffer buf) {
|
||||
this(opcodes, buf.buf);
|
||||
this(opcodes, buf.buf, buf.baseOffset);
|
||||
}
|
||||
|
||||
public DexBackedDexFile(@Nonnull Opcodes opcodes, @Nonnull byte[] buf, int offset) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user