Skip to content

Commit

Permalink
Show "Jailbreak Device" option to S5L8900 devices, and redirect them …
Browse files Browse the repository at this point in the history
…to the correct option for jailbreaking, and fix iPhone1,2 error
  • Loading branch information
LukeZGD committed Jul 26, 2024
1 parent efe7de0 commit ac6fbf9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2649,7 +2649,7 @@ ipsw_prepare_keys() {
local name=$(echo $fw_key | $jq -j '.keys[] | select(.image == "'$getcomp'") | .filename')
local iv=$(echo $fw_key | $jq -j '.keys[] | select(.image == "'$getcomp'") | .iv')
local key=$(echo $fw_key | $jq -j '.keys[] | select(.image == "'$getcomp'") | .key')
if [[ -z $name ]]; then
if [[ -z $name && $device_proc != 1 ]]; then
error "Issue with firmware keys: Failed getting $getcomp. Check The Apple Wiki or your wikiproxy"
fi

Expand Down Expand Up @@ -6020,7 +6020,7 @@ menu_main() {
input "Select an option:"
if [[ $device_mode != "none" ]]; then
menu_items+=("Restore/Downgrade")
if (( device_proc < 7 )) && [[ $device_proc != 1 ]]; then
if (( device_proc < 7 )); then
menu_items+=("Jailbreak Device")
fi
fi
Expand Down Expand Up @@ -7614,7 +7614,11 @@ device_alloc8() {
}

device_jailbreak() {
if [[ $device_vers == *"iBoot"* || $device_vers == "Unknown"* ]]; then
if [[ $device_proc == 1 ]]; then
print "* The \"Jailbreak Device\" option is not supported for this device."
print "* To jailbreak, go to \"Restore/Downgrade\" instead, select 4.1 or 3.1.3, then enable the jailbreak option."
return
elif [[ $device_vers == *"iBoot"* || $device_vers == "Unknown"* ]]; then
read -p "$(input 'Enter current iOS version (eg. 6.1.3): ')" device_vers
else
case $device_vers in
Expand Down

0 comments on commit ac6fbf9

Please sign in to comment.