Remove unneeded parts and update stuff

This commit is contained in:
LukeZGD 2024-01-02 21:13:01 +08:00
parent 67bb1f6c33
commit 35d61daa14
70 changed files with 57 additions and 48 deletions

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
85963dfe1c0febf34d9871ee32b891b93d47b2b6

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
38bda2110c9b6b2227a61ee57c9e9ad7cb0fbfbc

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
db88aa859cb15af1c70e5e4b30e4056367bd998d

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
17174031c923080be0b7cfa6f550aa8008b63583

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
15e92a89ff3caf51523962fdb125e918d78c1807

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
d8534408c8679c830fd0c4e36ef9762c11ef73df

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
30006575af931e3da0521febace005152cdb8853

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
527c74f87588afa1d69c1e2c08eedc88f113013a

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
6998bb7d9e869b2d89a08853312f9457d070fb1f

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
c2b6fb9a158547ce726baa1bf8f0558a71518fec

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
61d21363ced6e006cc226f9a0a0e9c6ed8e048ab

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
2787bb9fbf18594279d05682e6fd16d2b9612a2a

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
d05108c7338f7df7026b2d9a84f632a096bace92

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
6de986f2dbd16a65db122e7c54a70f31812d028a

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
4021a2d82971fc4c637f1fdb6ce7c4dcfb7ac0d7

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
be06903d55dc13d8948ae4cfa619a277df4d4e5b

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1706,8 +1706,7 @@ ipsw_preference_set() {
echo echo
fi fi
if [[ $ipsw_jailbreak == 1 && -z $ipsw_hacktivate ]] && if [[ $ipsw_jailbreak == 1 && -z $ipsw_hacktivate && $device_canhacktivate == 1 ]]; then
[[ $device_type == "iPhone1"* || $device_type == "iPhone2,1" ]]; then
input "Hacktivate Option" input "Hacktivate Option"
print "* When this option is enabled, your device will be activated on restore." print "* When this option is enabled, your device will be activated on restore."
print "* Enable this option if you have no valid SIM card to activate the phone." print "* Enable this option if you have no valid SIM card to activate the phone."
@ -1721,6 +1720,10 @@ ipsw_preference_set() {
ipsw_hacktivate= ipsw_hacktivate=
fi fi
echo echo
elif [[ $ipsw_jailbreak != 1 ]] &&
[[ $device_type == "iPhone1"* || $device_type == "iPhone2,1" ]]; then
log "Hacktivate option is not available. Jailbreak option must be enabled"
echo
fi fi
if [[ -n $ipsw_memory ]]; then if [[ -n $ipsw_memory ]]; then
@ -2108,13 +2111,6 @@ ipsw_prepare_keys() {
fi fi
;; ;;
"LLB" )
echo -e "<key>$comp</key><dict><key>File</key><string>Firmware/all_flash/all_flash.${device_model}ap.production/$name</string><key>IV</key><string>$iv</string><key>Key</key><string>$key</string><key>Patch</key><string>LLB.${device_model}ap.RELEASE.img3</string>" >> $NewPlist
if [[ $device_proc != 1 ]]; then
echo -e "<key>IsPlain</key><true/>" >> $NewPlist
fi
;;
"WTF2" ) "WTF2" )
echo -e "<key>WTF 2</key><dict><key>File</key><string>Firmware/dfu/WTF.s5l8900xall.RELEASE.dfu</string><key>Patch</key><string>WTF.s5l8900xall.RELEASE.patch</string>" >> $NewPlist echo -e "<key>WTF 2</key><dict><key>File</key><string>Firmware/dfu/WTF.s5l8900xall.RELEASE.dfu</string><key>Patch</key><string>WTF.s5l8900xall.RELEASE.patch</string>" >> $NewPlist
;; ;;
@ -2360,35 +2356,6 @@ ipsw_prepare_bundle() {
ipsw_prepare_keys iBSS $1 ipsw_prepare_keys iBSS $1
ipsw_prepare_keys RestoreRamdisk $1 ipsw_prepare_keys RestoreRamdisk $1
echo -e "</dict>" >> $NewPlist echo -e "</dict>" >> $NewPlist
elif [[ $2 == "old" ]]; then
echo -e "<key>FirmwarePatches</key><dict>" >> $NewPlist
ipsw_prepare_keys iBSS $1
if [[ $vers != "3"* && $vers != "4"* ]]; then
ipsw_prepare_keys iBEC $1
fi
ipsw_prepare_keys RestoreRamdisk $1
if [[ $device_type == "iPod2,1" && $device_target_vers == "3.1.3" ]]; then
:
elif [[ $device_proc == 1 ]]; then
ipsw_prepare_keys iBoot $1
ipsw_prepare_keys KernelCache $1
#ipsw_prepare_keys LLB $1
ipsw_prepare_keys WTF2 $1
else
case $device_target_vers in
6.1.6 | 4.2.1 | 4.1 ) :;;
3.0* )
ipsw_prepare_keys iBoot $1
#ipsw_prepare_keys LLB $1
;;
* )
ipsw_prepare_keys iBoot $1
ipsw_prepare_keys KernelCache $1
#ipsw_prepare_keys LLB $1
;;
esac
fi
echo -e "</dict>" >> $NewPlist
else else
if [[ -d $FirmwareBundle2 ]]; then if [[ -d $FirmwareBundle2 ]]; then
echo -e "<key>FirmwarePatches</key><dict>" >> $NewPlist echo -e "<key>FirmwarePatches</key><dict>" >> $NewPlist
@ -2417,19 +2384,14 @@ ipsw_prepare_bundle() {
elif [[ $device_proc == 1 ]]; then elif [[ $device_proc == 1 ]]; then
ipsw_prepare_keys iBoot $1 ipsw_prepare_keys iBoot $1
ipsw_prepare_keys KernelCache $1 ipsw_prepare_keys KernelCache $1
#ipsw_prepare_keys LLB $1
ipsw_prepare_keys WTF2 $1 ipsw_prepare_keys WTF2 $1
else else
case $device_target_vers in case $device_target_vers in
6.1.6 | 4.2.1 | 4.1 ) :;; 6.1.6 | 4.2.1 | 4.1 ) :;;
3.0* ) 3.0* ) ipsw_prepare_keys iBoot $1;;
ipsw_prepare_keys iBoot $1
#ipsw_prepare_keys LLB $1
;;
* ) * )
ipsw_prepare_keys iBoot $1 ipsw_prepare_keys iBoot $1
ipsw_prepare_keys KernelCache $1 ipsw_prepare_keys KernelCache $1
#ipsw_prepare_keys LLB $1
;; ;;
esac esac
fi fi
@ -4538,8 +4500,9 @@ menu_restore_more() {
menu_items=() menu_items=()
case $device_type in case $device_type in
iPhone2,1 ) iPhone2,1 )
menu_items+=("6.1.3" "6.1.2" "6.1" "6.0.1" "6.0" "5.1" "5.0.1" "5.0" "4.3.2" "4.3.1" "4.3") menu_items+=("6.1.3" "6.1.2" "6.1" "6.0.1" "6.0" "5.1" "5.0.1" "5.0")
menu_items+=("4.2.1" "4.0.2" "4.0.1" "4.0" "3.1.2" "3.1" "3.0.1" "3.0") #menu_items+=("4.3.5" "4.3.4" "4.3.2" "4.3.1" "4.3")
menu_items+=("4.2.1" "4.0.2" "4.0.1" "4.0" "3.1.2" "3.1" "3.0")
;; ;;
iPod2,1 ) menu_items+=("4.0.2" "4.0");; iPod2,1 ) menu_items+=("4.0.2" "4.0");;
esac esac
@ -4615,12 +4578,19 @@ menu_ipsw() {
"6.1.6" | "4.2.1" | "3.1.3" ) device_canhacktivate=1;; "6.1.6" | "4.2.1" | "3.1.3" ) device_canhacktivate=1;;
esac esac
;; ;;
5* | 4* | 3* ) 6* | 5* | 4* | 3* )
device_target_vers="$1" device_target_vers="$1"
device_canhacktivate=1 if [[ $device_type == "iPhone1"* || $device_type == "iPhone2,1" ]]; then
device_canhacktivate=1
fi
;; ;;
esac esac
case $1 in case $1 in
"6.1.3" ) device_target_build="10B329";;
"6.1.2" ) device_target_build="10B146";;
"6.1" ) device_target_build="10B141";;
"6.0.1" ) device_target_build="10A523";;
"6.0" ) device_target_build="10A403";;
"5.1.1" ) device_target_build="9B206";; "5.1.1" ) device_target_build="9B206";;
"5.1" ) device_target_build="9B176";; "5.1" ) device_target_build="9B176";;
"5.0.1" ) device_target_build="9A405";; "5.0.1" ) device_target_build="9A405";;
@ -4676,6 +4646,9 @@ menu_ipsw() {
fi fi
if [[ $1 == "Other (Use SHSH Blobs)" ]]; then if [[ $1 == "Other (Use SHSH Blobs)" ]]; then
device_target_other=1 device_target_other=1
if [[ $device_type == "iPhone2,1" ]]; then
device_canhacktivate=1
fi
elif [[ $1 == *"powdersn0w"* ]]; then elif [[ $1 == *"powdersn0w"* ]]; then
device_target_powder=1 device_target_powder=1
elif [[ $1 == *"Tethered"* ]]; then elif [[ $1 == *"Tethered"* ]]; then