From f84a5f28bf7ff33587d25ee3f9c0cb7fd9c7fa10 Mon Sep 17 00:00:00 2001 From: LukeZGD Date: Thu, 30 Sep 2021 23:05:25 +0800 Subject: [PATCH] Add message about restore errors on Windows --- README.md | 1 + resources/downgrade.sh | 13 +++++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b53d9cf..e8a363d 100644 --- a/README.md +++ b/README.md @@ -96,6 +96,7 @@ - For Homebrew: `brew install libimobiledevice libirecovery` - For MacPorts: `sudo port install libimobiledevice libirecovery` - The script will detect this automatically and will use the Homebrew/MacPorts versions of the tools +- Windows users may encounter errors like `Unable to send APTicket` or `Unable to send iBEC` in the restore process. To fix this, [follow steps 1 to 5 here](https://github.com/m1stadev/futurerestore/tree/test#unable-to-send-ibec-error--8) then run the script again - **For A7 devices:** - Do not use USB-C to lightning cables as this can prevent a successful restore - ipwndfu is unfortunately very unreliable on Linux, you may have to try multiple times (Linux users may also try in a live USB) diff --git a/resources/downgrade.sh b/resources/downgrade.sh index 15db87a..908e322 100755 --- a/resources/downgrade.sh +++ b/resources/downgrade.sh @@ -6,11 +6,16 @@ iDeviceRestore() { mkdir shsh mv $SHSH shsh/${UniqueChipID}-${ProductType}-${OSVer}.shsh $idevicerestore -ewy $IPSWRestore.ipsw - if [[ $platform == "macos" && $? != 0 ]]; then + if [[ $? != 0 && $platform != "linux" ]]; then Log "An error seems to have occurred when running idevicerestore." - Echo "* If this is the \"Killed: 9\" error or similar, try these steps:" - Echo "* Using Terminal, cd to where the script is located, then run" - Echo "* sudo codesign --sign - --force --deep resources/tools/idevicerestore_macos" + if [[ $platform == "macos" ]]; then + Echo "* If this is the \"Killed: 9\" error or similar, try these steps:" + Echo "* Using Terminal, cd to where the script is located, then run" + Echo "* sudo codesign --sign - --force --deep resources/tools/idevicerestore_macos" + elif [[ $platform == "win" ]]; then + Echo "* Windows users may encounter errors like \"Unable to send APTicket\" or \"Unable to send iBEC\" in the restore process." + Echo "* To fix this, follow steps 1 to 5 here: https://github.com/m1stadev/futurerestore/tree/test#unable-to-send-ibec-error--8" + fi fi }