Skip to content

Commit 23c9b3f

Browse files
committed
more various changes
1 parent 2355610 commit 23c9b3f

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ resources/ch3rryflower/
1717
resources/ipwndfu/
1818
resources/jailbreak/freeze5.tar.gz
1919
resources/jailbreak/g1lbertJB/payload/Cydia.tar
20+
resources/jailbreak/g1lbertJB/var
2021
resources/powdersn0w/
2122
resources/ramdisk/
2223
saved/

restore.sh

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2258,6 +2258,8 @@ device_enter_mode() {
22582258
fi
22592259
fi
22602260
fi
2261+
elif [[ $device_proc == 7 && $platform == "macos" && $platform_arch == "arm64" ]]; then
2262+
tool="ipwnder_lite"
22612263
fi
22622264

22632265
if [[ $platform == "linux" ]]; then
@@ -2293,6 +2295,8 @@ device_enter_mode() {
22932295
$ipwnder -d
22942296
tool_pwned=$?
22952297
cp image3/* ../saved/image3/ 2>/dev/null
2298+
log "gaster reset"
2299+
$gaster reset
22962300
elif [[ $tool == "primepwn" ]]; then
22972301
log "Placing device to pwnDFU mode using primepwn"
22982302
$primepwn
@@ -5975,6 +5979,9 @@ restore_deviceprepare() {
59755979
if [[ $device_actrec == 1 ]]; then
59765980
device_dump activation
59775981
fi
5982+
if [[ $mode == "custom-ipsw" ]]; then
5983+
return
5984+
fi
59785985
case $device_proc in
59795986
1 )
59805987
if [[ $device_target_vers == "4"* && $ipsw_jailbreak == 1 ]]; then
@@ -7816,17 +7823,6 @@ menu_print_info() {
78167823
if [[ $device_disable_actrec == 1 ]]; then
78177824
warn "disable-actrec flag detected, activation dumping/stitching disabled. Proceed with caution"
78187825
fi
7819-
if [[ $device_argmode == "none" ]]; then
7820-
if [[ $device_type == "$device_disable_bbupdate" && -z $device_deadbb ]]; then
7821-
warn "disable-bbupdate flag detected, but cannot be used in no-device mode."
7822-
device_disable_bbupdate=
7823-
device_deadbb=
7824-
fi
7825-
if [[ $device_actrec == 1 && -z $device_auto_actrec ]]; then
7826-
warn "Activation records flag detected, but cannot be used in no-device mode."
7827-
device_actrec=
7828-
fi
7829-
fi
78307826
if [[ $device_type == "$device_disable_bbupdate" && $device_use_bb != 0 ]] && (( device_proc < 7 )); then
78317827
if [[ $device_deadbb == 1 ]]; then
78327828
warn "dead-bb flag detected, baseband flashing disabled. Your device will not activate after restore"
@@ -10446,6 +10442,8 @@ device_dump() {
1044610442
fi
1044710443
if [[ $device_mode == "Normal" ]] && (( device_proc < 7 )); then
1044810444
device_buttons2
10445+
elif [[ $device_mode == "none" ]]; then
10446+
error "No existing $arg dump found while in no device mode. Cannot continue."
1044910447
else
1045010448
log "Recovery/DFU mode device detected, entering pwnDFU mode to continue for SSH ramdisk."
1045110449
if [[ $platform == "linux" || $device_proc == 5 ]]; then
@@ -10455,8 +10453,10 @@ device_dump() {
1045510453
fi
1045610454
if [[ $device_mode == "Normal" ]]; then
1045710455
device_iproxy
10458-
device_ssh_message
10459-
device_sshpass
10456+
if [[ -z $ssh_pass ]]; then
10457+
device_ssh_message
10458+
device_sshpass
10459+
fi
1046010460
if [[ $arg == "activation" ]]; then
1046110461
log "Creating $arg.tar"
1046210462
$ssh -p $ssh_port ${ssh_user}@127.0.0.1 "mkdir -p /tmp/$dmp2; find $dmps; cp -R $dmps/* /tmp/$dmp2"
@@ -11694,6 +11694,7 @@ main() {
1169411694
case $mode in
1169511695
"custom-ipsw" )
1169611696
ipsw_preference_set
11697+
restore_deviceprepare
1169711698
ipsw_prepare
1169811699
log "Done creating custom IPSW"
1169911700
;;

0 commit comments

Comments
 (0)