From f80f86e56a6ac84b37f0b808774f3e39e92bf285 Mon Sep 17 00:00:00 2001 From: LukeZGD <26163116+LukeZGD@users.noreply.github.com> Date: Sun, 25 Jun 2023 01:24:30 +0800 Subject: [PATCH] Jailbreaking A5 4.3.x is not supported prevent a5 4.3.x from selecting the jailbreak with sshrd option. it is not supported and will cause bootloops --- README.md | 1 + restore.sh | 16 ++++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 25785ca..5d6ca05 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ - Including latest iOS versions for some devices (4.2.1, 5.1.1, 6.1.6, 7.1.2) - There are two methods of jailbreaking: Custom IPSW and SSH Ramdisk - Available on target versions iOS 4.1, 4.2.x, 4.3.x, 5.x, 6.x, 7.x, and 8.4.1 + - Jailbreaking A5 4.3.x devices is not supported (only 5.x and newer will work) - Restore to iOS 10.3.3 on supported A7 devices **(OTA signed)** - Restore A7/A8 devices to lower iOS versions **with SHSH blobs** - Limited compatibility due to SEP/BB, see below diff --git a/restore.sh b/restore.sh index f36bbe3..df7ca8d 100755 --- a/restore.sh +++ b/restore.sh @@ -2746,6 +2746,12 @@ device_ramdisk() { vers=$(cat SystemVersion.plist | grep -i ProductVersion -A 1 | grep -oPm1 "(?<=)[^<]+") build=$(cat SystemVersion.plist | grep -i ProductBuildVersion -A 1 | grep -oPm1 "(?<=)[^<]+") fi + if [[ $device_type == "iPad2"* && $vers == "4"* ]]; then + warn "iOS $vers on $device_type is not supported for jailbreaking with SSHRD." + $ssh -p 2222 root@127.0.0.1 "reboot_bak" + pause + return + fi case $vers in 8.4.1 ) untether="etasonJB-untether.tar";; 7.1* ) untether="panguaxe.tar";; @@ -2762,7 +2768,7 @@ device_ramdisk() { return ;; * ) - warn "iOS $vers detected. This version is not supported for jailbreaking with SSHRD, sorry." + warn "iOS $vers is not supported for jailbreaking with SSHRD." $ssh -p 2222 root@127.0.0.1 "reboot_bak" pause return @@ -2949,7 +2955,9 @@ menu_main() { if [[ $device_mode != "none" ]]; then menu_items+=("Restore/Downgrade") fi - if (( device_proc < 7 )); then + if [[ $device_type == "iPad2"* && $device_vers == "4"* ]]; then + : + elif (( device_proc < 7 )); then if [[ $device_mode == "Normal" ]]; then case $device_vers in 8.4.1 | 7* | 6* | 5* | 4.3* | 4.2* | 4.1 ) menu_items+=("Jailbreak Device");; @@ -3525,6 +3533,10 @@ device_alloc8() { device_jailbreakrd() { if [[ $device_vers == *"iBoot"* || $device_vers == "Unknown" ]]; then read -p "$(input 'Enter current iOS version (eg. 6.1.3): ')" device_vers + if [[ $device_type == "iPad2"* && $device_vers == "4"* ]]; then + warn "This version is not supported for jailbreaking with SSHRD." + return + fi case $device_vers in 8.4.1 | 7* | 6* | 5* | 4.3* | 4.2* | 4.1 ) :;; * ) warn "This version is not supported for jailbreaking with SSHRD."; return;;