From ebc0315487bff3aeaa794844d609a4e9a1507225 Mon Sep 17 00:00:00 2001 From: LukeZGD <26163116+LukeZGD@users.noreply.github.com> Date: Wed, 20 Mar 2024 09:06:30 +0800 Subject: [PATCH] Some restore changes for S5L8900 regarding #442 --- restore.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/restore.sh b/restore.sh index 26a0cc10..077bafe4 100755 --- a/restore.sh +++ b/restore.sh @@ -1727,6 +1727,11 @@ ipsw_preference_set() { case $device_target_vers in 8.2 | 8.[10]* ) ipsw_canjailbreak=;; esac + elif [[ $device_proc == 1 ]]; then + ipsw_canjailbreak= + log "Jailbreak option is not available, but you may jailbreak (and hacktivate) later after the restore" + print "* To jailbreak, select \"Jailbreak Device\" in the main menu" + print "* To hacktivate, go to \"Other Utilities -> Hacktivate Device\" after jailbreaking" elif [[ $device_type == "iPhone2,1" || $device_type == "iPod2,1" ]]; then case $device_target_vers in 3.1.3 ) :;; @@ -3816,6 +3821,9 @@ restore_prepare() { 1 ) if [[ $device_target_vers == "3.1.3" ]]; then device_enter_mode DFU + elif [[ $device_target_vers == "4"* ]]; then + restore_latest + return else device_enter_mode WTFreal fi @@ -6360,6 +6368,7 @@ device_hacktivate() { return fi print "* Make sure that your device is restored with the jailbreak option enabled." + print "* Or jailbroken using Legacy iOS Kit's \"Jailbreak Device\" option." print "* This will use SSH to patch lockdownd on your device for hacktivation." print "* Hacktivation is for iOS versions 3.1 to 6.1.6." pause