From bc9bd88c15ad3a8c5bbee22983d550afead47d96 Mon Sep 17 00:00:00 2001 From: LukeZGD <26163116+LukeZGD@users.noreply.github.com> Date: Thu, 23 Mar 2023 12:35:32 +0800 Subject: [PATCH] A usbmuxd change - also allow ios 4 restores on iphone 4 (untested) --- README.md | 2 +- restore.sh | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index da6094d..1a89ae4 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ - For iOS 10.3.3 downgrades, use [TotallyNotSpyware](https://totally-not.spyware.lol) - Restore to other iOS versions **with SHSH blobs** - Supports 32-bit/A7/A8 devices, iOS 5 to 12 - - Also supports iPad 2 iOS 4.3.x + - Also supports iPad 2 iOS 4.3.x, iPhone 4 iOS 4.x - The latest baseband will be used for 32-bit devices if applicable - Place device to pwned iBSS/kDFU mode for 32-bit devices - Clear NVRAM for iPhone 4 GSM (Disable/Enable Exploit) diff --git a/restore.sh b/restore.sh index 9186047..5ec745f 100755 --- a/restore.sh +++ b/restore.sh @@ -208,7 +208,7 @@ set_tool_paths() { irecovery2="sudo " sudo chmod +x $dir/* sudo systemctl stop usbmuxd - sudo usbmuxd -px + sudo usbmuxd -pz usbmuxd_pid=$! fi @@ -1626,7 +1626,7 @@ ipsw_prepare_1033() { fi log "Pwned iBSS and iBEC saved at: saved/$device_type" - # this will not be needed if i get to compile futurerestore on mac + # this will not be needed if i get my fork(s) of futurerestore compiled on macos if [[ $platform == "macos" && ! -e "$ipsw_custom.ipsw" ]]; then log "Preparing custom IPSW..." mkdir -p Firmware/dfu @@ -1758,7 +1758,10 @@ ipsw_prepare_32bit() { ipsw_prepare_jailbreak return else - error "Restoring with iOS 4 blobs is not supported on $device_type. Use iFaith/PwnageTool/sn0wbreeze instead." + device_enter_mode pwnDFU + ipsw_custom="../${device_type}_${device_target_vers}_${device_target_build}_Restore" + restore_idevicerestore + return fi fi device_fw_key_check @@ -2042,7 +2045,7 @@ restore_idevicerestore() { ExtraArgs="-r" idevicerestore="$idevicererestore" re="re" - cp shsh/$device_ecid-$device_type-$device_target_vers.shsh shsh/$device_ecid-$device_type-$device_target_vers-$device_target_build.shsh + cp shsh/$device_ecid-$device_type-$device_target_vers.shsh shsh/$device_ecid-$device_type-$device_target_vers-$device_target_build.shsh # remove this if i get my fork of idevicererestore compiled on macos fi ipsw_extract custom if [[ $device_type == "iPad2"* && $device_target_vers == "4.3"* ]]; then