mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-21 09:17:35 +01:00
remove useless check and fix SmaliBuilder to actually build debug files
This commit is contained in:
parent
f95f9b2f4b
commit
dd5723cafa
@ -108,8 +108,14 @@ public class SmaliBuilder {
|
||||
out.append(line).append('\n');
|
||||
}
|
||||
}
|
||||
//mDexBuilder.addSmaliFile(IOUtils.toInputStream(out.toString()),
|
||||
//fileName);
|
||||
|
||||
try {
|
||||
if (!SmaliMod.assembleSmaliFile(out.toString(),dexBuilder, false, false, inFile)) {
|
||||
throw new AndrolibException("Could not smali file: " + fileName);
|
||||
}
|
||||
} catch (IOException | RecognitionException ex) {
|
||||
throw new AndrolibException(ex);
|
||||
}
|
||||
}
|
||||
|
||||
private final ExtFile mSmaliDir;
|
||||
|
@ -96,7 +96,7 @@ public class SmaliDecoder {
|
||||
throw new AndrolibException("Warning: You are disassembling an odex file without deodexing it.");
|
||||
}
|
||||
|
||||
if (options.inlineResolver == null && dexFile instanceof DexBackedOdexFile) {
|
||||
if (dexFile instanceof DexBackedOdexFile) {
|
||||
options.inlineResolver =
|
||||
InlineMethodResolver.createInlineMethodResolver(((DexBackedOdexFile)dexFile).getOdexVersion());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user