feat: add option to use dx/d8 for convert java bytecode (#1299)

This commit is contained in:
Skylot
2021-12-03 15:05:28 +00:00
parent 4cc00bdaf2
commit 947b621733
21 changed files with 192 additions and 23 deletions
@@ -159,7 +159,7 @@ public class JavaConvertLoader {
try {
DxConverter.run(path, tempDirectory);
} catch (Exception e) {
LOG.warn("DX convert failed, trying D8");
LOG.warn("DX convert failed, trying D8, path: {}", path);
D8Converter.run(path, tempDirectory);
}
@@ -13,7 +13,11 @@ public class JavaConvertPlugin implements JadxInputPlugin {
@Override
public JadxPluginInfo getPluginInfo() {
return new JadxPluginInfo("java-convert", "JavaConvert", "Convert .jar and .class files to dex");
return new JadxPluginInfo(
"java-convert",
"JavaConvert",
"Convert .jar and .class files to dex",
"java-input");
}
@Override