apktool 2.3 test

This commit is contained in:
Konloch 2019-04-13 13:30:03 -06:00
parent 04874b3cf4
commit cbb642d21f
5 changed files with 9 additions and 36 deletions

Binary file not shown.

BIN
libs/apktool_2.3.0.jar Normal file

Binary file not shown.

View file

@ -122,7 +122,7 @@ import the.bytecode.club.bytecodeviewer.plugin.PluginManager;
public class BytecodeViewer
{
/*per version*/
public static String version = "2.9.13";
public static String version = "2.9.14";
public static boolean previewCopy = false;
public static boolean fatJar = true; //could be automatic by checking if it's loaded a class named whatever for a library
/*the rest*/
@ -491,30 +491,6 @@ public class BytecodeViewer
}
};
public static void pingback() {
JOptionPane pane = new JOptionPane(
"Would you like to 'pingback' to https://bytecodeviewer.com to be counted in the global users for BCV?");
Object[] options = new String[]{"Yes", "No"};
pane.setOptions(options);
JDialog dialog = pane.createDialog(BytecodeViewer.viewer,
"Bytecode Viewer - Optional Pingback");
dialog.setVisible(true);
Object obj = pane.getValue();
int result = -1;
for (int k = 0; k < options.length; k++)
if (options[k].equals(obj))
result = k;
if (result == 0) {
try {
if (!PingBack.isAlive())
PingBack.start();
} catch (Exception e) {
new the.bytecode.club.bytecodeviewer.api.ExceptionUI(e);
}
}
}
/**
* Grab the byte array from the loaded Class object
*
@ -1387,6 +1363,11 @@ public class BytecodeViewer
krakatauTempJar = null;
}*/
if(krakatauTempJar != null && !krakatauTempJar.exists())
{
needsReDump = true;
}
if(needsReDump && krakatauTempJar != null)
{
krakatauTempDir.delete();

View file

@ -394,7 +394,7 @@ public class Settings {
BytecodeViewer.viewer.panel3Fern_E.setSelected(Boolean.parseBoolean(DiskReader.loadString(BytecodeViewer.settingsName, 103, false)));
BytecodeViewer.viewer.panel3Krakatau_E.setSelected(Boolean.parseBoolean(DiskReader.loadString(BytecodeViewer.settingsName, 104, false)));
BytecodeViewer.viewer.panel3Smali_E.setSelected(Boolean.parseBoolean(DiskReader.loadString(BytecodeViewer.settingsName, 105, false)));
// BytecodeViewer.viewer.decodeAPKResources.setSelected(Boolean.parseBoolean(DiskReader.loadString(BytecodeViewer.settingsName, 106, false)));
BytecodeViewer.viewer.decodeAPKResources.setSelected(Boolean.parseBoolean(DiskReader.loadString(BytecodeViewer.settingsName, 106, false)));
BytecodeViewer.library = DiskReader.loadString(BytecodeViewer.settingsName, 107, false);
BytecodeViewer.pingback = Boolean.parseBoolean(DiskReader.loadString(BytecodeViewer.settingsName, 108, false));
BytecodeViewer.viewer.panel1JDGUI_E.setSelected(Boolean.parseBoolean(DiskReader.loadString(BytecodeViewer.settingsName, 109, false)));

View file

@ -607,7 +607,6 @@ public class MainViewerGUI extends JFrame implements FileChangeNotifier {
public final ButtonGroup panelGroup2 = new ButtonGroup();
public final ButtonGroup panelGroup3 = new ButtonGroup();
private final JMenuItem mntmSetOpitonalLibrary = new JMenuItem("Set Optional Library Folder");
private final JMenuItem mntmPingback = new JMenuItem("Pingback");
private final JMenu mnJdgui = new JMenu("JD-GUI");
public final JRadioButtonMenuItem panel3JDGUI = new JRadioButtonMenuItem("Java");
private final JSeparator separator_33 = new JSeparator();
@ -1403,14 +1402,7 @@ public class MainViewerGUI extends JFrame implements FileChangeNotifier {
}
}
});
mntmPingback.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent arg0) {
BytecodeViewer.pingback();
}
});
mnNewMenu.add(mntmPingback);
mnNewMenu.add(mntmExit);
menuBar.add(mnNewMenu_6);
@ -1619,8 +1611,8 @@ public class MainViewerGUI extends JFrame implements FileChangeNotifier {
mnSettings.add(refreshOnChange);
mnSettings.add(separator_38);
decodeAPKResources.setSelected(false);
decodeAPKResources.setEnabled(false);
decodeAPKResources.setSelected(true);
//decodeAPKResources.setEnabled(false);
mnSettings.add(decodeAPKResources);