Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
KpwnZ committed Jan 23, 2024
2 parents 92f0301 + 01b0503 commit 2bc3861
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Def1nit3lyN0tAJa1lbr3akTool

An incomplete jailbreak tool for iOS 15.7 and iOS 16.5, iPhone X. I build it just for fun.
An incomplete jailbreak tool for iOS 15.7 to iOS 16.5 with experimental support for iOS 16.6; iPhone X. I built it just for fun.

It can not be done without kfd, kfund, Dopamine and jailbreak community.
This could not have been possible without kfd, kfund, Dopamine and the jailbreak community.

## How to build

Expand Down
18 changes: 17 additions & 1 deletion escape/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ - (void)viewDidLoad {
UILabel *label = [[UILabel alloc] init];
label.text = @"By xia0o0o0o";
[label sizeToFit];
label.font = [UIFont systemFontOfSize:15];
label.font = [UIFont monospacedSystemFontOfSize:15 weight:1];
[self.view addSubview:label];

// Set up constraints
Expand Down Expand Up @@ -83,6 +83,22 @@ - (void)viewDidLoad {
[[LogHelper sharedInstance] logWithFormat:@"[*] release: %s", u.release];
[[LogHelper sharedInstance] logWithFormat:@"[*] version: %s", u.version];
[[LogHelper sharedInstance] logWithFormat:@"[*] machine: %s", u.machine];

// Get iOS Version
NSOperatingSystemVersion version = [[NSProcessInfo processInfo] operatingSystemVersion];
[[LogHelper sharedInstance] logWithFormat:@"[*] iOS Version: %@.%@.%@", @(version.majorVersion), @(version.minorVersion), @(version.patchVersion)];
NSString *unsupportedMessage = @"[*] !!! Only iOS 15.7-16.5 is supported !!!";
if (version.majorVersion < 15 || (version.majorVersion == 15 && version.minorVersion < 7)) {
[[LogHelper sharedInstance] logMessage:unsupportedMessage];
} else if (version.majorVersion > 16) {
[[LogHelper sharedInstance] logMessage:unsupportedMessage];
} else if (version.majorVersion == 16 && version.minorVersion > 5) {
if (version.minorVersion == 6) {
[[LogHelper sharedInstance] logMessage:@"[*] !!! iOS 16.6 support is experimental, you may encounter issues !!!"];
} else {
[[LogHelper sharedInstance] logMessage:unsupportedMessage];
}
}
}

- (void)logButtonTapped {
Expand Down

0 comments on commit 2bc3861

Please sign in to comment.