From c0edc8d96ffa1827c775d20b636761a0e98bec2b Mon Sep 17 00:00:00 2001 From: LukeeGD <26163116+LukeZGD@users.noreply.github.com> Date: Sat, 24 Aug 2024 16:53:07 +0800 Subject: [PATCH] Update ipwndfu and small fix --- .github/workflows/build.yml | 4 ++-- restore.sh | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dcd0e40..c5952f6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,14 +28,14 @@ jobs: run: | mkdir saved pushd resources - curl -L https://github.com/LukeZGD/ipwndfu/archive/d0f9b0faae98d042e17fbb47cedf342e983a6bb8.zip -o ipwndfu.zip + curl -L https://github.com/LukeZGD/ipwndfu/archive/1d22fd01b0daf52bbcf1ce730022d4212d87f967.zip -o ipwndfu.zip curl -L https://github.com/LukeZGD/Legacy-iOS-Kit-Keys/archive/refs/heads/master.zip -o keys.zip unzip keys.zip -d . unzip ipwndfu.zip -d . cp -r Legacy-iOS-Kit-Keys-master/* firmware mv ipwndfu*/ ../saved/ipwndfu rm -rf Legacy-iOS-Kit-Keys-master/ ipwndfu.zip keys.zip - echo "8732b15c7262d68d2c5dd8cdbe0f6efb217d0240" > ../saved/ipwndfu/sha1check + echo "11e989557a7c4b75d70be14ac0ebfc2f9ec80791" > ../saved/ipwndfu/sha1check popd - name: Move linux binaries diff --git a/restore.sh b/restore.sh index ddeb94b..1586928 100755 --- a/restore.sh +++ b/restore.sh @@ -1722,8 +1722,8 @@ device_ipwndfu() { fi device_enter_mode DFU - local ipwndfu_comm="d0f9b0faae98d042e17fbb47cedf342e983a6bb8" - local ipwndfu_sha1="8732b15c7262d68d2c5dd8cdbe0f6efb217d0240" + local ipwndfu_comm="1d22fd01b0daf52bbcf1ce730022d4212d87f967" + local ipwndfu_sha1="11e989557a7c4b75d70be14ac0ebfc2f9ec80791" if [[ ! -s ../saved/ipwndfu/ipwndfu || $(cat ../saved/ipwndfu/sha1check) != "$ipwndfu_sha1" ]]; then rm -rf ../saved/ipwndfu-* download_file https://github.com/LukeZGD/ipwndfu/archive/$ipwndfu_comm.zip ipwndfu.zip $ipwndfu_sha1 @@ -6786,9 +6786,11 @@ menu_ipsw() { [643]* ) ipsw_canhacktivate=1;; esac ;; - [654]* | 3.1* ) + [6543]* ) device_target_vers="$1" - ipsw_canhacktivate=1 + if [[ $device_target_vers != "3.0"* ]]; then + ipsw_canhacktivate=1 + fi if [[ $device_type == "iPhone2,1" && $1 != "4.1" ]]; then ipsw_cancustomlogo=1 fi