mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2025-06-03 04:34:57 +02:00
Support hacktivate for all iPhone 4 (still 6.1.3 and lower only)
This commit is contained in:
parent
8fa2dad224
commit
f00f635789
14
restore.sh
14
restore.sh
@ -8266,7 +8266,7 @@ menu_ipsw() {
|
|||||||
if [[ $device_target_vers == "$device_latest_vers" ]]; then
|
if [[ $device_target_vers == "$device_latest_vers" ]]; then
|
||||||
print "* This restore will use $device_use_vers baseband if the jailbreak option is disabled"
|
print "* This restore will use $device_use_vers baseband if the jailbreak option is disabled"
|
||||||
echo
|
echo
|
||||||
elif [[ $device_proc == 1 || $device_target_vers == "4.1" ]] && [[ $device_type != "iPhone3"* ]]; then
|
elif [[ $device_proc == 1 || $device_target_vers == "4.1" ]] && [[ $device_type != "iPhone3,"* ]]; then
|
||||||
print "* This restore will have baseband update disabled if the jailbreak option is enabled"
|
print "* This restore will have baseband update disabled if the jailbreak option is enabled"
|
||||||
echo
|
echo
|
||||||
else
|
else
|
||||||
@ -8325,7 +8325,7 @@ ipsw_print_warnings() {
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
case $device_type in
|
case $device_type in
|
||||||
"iPhone3"* )
|
"iPhone3,"* )
|
||||||
if [[ $device_target_vers == "4.2"* ]]; then
|
if [[ $device_target_vers == "4.2"* ]]; then
|
||||||
warn "iOS 4.2.x for $device_type might fail to boot after the restore/jailbreak."
|
warn "iOS 4.2.x for $device_type might fail to boot after the restore/jailbreak."
|
||||||
print "* It is recommended to select another version instead."
|
print "* It is recommended to select another version instead."
|
||||||
@ -8688,8 +8688,8 @@ menu_ipsw_browse() {
|
|||||||
esac
|
esac
|
||||||
pause
|
pause
|
||||||
return
|
return
|
||||||
elif [[ $device_target_build == "11D257" && $device_type == "iPhone3"* ]] ||
|
elif [[ $device_target_build == "11D257" && $device_type == "iPhone3,"* ]] ||
|
||||||
[[ $device_target_build == "9B206" && $device_proc == 4 && $device_type != "iPhone3"* ]]; then
|
[[ $device_target_build == "9B206" && $device_proc == 4 && $device_type != "iPhone3,"* ]]; then
|
||||||
log "Selected IPSW ($device_target_vers) is not supported as target version. You need to select it as base IPSW."
|
log "Selected IPSW ($device_target_vers) is not supported as target version. You need to select it as base IPSW."
|
||||||
pause
|
pause
|
||||||
return
|
return
|
||||||
@ -8998,12 +8998,12 @@ menu_usefulutilities() {
|
|||||||
fi
|
fi
|
||||||
if [[ $device_mode == "Normal" ]]; then
|
if [[ $device_mode == "Normal" ]]; then
|
||||||
case $device_type in
|
case $device_type in
|
||||||
iPhone1* )
|
iPhone1,* )
|
||||||
case $device_vers in
|
case $device_vers in
|
||||||
3.1.3 | 4.[12]* ) menu_items+=("Hacktivate Device" "Revert Hacktivation");;
|
3.1.3 | 4.[12]* ) menu_items+=("Hacktivate Device" "Revert Hacktivation");;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
iPhone[23],1 )
|
iPhone[23],* )
|
||||||
case $device_vers in
|
case $device_vers in
|
||||||
3.1* | [456]* ) menu_items+=("Hacktivate Device" "Revert Hacktivation");;
|
3.1* | [456]* ) menu_items+=("Hacktivate Device" "Revert Hacktivation");;
|
||||||
esac
|
esac
|
||||||
@ -9471,7 +9471,7 @@ device_activate() {
|
|||||||
device_hacktivate() {
|
device_hacktivate() {
|
||||||
local type="$device_type"
|
local type="$device_type"
|
||||||
local build="$device_build"
|
local build="$device_build"
|
||||||
if [[ $device_type == "iPhone3,1" ]]; then
|
if [[ $device_type == "iPhone3,"* ]]; then
|
||||||
type="iPhone2,1"
|
type="iPhone2,1"
|
||||||
case $device_vers in
|
case $device_vers in
|
||||||
4.2.1 ) build="8C148a";;
|
4.2.1 ) build="8C148a";;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user