Enable iPhone4Down on Windows

idevicerestore_win updated, it should work now
This commit is contained in:
LukeZGD 2022-07-23 11:50:57 +08:00
parent c7c542729e
commit d938115e45
4 changed files with 3 additions and 7 deletions

View File

@ -1,7 +1,7 @@
# iOS-OTA-Downgrader # iOS-OTA-Downgrader
- **Downgrade/restore and jailbreak supported iOS devices to signed OTA firmwares** - **Downgrade/restore and jailbreak supported iOS devices to signed OTA firmwares**
- **iPhone4Down: Downgrade your iPhone 4 on Linux (using powdersn0w)** - **iPhone4Down: Downgrade your iPhone 4 on Linux/Windows (using powdersn0w)**
- **Linux and macOS** are supported - **Linux and macOS** are supported
- **Partial support for Windows** - usage is not recommended - **Partial support for Windows** - usage is not recommended
- iPhone4Down is focused on Linux only - macOS and Windows are only partially supported - iPhone4Down is focused on Linux only - macOS and Windows are only partially supported

View File

@ -192,7 +192,7 @@ InstallDepends() {
pacman -Sy --noconfirm --needed ca-certificates curl openssh unzip zip pacman -Sy --noconfirm --needed ca-certificates curl openssh unzip zip
libimobiledevice=("https://github.com/LukeZGD/iOS-OTA-Downgrader-Keys/releases/download/tools/libimobiledevice_win.zip" "75ae3af3347b89107f0f6b7e41fde42e6ccdd404") libimobiledevice=("https://github.com/LukeZGD/iOS-OTA-Downgrader-Keys/releases/download/tools/libimobiledevice_win.zip" "75ae3af3347b89107f0f6b7e41fde42e6ccdd404")
if [[ ! $(ls ../resources/tools/*win*) ]]; then if [[ ! $(ls ../resources/tools/*win*) ]]; then
SaveFile https://github.com/LukeZGD/iOS-OTA-Downgrader-Keys/releases/download/tools/tools_win.zip tools_win.zip e8c67c803f61e059ac77047d110d5dda12dc4adb SaveFile https://github.com/LukeZGD/iOS-OTA-Downgrader-Keys/releases/download/tools/tools_win.zip tools_win.zip 30597bc091b1a2fa80350febdfd97a24b28fbdd5
Log "Extracting Windows tools..." Log "Extracting Windows tools..."
unzip -oq tools_win.zip -d ../resources unzip -oq tools_win.zip -d ../resources
fi fi

View File

@ -139,7 +139,6 @@ iDeviceRestore() {
cp $SHSH shsh/${UniqueChipID}-${ProductType}-${OSVer}.shsh cp $SHSH shsh/${UniqueChipID}-${ProductType}-${OSVer}.shsh
Log "Proceeding to idevicerestore..." Log "Proceeding to idevicerestore..."
[[ $1 == "latest" ]] && ExtraArgs="-e" || ExtraArgs="-e -w" [[ $1 == "latest" ]] && ExtraArgs="-e" || ExtraArgs="-e -w"
[[ $platform == "win" ]] && ExtraArgs+=" -y"
$idevicerestore $ExtraArgs "$IPSWRestore.ipsw" $idevicerestore $ExtraArgs "$IPSWRestore.ipsw"
echo echo
Log "Restoring done! Read the message below if any error has occurred:" Log "Restoring done! Read the message below if any error has occurred:"

View File

@ -237,7 +237,7 @@ Main() {
fi fi
if [[ $Mode == *"4" ]]; then if [[ $Mode == *"4" ]]; then
$Mode $Mode
exit 0 ExitWin 0
fi fi
elif [[ $DeviceState == "DFU" ]]; then elif [[ $DeviceState == "DFU" ]]; then
@ -314,9 +314,6 @@ SelectVersion() {
if [[ $platform == "linux" ]]; then if [[ $platform == "linux" ]]; then
Selection+=("4.3.5") Selection+=("4.3.5")
Selection2+=("4.3.3" "4.3") Selection2+=("4.3.3" "4.3")
elif [[ $platform == "win" && $Mode == "Downgrade" ]]; then
Error "Using iPhone4Down on Windows is currently disabled due to issues with idevicerestore" \
"Only creating custom IPSWs is enabled for now. This will be fixed sometime later"
elif [[ $Mode == "Restore712" ]]; then elif [[ $Mode == "Restore712" ]]; then
Echo "* Make sure to disable the exploit first! See the README for more details." Echo "* Make sure to disable the exploit first! See the README for more details."
Input "Press Enter/Return to continue (or press Ctrl+C to cancel)" Input "Press Enter/Return to continue (or press Ctrl+C to cancel)"