From 91a90b7edd076bf57ef7be5ec0cae1a3cdae97e3 Mon Sep 17 00:00:00 2001 From: LukeeGD Date: Thu, 22 Oct 2020 12:13:25 +0800 Subject: [PATCH] Do not flash latest baseband on iPhone5,1 --- README.md | 2 +- restore.sh | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 075e0b5..35084de 100755 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ - If the script can't find your device in pwnREC mode or gets stuck, you may have to start over - Other than the above there's not much else I can help regarding entering pwnDFU mode... - For 32-bit devices: - - To devices with baseband, this script will restore your device with the latest baseband (except when jailbreak is enabled) + - To devices with baseband, this script will restore your device with the latest baseband (except when jailbreak is enabled, and on iPhone5,1 as there are reported issues) - This script has a workaround for the activation error on devices downgrading from iOS 10 - This script can also be used to just enter kDFU mode for all supported devices - This script can also restore your device to other iOS versions with provided SHSH blobs diff --git a/restore.sh b/restore.sh index d9aff84..ccd8390 100755 --- a/restore.sh +++ b/restore.sh @@ -522,6 +522,9 @@ function Downgrade { else if [[ $A7Device == 1 ]]; then cp $IPSW/Firmware/$Baseband . + elif [ $ProductType == iPhone5,1 ]; then + unzip -o -j $IPSW.ipsw Firmware/$Baseband -d . + unzip -o -j $IPSW.ipsw BuildManifest.plist -d . elif [ ! -e saved/$ProductType/*.bbfw ]; then Log "Downloading baseband..." $partialzip $BasebandURL Firmware/$Baseband $Baseband @@ -707,8 +710,11 @@ function BasebandDetect { elif [ $ProductType == iPhone4,1 ]; then Baseband=Trek-6.7.00.Release.bbfw BasebandSHA1=22a35425a3cdf8fa1458b5116cfb199448eecf49 - elif [ $ProductType == iPad3,5 ] || [ $ProductType == iPad3,6 ] || - [ $ProductType == iPhone5,1 ] || [ $ProductType == iPhone5,2 ]; then + elif [ $ProductType == iPhone5,1 ]; then + BasebandURL=$(cat $Firmware/12H321/url) + Baseband=Mav5-8.02.00.Release.bbfw + BasebandSHA1=db71823841ffab5bb41341576e7adaaeceddef1c + elif [ $ProductType == iPad3,5 ] || [ $ProductType == iPad3,6 ] || [ $ProductType == iPhone5,2 ]; then BasebandURL=$(cat $Firmware/14G61/url) # iOS 10.3.4 Baseband=Mav5-11.80.00.Release.bbfw BasebandSHA1=8951cf09f16029c5c0533e951eb4c06609d0ba7f