diff --git a/resources/buildmanifestsaver.sh b/resources/buildmanifestsaver.sh index 89b6d6e..0d6cee2 100755 --- a/resources/buildmanifestsaver.sh +++ b/resources/buildmanifestsaver.sh @@ -16,6 +16,7 @@ do pzb -g AssetData/boot/BuildManifest.plist -o manifests/BuildManifest_$ProductType.plist $dllink mkdir -p firmware/$ProductType/12H321 curl -L https://firmware-keys.ipsw.me/firmware/$ProductType/12H321 -o firmware/$ProductType/12H321/index.html + curl -L https://api.ipsw.me/v2.1/${ProductType}/12H321/sha1sum -o firmware/$ProductType/12H321/sha1sum done for ProductType in "${devices613[@]}" @@ -24,4 +25,5 @@ do pzb -g AssetData/boot/BuildManifest.plist -o manifests/BuildManifest613_$ProductType.plist $dllink mkdir -p firmware/$ProductType/10B329 curl -L https://firmware-keys.ipsw.me/firmware/$ProductType/10B329 -o firmware/$ProductType/10B329/index.html + curl -L https://api.ipsw.me/v2.1/${ProductType}/10B329/sha1sum -o firmware/$ProductType/10B329/sha1sum done diff --git a/restore.sh b/restore.sh index 23ac8ed..fd423d7 100755 --- a/restore.sh +++ b/restore.sh @@ -199,6 +199,7 @@ function SaveOTABlobs { SHSH=$(ls ${UniqueChipID}_${ProductType}_${DowngradeVersion}-*.shsh2) if [ ! -e "$SHSH" ]; then echo "[Error] Saving $DowngradeVersion blobs failed. Please run the script again" + echo "It is also possible that $DowngradeVersion for $ProductType is no longer being signed" exit fi mkdir output 2>/dev/null @@ -308,7 +309,7 @@ function Downgrade { mv tmp/$IPSW.ipsw . fi echo "[Log] Verifying IPSW..." - SHA1IPSW=$(curl -L https://api.ipsw.me/v2.1/${ProductType}/${DowngradeBuildVer}/sha1sum) + SHA1IPSW=$(cat resources/firmware/${ProductType}/${DowngradeBuildVer}/sha1sum) SHA1IPSWL=$(sha1sum "$IPSW.ipsw" | awk '{print $1}') if [ $SHA1IPSW != $SHA1IPSWL ]; then echo "[Error] SHA1 of IPSW does not match!"