remove useless check and fix SmaliBuilder to actually build debug files

This commit is contained in:
Connor Tumbleson 2013-08-13 15:45:51 -05:00
parent f95f9b2f4b
commit dd5723cafa
2 changed files with 9 additions and 3 deletions

View File

@ -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;

View File

@ -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());
}