From 7ab1b79baab2847d62d60d12c1e467ad46025d40 Mon Sep 17 00:00:00 2001 From: LukeZGD Date: Sun, 1 May 2022 11:59:01 +0800 Subject: [PATCH] Use LatestVer BuildManifest on tsschecker fixes the firmware.json issue --- resources/blobs.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/resources/blobs.sh b/resources/blobs.sh index 1b28642..2be3e56 100755 --- a/resources/blobs.sh +++ b/resources/blobs.sh @@ -8,9 +8,18 @@ SaveOTABlobs() { local SHSHExisting if [[ $DeviceProc != 7 && $Baseband != 0 ]]; then + if [[ ! -e saved/$ProductType/BuildManifest.plist ]]; then + Log "Downloading BuildManifest of iOS $LatestVer..." + $partialzip $BasebandURL BuildManifest.plist BuildManifest.plist + mkdir -p saved/$ProductType 2>/dev/null + mv BuildManifest.plist saved/$ProductType + fi + if [[ ! -e saved/$ProductType/BuildManifest.plist ]]; then + Error "Downloading/verifying BuildManifest failed. Please run the script again" + fi Log "Checking signing status of iOS $LatestVer..." SHSHChk=*_${ProductType}_${HWModel}ap_${LatestVer}*.shsh* - $tsschecker -d $ProductType -i $LatestVer -e $UniqueChipID -s -B ${HWModel}ap + $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."