mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2025-02-20 18:32:43 +01:00
ota.json is not needed
This commit is contained in:
parent
0df5acf4fb
commit
e346e3f658
23
restore.sh
23
restore.sh
@ -136,7 +136,7 @@ function SelectVersion {
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
elif [[ $Mode == 'Downgrade' ]]; then
|
elif [[ $Mode == 'Downgrade' ]]; then
|
||||||
echo "Select iOS version:"
|
echo "[Input] Select iOS version:"
|
||||||
select opt in "iOS 8.4.1" "Other" "Back"; do
|
select opt in "iOS 8.4.1" "Other" "Back"; do
|
||||||
case $opt in
|
case $opt in
|
||||||
"iOS 8.4.1" ) Select841; break;;
|
"iOS 8.4.1" ) Select841; break;;
|
||||||
@ -194,25 +194,6 @@ function Action {
|
|||||||
|
|
||||||
function SaveOTABlobs {
|
function SaveOTABlobs {
|
||||||
BuildManifest="resources/manifests/BuildManifest_${ProductType}_${DowngradeVersion}.plist"
|
BuildManifest="resources/manifests/BuildManifest_${ProductType}_${DowngradeVersion}.plist"
|
||||||
|
|
||||||
# ota.json is being downloaded now so tsschecker doesn't have to
|
|
||||||
# this is because tsschecker has an unforgiving timeout when downloading ota.json
|
|
||||||
if [ ! -e resources/ota.json ]; then
|
|
||||||
echo "[Log] Downloading ota.json..."
|
|
||||||
curl -L https://api.ipsw.me/v2.1/ota.json/condensed -o tmp/ota.json
|
|
||||||
mv tmp/ota.json resources/
|
|
||||||
fi
|
|
||||||
echo "[Log] Copying ota.json to tmp..."
|
|
||||||
if [ $platform == macos ]; then
|
|
||||||
cp resources/ota.json $TMPDIR
|
|
||||||
else
|
|
||||||
cp resources/ota.json /tmp
|
|
||||||
fi
|
|
||||||
if [ ! -e /tmp/ota.json ] && [ ! -e $TMPDIR/ota.json ]; then
|
|
||||||
echo "[Error] Downloading/copying ota.json failed. Please run the script again"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "[Log] Saving $DowngradeVersion blobs with tsschecker..."
|
echo "[Log] Saving $DowngradeVersion blobs with tsschecker..."
|
||||||
env "LD_PRELOAD=libcurl.so.3" resources/tools/tsschecker_$platform -d $ProductType -i $DowngradeVersion -o -s -e $UniqueChipID -m $BuildManifest
|
env "LD_PRELOAD=libcurl.so.3" resources/tools/tsschecker_$platform -d $ProductType -i $DowngradeVersion -o -s -e $UniqueChipID -m $BuildManifest
|
||||||
SHSH=$(ls ${UniqueChipID}_${ProductType}_${DowngradeVersion}-*.shsh2)
|
SHSH=$(ls ${UniqueChipID}_${ProductType}_${DowngradeVersion}-*.shsh2)
|
||||||
@ -312,7 +293,7 @@ function Downgrade {
|
|||||||
# These firmware keys are essential for some iPads and iPod5,1
|
# These firmware keys are essential for some iPads and iPod5,1
|
||||||
# 8.4.1 KBAG keys for those devices are missing in firmware-keys.ipsw.me
|
# 8.4.1 KBAG keys for those devices are missing in firmware-keys.ipsw.me
|
||||||
rm -rf resources/firmware
|
rm -rf resources/firmware
|
||||||
echo "Downloading firmware keys..."
|
echo "[Log] Downloading firmware keys..."
|
||||||
curl -L https://github.com/LukeZGD/32bit-OTA-Downgrader/archive/firmware.zip -o tmp/firmware.zip
|
curl -L https://github.com/LukeZGD/32bit-OTA-Downgrader/archive/firmware.zip -o tmp/firmware.zip
|
||||||
unzip -q tmp/firmware.zip -d tmp
|
unzip -q tmp/firmware.zip -d tmp
|
||||||
mkdir resources/firmware
|
mkdir resources/firmware
|
||||||
|
Loading…
x
Reference in New Issue
Block a user