Fixed Smali Disassembler
This commit is contained in:
parent
2210bb9b0e
commit
9eff9c331c
3 changed files with 5 additions and 9 deletions
|
@ -37,7 +37,7 @@ public enum Decompiler
|
||||||
FERNFLOWER_DECOMPILER("FernFlower Decompiler", new FernFlowerDecompiler(), new DecompilerViewComponent("Procyon")),
|
FERNFLOWER_DECOMPILER("FernFlower Decompiler", new FernFlowerDecompiler(), new DecompilerViewComponent("Procyon")),
|
||||||
BYTECODE_DISASSEMBLER("Bytecode Disassembler", new BytecodeDisassembler(), new JRadioButtonMenuItem("Bytecode")),
|
BYTECODE_DISASSEMBLER("Bytecode Disassembler", new BytecodeDisassembler(), new JRadioButtonMenuItem("Bytecode")),
|
||||||
HEXCODE_VIEWER("Hexcode Viewer", null, new JRadioButtonMenuItem("Hexcode")),
|
HEXCODE_VIEWER("Hexcode Viewer", null, new JRadioButtonMenuItem("Hexcode")),
|
||||||
SMALI_DISASSEMBLER("Smali Decompiler", new SmaliDisassembler(), new DecompilerViewComponent("Smali")),
|
SMALI_DISASSEMBLER("Smali Disassembler", new SmaliDisassembler(), new DecompilerViewComponent("Smali")),
|
||||||
KRAKATAU_DECOMPILER("Krakatau Decompiler", new KrakatauDecompiler(), BytecodeViewer.krakatau),
|
KRAKATAU_DECOMPILER("Krakatau Decompiler", new KrakatauDecompiler(), BytecodeViewer.krakatau),
|
||||||
KRAKATAU_DISASSEMBLER("Krakatau Disassembler", new KrakatauDisassembler(), BytecodeViewer.krakatau),
|
KRAKATAU_DISASSEMBLER("Krakatau Disassembler", new KrakatauDisassembler(), BytecodeViewer.krakatau),
|
||||||
JD_DECOMPILER("JD-GUI Decompiler", new JDGUIDecompiler(), new DecompilerViewComponent("Bytecode")),
|
JD_DECOMPILER("JD-GUI Decompiler", new JDGUIDecompiler(), new DecompilerViewComponent("Bytecode")),
|
||||||
|
|
|
@ -42,8 +42,9 @@ import static the.bytecode.club.bytecodeviewer.Constants.*;
|
||||||
|
|
||||||
public class SmaliDisassembler extends InternalDecompiler
|
public class SmaliDisassembler extends InternalDecompiler
|
||||||
{
|
{
|
||||||
|
@Override
|
||||||
public String decompileClassNode(FileContainer container, ClassNode cn, byte[] b) {
|
public String decompileClassNode(ClassNode cn, byte[] b)
|
||||||
|
{
|
||||||
String exception = "";
|
String exception = "";
|
||||||
String fileStart = tempDirectory + fs + "temp";
|
String fileStart = tempDirectory + fs + "temp";
|
||||||
|
|
||||||
|
@ -118,11 +119,6 @@ public class SmaliDisassembler extends InternalDecompiler
|
||||||
+ nl + nl + exception;
|
+ nl + nl + exception;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String decompileClassNode(ClassNode cn, byte[] b) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void decompileToZip(String sourceJar, String zipName) {
|
public void decompileToZip(String sourceJar, String zipName) {
|
||||||
|
|
||||||
|
|
|
@ -162,7 +162,7 @@ public class DecompilerSelectionPane
|
||||||
return true;
|
return true;
|
||||||
if((group.isSelected(krakatau.getJava().getModel()) || group.isSelected(krakatau.getBytecode().getModel())) && krakatau.getEditable().isSelected())
|
if((group.isSelected(krakatau.getJava().getModel()) || group.isSelected(krakatau.getBytecode().getModel())) && krakatau.getEditable().isSelected())
|
||||||
return true;
|
return true;
|
||||||
if(group.isSelected(smali.getJava().getModel()) && krakatau.getEditable().isSelected())
|
if(group.isSelected(smali.getJava().getModel()) && smali.getEditable().isSelected())
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue