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