mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-11-23 16:39:17 +01:00
Add sha1sum in firmware
This commit is contained in:
parent
e346e3f658
commit
aee3225d30
@ -16,6 +16,7 @@ do
|
|||||||
pzb -g AssetData/boot/BuildManifest.plist -o manifests/BuildManifest_$ProductType.plist $dllink
|
pzb -g AssetData/boot/BuildManifest.plist -o manifests/BuildManifest_$ProductType.plist $dllink
|
||||||
mkdir -p firmware/$ProductType/12H321
|
mkdir -p firmware/$ProductType/12H321
|
||||||
curl -L https://firmware-keys.ipsw.me/firmware/$ProductType/12H321 -o firmware/$ProductType/12H321/index.html
|
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
|
done
|
||||||
|
|
||||||
for ProductType in "${devices613[@]}"
|
for ProductType in "${devices613[@]}"
|
||||||
@ -24,4 +25,5 @@ do
|
|||||||
pzb -g AssetData/boot/BuildManifest.plist -o manifests/BuildManifest613_$ProductType.plist $dllink
|
pzb -g AssetData/boot/BuildManifest.plist -o manifests/BuildManifest613_$ProductType.plist $dllink
|
||||||
mkdir -p firmware/$ProductType/10B329
|
mkdir -p firmware/$ProductType/10B329
|
||||||
curl -L https://firmware-keys.ipsw.me/firmware/$ProductType/10B329 -o firmware/$ProductType/10B329/index.html
|
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
|
done
|
||||||
|
@ -199,6 +199,7 @@ function SaveOTABlobs {
|
|||||||
SHSH=$(ls ${UniqueChipID}_${ProductType}_${DowngradeVersion}-*.shsh2)
|
SHSH=$(ls ${UniqueChipID}_${ProductType}_${DowngradeVersion}-*.shsh2)
|
||||||
if [ ! -e "$SHSH" ]; then
|
if [ ! -e "$SHSH" ]; then
|
||||||
echo "[Error] Saving $DowngradeVersion blobs failed. Please run the script again"
|
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
|
exit
|
||||||
fi
|
fi
|
||||||
mkdir output 2>/dev/null
|
mkdir output 2>/dev/null
|
||||||
@ -308,7 +309,7 @@ function Downgrade {
|
|||||||
mv tmp/$IPSW.ipsw .
|
mv tmp/$IPSW.ipsw .
|
||||||
fi
|
fi
|
||||||
echo "[Log] Verifying IPSW..."
|
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}')
|
SHA1IPSWL=$(sha1sum "$IPSW.ipsw" | awk '{print $1}')
|
||||||
if [ $SHA1IPSW != $SHA1IPSWL ]; then
|
if [ $SHA1IPSW != $SHA1IPSWL ]; then
|
||||||
echo "[Error] SHA1 of IPSW does not match!"
|
echo "[Error] SHA1 of IPSW does not match!"
|
||||||
|
Loading…
Reference in New Issue
Block a user