File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -3192,6 +3192,11 @@ ipsw_prepare_jailbreak() {
31923192
31933193 ipsw_prepare_logos_add
31943194 ipsw_bbreplace
3195+ if [[ $device_type == " iPhone2,1" && $device_target_other == 1 ]] && (( target_vers_maj >= 5 )) ; then
3196+ ipsw_prepare_ios4patches
3197+ log " Add all to custom IPSW"
3198+ zip -r0 temp.ipsw Firmware/dfu/*
3199+ fi
31953200
31963201 mv temp.ipsw " $ipsw_custom .ipsw"
31973202}
@@ -3945,7 +3950,7 @@ ipsw_prepare_32bit() {
39453950
39463951 ipsw_prepare_fourthree
39473952 ipsw_bbreplace
3948- if [[ $device_target_vers == " 4 " * ]]; then
3953+ if [[ $target_vers_maj == 4 ]]; then
39493954 ipsw_prepare_ios4patches
39503955 log " Add all to custom IPSW"
39513956 zip -r0 temp.ipsw Firmware/dfu/*
@@ -4915,7 +4920,9 @@ ipsw_prepare_ios4patches() {
49154920 mv $name $getcomp .orig
49164921 " $dir /xpwntool" $getcomp .orig $getcomp .dec -iv $iv -k $key
49174922 ticket=
4918- [[ -n $device_type_special && $getcomp == " iBEC" ]] && ticket=" --ticket"
4923+ if [[ $getcomp == " iBEC" ]] && (( target_vers_maj >= 5 )) ; then
4924+ ticket=" --ticket"
4925+ fi
49194926 " $dir /iBoot32Patcher" $getcomp .dec $getcomp .patched --rsa --debug $ticket -b " rd=md0 -v amfi=0xff cs_enforcement_disable=1 pio-error=0"
49204927 " $dir /xpwntool" $getcomp .patched ${path} $name -t $getcomp .orig
49214928 done
You can’t perform that action at this time.
0 commit comments