Skip to content

Commit 42cecf7

Browse files
committed
ok
1 parent bfcbc1d commit 42cecf7

File tree

2 files changed

+19
-20
lines changed

2 files changed

+19
-20
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
## Features
1010
- Legacy iOS Kit supports all 32-bit iOS devices, and some 64-bit (A7/A8/A9/A10/A11) devices
1111
- Devices that received iOS 16 and newer will only have limited functionality (e.g. sideloading) and some features like SSH ramdisk are not supported
12-
- Legacy iOS Kit defines *legacy devices* as all iOS devices that are vulnerable to checkm8 and older
12+
- Legacy iOS Kit defines *legacy devices* as all iOS devices that are vulnerable to a bootrom exploit (checkm8 and older)
1313
- Restore to signed OTA versions (iOS 8.4.1 and/or 6.1.3) on A5/A6 devices
1414
- Restore to iOS 10.3.3 (signed OTA version) on supported A7 devices
1515
- Restore supported devices to unsigned versions with SHSH blobs

restore.sh

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ set_tool_paths() {
597597
prepare_udev_rules() {
598598
local owner="$1"
599599
local group="$2"
600-
echo "ACTION==\"add\", SUBSYSTEM==\"usb\", ATTR{idVendor}==\"05ac\", ATTR{idProduct}==\"122[27]|128[0-3]|1338\", OWNER=\"$owner\", GROUP=\"$group\", MODE=\"0660\" TAG+=\"uaccess\"" > 39-libirecovery.rules
600+
echo "ACTION==\"add\", SUBSYSTEM==\"usb\", ATTR{idVendor}==\"05ac\", ATTR{idProduct}==\"122[27]|128[0-3]|1338|4141\", OWNER=\"$owner\", GROUP=\"$group\", MODE=\"0660\" TAG+=\"uaccess\"" > 39-libirecovery.rules
601601
}
602602

603603
install_depends() {
@@ -795,7 +795,7 @@ version_check() {
795795
device_entry() {
796796
# enable manual entry
797797
log "Manual device/ECID entry is enabled."
798-
until [[ -n $device_type ]]; do
798+
until [[ -n $device_type && $device_type == "iP"* ]]; do
799799
read -p "$(input 'Enter device type (eg. iPad2,1): ')" device_type
800800
done
801801
if [[ $main_argmode == "device_justboot" || $main_argmode == "device_enter_ramdisk"* ]]; then
@@ -1463,11 +1463,11 @@ device_get_info() {
14631463
device_use_vers="9.3.6"
14641464
device_use_build="13G37"
14651465
;;
1466-
iPad3,[56] | iPhone5,[1234] )
1466+
iPad3,[456] | iPhone5,[1234] )
14671467
device_use_vers="10.3.4"
14681468
device_use_build="14G61"
14691469
;;
1470-
iPad3,4 | iPad4,[12345] | iPhone6,[12] )
1470+
iPad4,[12345] | iPhone6,[12] )
14711471
device_use_vers="10.3.3"
14721472
device_use_build="14G60"
14731473
;;
@@ -7940,27 +7940,21 @@ menu_restore_more() {
79407940
local back
79417941

79427942
while [[ -z "$mode" && -z "$back" ]]; do
7943-
menu_items=()
7944-
case $device_type in
7945-
iPhone2,1 )
7946-
menu_items+=("6.1.3" "6.1.2" "6.1" "6.0.1" "6.0" "5.1" "5.0.1" "5.0")
7947-
menu_items+=("4.3.4" "4.3.3" "4.3.2" "4.3.1" "4.3" "4.2.1")
7948-
menu_items+=("4.0.2" "4.0.1" "4.0" "3.1.2" "3.1" "3.0.1" "3.0")
7949-
;;
7950-
iPod2,1 ) menu_items+=("4.0.2" "4.0" "3.1.2" "3.1.1");;
7951-
esac
7943+
menu_items+=("6.1.3" "6.1.2" "6.1" "6.0.1" "6.0" "5.1" "5.0.1" "5.0")
7944+
menu_items+=("4.3.4" "4.3.3" "4.3.2" "4.3.1" "4.3" "4.2.1")
7945+
menu_items+=("4.0.2" "4.0.1" "4.0" "3.1.2" "3.1" "3.0.1" "3.0")
79527946
menu_items+=("Go Back")
79537947
menu_print_info
79547948
if [[ $1 == "ipsw" ]]; then
79557949
print " > Main Menu > Misc Utilities > Create Custom IPSW"
79567950
else
79577951
print " > Main Menu > Restore/Downgrade"
79587952
fi
7959-
if [[ -z $1 && $device_type == "iPod2,1" && $device_newbr != 0 ]]; then
7960-
warn "These versions are for old bootrom devices only. They may not work on your device"
7961-
echo
7962-
elif [[ $device_type == "iPod2,1" ]]; then
7963-
warn "These versions might not restore/boot properly"
7953+
warn "3.1.x versions listed here might not restore properly"
7954+
if [[ $device_newbr != 0 ]]; then
7955+
print "* 3.0.x versions are not restorable on new bootrom devices"
7956+
menu_items=("${menu_items[@]::${#menu_items[@]}-3}")
7957+
menu_items+=("Go Back")
79647958
echo
79657959
fi
79667960
input "Select an option:"
@@ -8342,7 +8336,8 @@ menu_ipsw() {
83428336
print "* Selected Target IPSW: $ipsw_path.ipsw"
83438337
ipsw_print_warnings
83448338
menu_items+=("$start")
8345-
if [[ $device_target_vers == "$device_latest_vers" ]]; then
8339+
if [[ $device_target_vers == "$device_latest_vers" &&
8340+
$device_mode != "none" && -z $2 ]]; then
83468341
menu_items+=("Start Update")
83478342
fi
83488343
elif [[ $device_proc == 1 && $device_type != "iPhone1,2" ]]; then
@@ -10075,6 +10070,10 @@ device_dumpapp() {
1007510070
device_iproxy
1007610071
device_ssh_message
1007710072
device_sshpass
10073+
echo
10074+
warn "The dump apps feature is not actively maintained/supported and may have issues."
10075+
print "* If you encounter any issue, try going here instead: https://www.reddit.com/r/LegacyJailbreak/wiki/guides/crackingapps"
10076+
pause
1007810077

1007910078
local dumper_binary="ipainstaller"
1008010079
local selected2

0 commit comments

Comments
 (0)