From d938115e456d5ac7ebf04c85af006957a4a4c0cf Mon Sep 17 00:00:00 2001 From: LukeZGD <26163116+LukeZGD@users.noreply.github.com> Date: Sat, 23 Jul 2022 11:50:57 +0800 Subject: [PATCH] Enable iPhone4Down on Windows idevicerestore_win updated, it should work now --- README.md | 2 +- resources/depends.sh | 2 +- resources/downgrade.sh | 1 - restore.sh | 5 +---- 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 91bf8e5..df13fc2 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # iOS-OTA-Downgrader - **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 - **Partial support for Windows** - usage is not recommended - iPhone4Down is focused on Linux only - macOS and Windows are only partially supported diff --git a/resources/depends.sh b/resources/depends.sh index 45d0ae6..02deb8a 100755 --- a/resources/depends.sh +++ b/resources/depends.sh @@ -192,7 +192,7 @@ InstallDepends() { 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") 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..." unzip -oq tools_win.zip -d ../resources fi diff --git a/resources/downgrade.sh b/resources/downgrade.sh index ddf7d00..8c7cf1f 100755 --- a/resources/downgrade.sh +++ b/resources/downgrade.sh @@ -139,7 +139,6 @@ iDeviceRestore() { cp $SHSH shsh/${UniqueChipID}-${ProductType}-${OSVer}.shsh Log "Proceeding to idevicerestore..." [[ $1 == "latest" ]] && ExtraArgs="-e" || ExtraArgs="-e -w" - [[ $platform == "win" ]] && ExtraArgs+=" -y" $idevicerestore $ExtraArgs "$IPSWRestore.ipsw" echo Log "Restoring done! Read the message below if any error has occurred:" diff --git a/restore.sh b/restore.sh index 90cc2dd..ee52736 100755 --- a/restore.sh +++ b/restore.sh @@ -237,7 +237,7 @@ Main() { fi if [[ $Mode == *"4" ]]; then $Mode - exit 0 + ExitWin 0 fi elif [[ $DeviceState == "DFU" ]]; then @@ -314,9 +314,6 @@ SelectVersion() { if [[ $platform == "linux" ]]; then Selection+=("4.3.5") 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 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)"