Skip to content

Commit c022af0

Browse files
committed
extended fix for restoreramdisk error for 4.3.1-4.3.5 and 9A406
1 parent 00842d2 commit c022af0

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

restore.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2267,7 +2267,11 @@ device_fw_key_check() {
22672267
fi
22682268
;;
22692269
esac
2270-
if [[ $(cat "$keys_path/index.html" | grep -c "2025-02-25") != 1 ]]; then
2270+
if [[ $(cat "$keys_path/index.html" | grep -c "2025-02-25") == 1 ]]; then
2271+
case $build in
2272+
8[GHJKL]* | 9A406 ) rm "$keys_path/index.html";;
2273+
esac
2274+
else
22712275
case $build in
22722276
8[GHJKL]* | 9A406 ) :;;
22732277
* ) rm "$keys_path/index.html";;
@@ -3401,7 +3405,8 @@ ipsw_prepare_bundle() {
34013405
local RamdiskIV=$(echo "$key" | $jq -j '.keys[] | select(.image == "RestoreRamdisk") | .iv')
34023406
local RamdiskKey=$(echo "$key" | $jq -j '.keys[] | select(.image == "RestoreRamdisk") | .key')
34033407
if [[ -z $ramdisk_name ]]; then
3404-
error "Issue with firmware keys: Failed getting RestoreRamdisk. Check The Apple Wiki or your wikiproxy"
3408+
error "Issue with firmware keys: Failed getting RestoreRamdisk. Check The Apple Wiki or your wikiproxy" \
3409+
"For iOS 4.3.x/5.0.x, you may also try to delete and re-download your copy of Legacy iOS Kit."
34053410
fi
34063411
unzip -o -j "$ipsw_p.ipsw" $ramdisk_name
34073412
"$dir/xpwntool" $ramdisk_name Ramdisk.raw -iv $RamdiskIV -k $RamdiskKey

0 commit comments

Comments
 (0)