From a6d1e4c60fd1d763d1e43ecc783dbceaf703e117 Mon Sep 17 00:00:00 2001 From: LukeZGD <26163116+LukeZGD@users.noreply.github.com> Date: Thu, 28 Mar 2024 22:29:11 +0800 Subject: [PATCH] Some things are not working --- README.md | 5 +++-- restore.sh | 10 ++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f8330a40..3789c561 100644 --- a/README.md +++ b/README.md @@ -97,8 +97,9 @@ - iPhone 3GS - iOS 3.0 to 6.1.3 (all versions) - iPod touch 2 - iOS 2.1.1 to 4.1 (all versions) - iPhone 2G, 3G, iPod touch 1 - all versions - - Supported jailbreak versions are only 3.1.3, 4.1, and 4.2.1 - - Lowest working version is 2.0. Going to 1.x does not work +- Note that for 2G, 3G, and touch 1, supported jailbreak versions are only 3.1.3, as well as 4.1 and 4.2.1 for the 3G +- Lowest downgradable version is 2.0. Going to 1.x does not work +- For 3GS and touch 2, 2.x and 3.0.x are not supported for jailbreaking. 3.1 and newer only ## Supported OS versions/distros diff --git a/restore.sh b/restore.sh index 9d5b5d87..8799c425 100755 --- a/restore.sh +++ b/restore.sh @@ -552,6 +552,7 @@ device_s5l8900xall() { local wtf_patched="$wtf_saved.patched" local wtf_patch="../resources/patch/WTF.s5l8900xall.RELEASE.patch" local wtf_sha_local="$($sha1sum "$wtf_saved" 2>/dev/null | awk '{print $1}')" + mkdir ../saved 2>/dev/null if [[ $wtf_sha_local != "$wtf_sha" ]]; then log "Downloading WTF.s5l8900xall" "$dir/pzb" -g "Firmware/dfu/WTF.s5l8900xall.RELEASE.dfu" -o WTF.s5l8900xall.RELEASE.dfu "http://appldnld.apple.com/iPhone/061-7481.20100202.4orot/iPhone1,1_3.1.3_7E18_Restore.ipsw" @@ -5739,6 +5740,15 @@ menu_ipsw() { else print "* Select $1 IPSW to continue" fi + if [[ $device_proc == 1 && $device_type != "iPhone1,2" ]]; then + warn "3.1.3 for $device_type will likely fail to restore with jailbreak/hacktivate option." + print "* It is recommended to use other custom IPSWs instead." + print "* You may get 3.1.3 custom IPSWs here: https://archive.org/download/pwnagetool-3.1.3-ipsws" + print "* Mirror link: https://github.com/LukeZGD/Legacy-iOS-Kit-Keys/releases/tag/jailbreak" + elif [[ $device_type == "iPhone1,2" && $device_target_vers == "4.2.1" ]]; then + warn "4.2.1 for $device_type will likely fail to restore with jailbreak/hacktivate option." + print "* It is recommended to select 4.1 or 3.1.3 instead." + fi if [[ $ipsw_canhacktivate == 1 ]] && [[ $device_type == "iPhone2,1" || $device_proc == 1 ]]; then print "* Hacktivation is supported for this restore" fi