mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-12-23 23:01:49 +01:00
Workaround when latest bb is not signed
should be helpful especially for iPad2,3 users
This commit is contained in:
parent
5a1461b3df
commit
0afe0bc7a1
@ -8,7 +8,7 @@ SaveOTABlobs() {
|
||||
local SHSHLatest
|
||||
local SHSHExisting
|
||||
|
||||
if [[ $DeviceProc != 7 && $Baseband != 0 ]]; then
|
||||
if [[ $DeviceProc != 7 && $Baseband != 0 && $platform != "win" ]]; then
|
||||
if [[ ! -e saved/$ProductType/BuildManifest.plist ]]; then
|
||||
Log "Downloading BuildManifest of iOS $LatestVer..."
|
||||
$partialzip $BasebandURL BuildManifest.plist BuildManifest.plist
|
||||
@ -21,12 +21,17 @@ SaveOTABlobs() {
|
||||
Log "Checking signing status of iOS $LatestVer..."
|
||||
SHSHChk=*_${ProductType}_${HWModel}ap_${LatestVer}*.shsh*
|
||||
$tsschecker -d $ProductType -i $LatestVer -e $UniqueChipID -m saved/$ProductType/BuildManifest.plist -s -B ${HWModel}ap
|
||||
SHSHLatest=$(ls $SHSHChk)
|
||||
if [[ ! -e $SHSHLatest ]]; then
|
||||
Error "For some reason, the latest version for your device (iOS $LatestVer) is not signed. Cannot continue."
|
||||
SHSHLatest=$(ls $SHSHChk 2>/dev/null)
|
||||
if [[ -e $SHSHLatest ]]; then
|
||||
Log "Latest version for $ProductType (iOS $LatestVer) is signed."
|
||||
else
|
||||
Log "For some reason, the latest version for your device (iOS $LatestVer) is not signed."
|
||||
Log "Disabling baseband update for the custom IPSW."
|
||||
BBUpdate=0
|
||||
[[ $Jailbreak != 1 ]] && IPSWCustom+="N"
|
||||
IPSWCustom+="B"
|
||||
fi
|
||||
Log "Latest version for $ProductType (iOS $LatestVer) is signed."
|
||||
rm $SHSHLatest
|
||||
rm $SHSHLatest 2>/dev/null
|
||||
fi
|
||||
|
||||
Log "Saving iOS $OSVer blobs with tsschecker..."
|
||||
|
@ -108,11 +108,15 @@ DowngradeOther() {
|
||||
}
|
||||
|
||||
DowngradeOTA() {
|
||||
[[ $DeviceProc != 7 ]] && JailbreakOption
|
||||
if [[ $DeviceProc != 7 ]]; then
|
||||
JailbreakOption
|
||||
fi
|
||||
SaveOTABlobs
|
||||
IPSWFindVerify
|
||||
kDFU
|
||||
[[ $Jailbreak == 1 ]] && IPSW32
|
||||
if [[ $Jailbreak == 1 || $BBUpdate == 0 ]]; then
|
||||
IPSW32
|
||||
fi
|
||||
IPSWSetExtract
|
||||
FutureRestore
|
||||
}
|
||||
|
@ -197,7 +197,7 @@ IPSW32() {
|
||||
fi
|
||||
if [[ $platform == "win" ]]; then
|
||||
WinBundles="windows/"
|
||||
else
|
||||
elif [[ $BBUpdate != 0 ]]; then
|
||||
ExtraArgs+="-bbupdate"
|
||||
fi
|
||||
|
||||
|
@ -176,6 +176,7 @@ Main() {
|
||||
fi
|
||||
fi
|
||||
|
||||
SaveOTABlobs
|
||||
IPSWFindVerify
|
||||
if [[ $DeviceProc == 4 ]]; then
|
||||
IPSWFindVerify 712
|
||||
|
Loading…
Reference in New Issue
Block a user