Skip to content

Commit 137badd

Browse files
author
Alyx Ferrari
committed
UI notifs for file download
1 parent 8009c03 commit 137badd

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

src/com/alyxferrari/iosrr/Display.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,27 @@ public void run() {
120120
File entitlements = new File("entitlements.xml");
121121
URL entitlementsURL = new URL("https://raw.githubusercontent.com/ptoomey3/Keychain-Dumper/master/entitlements.xml");
122122
if (!keychain_dumper.exists()) {
123+
Display.FRAME.getContentPane().add(new JLabel("Couldn't find keychain_dumper!"));
124+
Display.FRAME.getContentPane().add(new JLabel("Downloading keychain_dumper from alyxferrari.github.io..."));
125+
System.out.println("Couldn't find keychain_dumper!");
126+
System.out.println("Downloading keychain_dumper from alyxferrari.github.io...");
127+
Display.refresh();
123128
FileUtils.copyURLToFile(keychain_dumperURL, keychain_dumper);
124129
}
125130
if (!updateEntitlements.exists()) {
131+
Display.FRAME.getContentPane().add(new JLabel("Couldn't find updateEntitlements.sh!"));
132+
Display.FRAME.getContentPane().add(new JLabel("Downloading updateEntitlements.sh from Keychain-Dumper's GitHub repo..."));
133+
System.out.println("Couldn't find updateEntitlements.sh!");
134+
System.out.println("Downloading updateEntitlements.sh from Keychain-Dumper's GitHub repo...");
135+
Display.refresh();
126136
FileUtils.copyURLToFile(updateEntitlementsURL, updateEntitlements);
127137
}
128138
if (!entitlements.exists()) {
139+
Display.FRAME.getContentPane().add(new JLabel("Couldn't find entitlements.xml!"));
140+
Display.FRAME.getContentPane().add(new JLabel("Downloading entitlements.xml from Keychain-Dumper's GitHub repo..."));
141+
System.out.println("Couldn't find entitlements.xml!");
142+
System.out.println("Downloading entitlements.xml from Keychain-Dumper's GitHub repo...");
143+
Display.refresh();
129144
FileUtils.copyURLToFile(entitlementsURL, entitlements);
130145
}
131146
Display.FRAME.getContentPane().add(new JLabel("Connecting to " + ip + ":" + port + " over SSH..."));

src/com/alyxferrari/iosrr/RRConst.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
public class RRConst {
33
private RRConst() {}
44
public static final String NAME = "iOS-Restrictions-Recovery";
5-
public static final String VERSION = "v1.0 beta 3";
5+
public static final String VERSION = "v1.0 beta 4";
66
public static final String AUTHOR = "Alyx Ferrari";
77
public static final String FULL_NAME = NAME + " " + VERSION;
88
public static final String TITLE = "<html><body><font size=\"5\">" + FULL_NAME + "</font></body></html>";
99
public static final String DESC = "<html><body>Compatible with iOS 7.0 through iOS 13.x<br/><br/></body></html>";
1010
public static final String KEY_SALT_BUTTON = "From key and salt";
11-
public static final String FILE_BUTTON = "From property list file";
11+
public static final String FILE_BUTTON = "From property list (plist) file";
1212
public static final String SSH_BUTTON = "From device via SSH";
1313
public static final String IPROXY_BUTTON = "From device via iproxy over USB";
1414
public static final String ITUNES_BACKUP = "From unencrypted iTunes backup";

0 commit comments

Comments
 (0)