diff --git a/README.md b/README.md index 81b78e5..cd0513a 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/escape/ViewController.m b/escape/ViewController.m index 133841e..31d3cd3 100644 --- a/escape/ViewController.m +++ b/escape/ViewController.m @@ -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 @@ -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 {