Skip to content

Commit

Permalink
UI notifs for file download
Browse files Browse the repository at this point in the history
  • Loading branch information
Alyx Ferrari committed Aug 5, 2020
1 parent 8009c03 commit 137badd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
15 changes: 15 additions & 0 deletions src/com/alyxferrari/iosrr/Display.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,27 @@ public void run() {
File entitlements = new File("entitlements.xml");
URL entitlementsURL = new URL("https://raw.githubusercontent.com/ptoomey3/Keychain-Dumper/master/entitlements.xml");
if (!keychain_dumper.exists()) {
Display.FRAME.getContentPane().add(new JLabel("Couldn't find keychain_dumper!"));
Display.FRAME.getContentPane().add(new JLabel("Downloading keychain_dumper from alyxferrari.github.io..."));
System.out.println("Couldn't find keychain_dumper!");
System.out.println("Downloading keychain_dumper from alyxferrari.github.io...");
Display.refresh();
FileUtils.copyURLToFile(keychain_dumperURL, keychain_dumper);
}
if (!updateEntitlements.exists()) {
Display.FRAME.getContentPane().add(new JLabel("Couldn't find updateEntitlements.sh!"));
Display.FRAME.getContentPane().add(new JLabel("Downloading updateEntitlements.sh from Keychain-Dumper's GitHub repo..."));
System.out.println("Couldn't find updateEntitlements.sh!");
System.out.println("Downloading updateEntitlements.sh from Keychain-Dumper's GitHub repo...");
Display.refresh();
FileUtils.copyURLToFile(updateEntitlementsURL, updateEntitlements);
}
if (!entitlements.exists()) {
Display.FRAME.getContentPane().add(new JLabel("Couldn't find entitlements.xml!"));
Display.FRAME.getContentPane().add(new JLabel("Downloading entitlements.xml from Keychain-Dumper's GitHub repo..."));
System.out.println("Couldn't find entitlements.xml!");
System.out.println("Downloading entitlements.xml from Keychain-Dumper's GitHub repo...");
Display.refresh();
FileUtils.copyURLToFile(entitlementsURL, entitlements);
}
Display.FRAME.getContentPane().add(new JLabel("Connecting to " + ip + ":" + port + " over SSH..."));
Expand Down
4 changes: 2 additions & 2 deletions src/com/alyxferrari/iosrr/RRConst.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
public class RRConst {
private RRConst() {}
public static final String NAME = "iOS-Restrictions-Recovery";
public static final String VERSION = "v1.0 beta 3";
public static final String VERSION = "v1.0 beta 4";
public static final String AUTHOR = "Alyx Ferrari";
public static final String FULL_NAME = NAME + " " + VERSION;
public static final String TITLE = "<html><body><font size=\"5\">" + FULL_NAME + "</font></body></html>";
public static final String DESC = "<html><body>Compatible with iOS 7.0 through iOS 13.x<br/><br/></body></html>";
public static final String KEY_SALT_BUTTON = "From key and salt";
public static final String FILE_BUTTON = "From property list file";
public static final String FILE_BUTTON = "From property list (plist) file";
public static final String SSH_BUTTON = "From device via SSH";
public static final String IPROXY_BUTTON = "From device via iproxy over USB";
public static final String ITUNES_BACKUP = "From unencrypted iTunes backup";
Expand Down

0 comments on commit 137badd

Please sign in to comment.