Skip to content

Commit

Permalink
Update DFU instruction for iPhone 6, 6S, 7
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeZGD committed Dec 27, 2023
1 parent 1f8b72a commit a20d870
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit a20d870

Please sign in to comment.