From a20d870e97e9945bd8ed8177e562f5a845ab6a39 Mon Sep 17 00:00:00 2001 From: LukeZGD <26163116+LukeZGD@users.noreply.github.com> Date: Wed, 27 Dec 2023 11:01:02 +0800 Subject: [PATCH] Update DFU instruction for iPhone 6, 6S, 7 --- restore.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/restore.sh b/restore.sh index 7e0f415..e2ce382 100755 --- a/restore.sh +++ b/restore.sh @@ -977,7 +977,15 @@ device_dfuhelper() { echo -n "$i " sleep 1 done - echo -e "\n$(print '* Hold TOP and HOME buttons.')" + local top="TOP" + local home="HOME" + case $device_type in + iPhone7* | iPhone8,[12] | iPhone9* ) top="SIDE";; + esac + if [[ $device_type == "iPhone9"* ]]; then + home="VOL DOWN" + fi + echo -e "\n$(print "* Hold $top and $home buttons.")" for i in {10..01}; do echo -n "$i " device_find_all $1 @@ -989,7 +997,7 @@ device_dfuhelper() { fi sleep 1 done - echo -e "\n$(print '* Release TOP button and keep holding HOME button.')" + echo -e "\n$(print "* Release $top button and keep holding $home button.")" for i in {08..01}; do echo -n "$i " device_find_all $1