Skip to content

Commit

Permalink
apktool 2.3 test
Browse files Browse the repository at this point in the history
  • Loading branch information
Konloch committed Apr 13, 2019
1 parent 04874b3 commit cbb642d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 36 deletions.
Binary file removed libs/apktool_2.0.1_obf-2.jar
Binary file not shown.
Binary file added libs/apktool_2.3.0.jar
Binary file not shown.
31 changes: 6 additions & 25 deletions src/the/bytecode/club/bytecodeviewer/BytecodeViewer.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
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*/
Expand Down Expand Up @@ -491,30 +491,6 @@ public void run() {
}
};

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
*
Expand Down Expand Up @@ -1387,6 +1363,11 @@ public static void dumpTempFile()
krakatauTempJar = null;
}*/

if(krakatauTempJar != null && !krakatauTempJar.exists())
{
needsReDump = true;
}

if(needsReDump && krakatauTempJar != null)
{
krakatauTempDir.delete();
Expand Down
2 changes: 1 addition & 1 deletion src/the/bytecode/club/bytecodeviewer/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ else if (decompiler == 9)
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)));
Expand Down
12 changes: 2 additions & 10 deletions src/the/bytecode/club/bytecodeviewer/gui/MainViewerGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,6 @@ public void run() {
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();
Expand Down Expand Up @@ -1403,14 +1402,7 @@ public void actionPerformed(ActionEvent arg0) {
}
}
});
mntmPingback.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent arg0) {
BytecodeViewer.pingback();
}
});

mnNewMenu.add(mntmPingback);
mnNewMenu.add(mntmExit);

menuBar.add(mnNewMenu_6);
Expand Down Expand Up @@ -1619,8 +1611,8 @@ public void actionPerformed(ActionEvent arg0) {
mnSettings.add(refreshOnChange);

mnSettings.add(separator_38);
decodeAPKResources.setSelected(false);
decodeAPKResources.setEnabled(false);
decodeAPKResources.setSelected(true);
//decodeAPKResources.setEnabled(false);

mnSettings.add(decodeAPKResources);

Expand Down

0 comments on commit cbb642d

Please sign in to comment.