A usbmuxd change

- also allow ios 4 restores on iphone 4 (untested)
This commit is contained in:
LukeZGD 2023-03-23 12:35:32 +08:00
parent 34d2e069b9
commit bc9bd88c15
2 changed files with 8 additions and 5 deletions

View File

@ -12,7 +12,7 @@
- For iOS 10.3.3 downgrades, use [TotallyNotSpyware](https://totally-not.spyware.lol) - For iOS 10.3.3 downgrades, use [TotallyNotSpyware](https://totally-not.spyware.lol)
- Restore to other iOS versions **with SHSH blobs** - Restore to other iOS versions **with SHSH blobs**
- Supports 32-bit/A7/A8 devices, iOS 5 to 12 - 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 - The latest baseband will be used for 32-bit devices if applicable
- Place device to pwned iBSS/kDFU mode for 32-bit devices - Place device to pwned iBSS/kDFU mode for 32-bit devices
- Clear NVRAM for iPhone 4 GSM (Disable/Enable Exploit) - Clear NVRAM for iPhone 4 GSM (Disable/Enable Exploit)

View File

@ -208,7 +208,7 @@ set_tool_paths() {
irecovery2="sudo " irecovery2="sudo "
sudo chmod +x $dir/* sudo chmod +x $dir/*
sudo systemctl stop usbmuxd sudo systemctl stop usbmuxd
sudo usbmuxd -px sudo usbmuxd -pz
usbmuxd_pid=$! usbmuxd_pid=$!
fi fi
@ -1626,7 +1626,7 @@ ipsw_prepare_1033() {
fi fi
log "Pwned iBSS and iBEC saved at: saved/$device_type" 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 if [[ $platform == "macos" && ! -e "$ipsw_custom.ipsw" ]]; then
log "Preparing custom IPSW..." log "Preparing custom IPSW..."
mkdir -p Firmware/dfu mkdir -p Firmware/dfu
@ -1758,7 +1758,10 @@ ipsw_prepare_32bit() {
ipsw_prepare_jailbreak ipsw_prepare_jailbreak
return return
else 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
fi fi
device_fw_key_check device_fw_key_check
@ -2042,7 +2045,7 @@ restore_idevicerestore() {
ExtraArgs="-r" ExtraArgs="-r"
idevicerestore="$idevicererestore" idevicerestore="$idevicererestore"
re="re" 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 fi
ipsw_extract custom ipsw_extract custom
if [[ $device_type == "iPad2"* && $device_target_vers == "4.3"* ]]; then if [[ $device_type == "iPad2"* && $device_target_vers == "4.3"* ]]; then