Skip to content

Commit d9181bf

Browse files
committed
v1.3.1 part 2
1 parent 9bfe66f commit d9181bf

File tree

6 files changed

+22
-3
lines changed

6 files changed

+22
-3
lines changed

ios8-jailbreak/ViewController.m

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,16 @@ - (void)viewDidLoad {
7878
}
7979
}
8080

81-
// disable toggle if 9.3.5/6
81+
// disable untether toggle if 9.3.5/6
8282
if (strstr(ckernv, "3248.61")) {
8383
untether_on = false;
8484
}
8585

86+
// disable openssh toggle if already installed
87+
if (access("/Library/LaunchDaemons/com.openssh.sshd.plist", F_OK) != -1) {
88+
install_openssh = false;
89+
}
90+
8691
// iOS 9.0-9.3.6
8792
if (strstr(ckernv, "3248") || strstr(ckernv, "3247.1.88")) {
8893
ios9 = true;
@@ -94,6 +99,7 @@ - (void)viewDidLoad {
9499
[_jailbreak_button setTitle:@"Not Supported" forState:UIControlStateDisabled];
95100
}
96101

102+
// iOS 7.x disable toggle and more settings button
97103
if (strstr(ckernv, "2423")) {
98104
_tweaks_toggle.enabled = NO;
99105
[_tweaks_toggle setOn:YES];

ios8-jailbreak/everuntether.tar

44 KB
Binary file not shown.

ios8-jailbreak/oob_entry/oob_entry.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,14 @@ void print_log(const char *fmt, ...) {
1111
log_opened = true;
1212
}
1313

14+
char buf[1024];
1415
va_list va;
1516
va_start(va, fmt);
16-
vsyslog(LOG_ERR, fmt, va);
17-
vfprintf(stderr, fmt, va);
17+
vsnprintf(buf, sizeof(buf), fmt, va);
1818
va_end(va);
19+
syslog(LOG_ERR, "%s", buf);
20+
fprintf(stderr, "%s", buf);
21+
fflush(stderr);
1922

2023
static int console_fd = -1;
2124
if (console_fd < 0) {

ios8-jailbreak/postjailbreak.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
#include <mach/mach.h>
77

8+
bool isA5orA5X(void);
89
void postjailbreak(void);
910

1011
extern char *ckernv;

ios8-jailbreak/postjailbreak.m

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@
1717

1818
#import "ViewController.h"
1919

20+
bool isA5orA5X(void) {
21+
if(strstr(ckernv, "S5L894")) {
22+
print_log("A5(X) device\n");
23+
return true;
24+
}
25+
print_log("A6(X) device\n");
26+
return false;
27+
}
28+
2029
void run_cmd(char *cmd, ...) {
2130
pid_t pid;
2231
va_list ap;

ios8-jailbreak/untether.tar

37 KB
Binary file not shown.

0 commit comments

Comments
 (0)