mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-12-03 13:24:18 +01:00
Small updates regarding notes and alloc8
This commit is contained in:
parent
742c9c37b9
commit
d6ecc628d5
32
restore.sh
32
restore.sh
@ -816,12 +816,11 @@ device_get_info() {
|
|||||||
if [[ $platform == "macos" ]]; then
|
if [[ $platform == "macos" ]]; then
|
||||||
error_msg+=$'\n* Make sure to have the initial setup dependencies installed before retrying.'
|
error_msg+=$'\n* Make sure to have the initial setup dependencies installed before retrying.'
|
||||||
error_msg+=$'\n* Double-check if the device is being detected by iTunes/Finder.'
|
error_msg+=$'\n* Double-check if the device is being detected by iTunes/Finder.'
|
||||||
error_msg+=$'\n* You may also try running this command if needed: sudo killall -STOP -c usbd'
|
|
||||||
else
|
else
|
||||||
error_msg+=$'\n* If your device in normal mode is not being detected, this is likely a usbmuxd issue.'
|
error_msg+=$'\n* If your device in normal mode is not being detected, this is likely a usbmuxd issue.'
|
||||||
error_msg+=$'\n* Try restarting your PC and/or use different USB ports/cables.'
|
|
||||||
error_msg+=$'\n* You may also try again in a live USB.'
|
error_msg+=$'\n* You may also try again in a live USB.'
|
||||||
fi
|
fi
|
||||||
|
error_msg+=$'\n* Try restarting your PC/Mac as well as using different USB ports/cables.'
|
||||||
error_msg+=$'\n* For more details, read the "Troubleshooting" wiki page in GitHub.\n* Troubleshooting link: https://github.com/LukeZGD/Legacy-iOS-Kit/wiki/Troubleshooting'
|
error_msg+=$'\n* For more details, read the "Troubleshooting" wiki page in GitHub.\n* Troubleshooting link: https://github.com/LukeZGD/Legacy-iOS-Kit/wiki/Troubleshooting'
|
||||||
error "No device found! Please connect the iOS device to proceed." "$error_msg"
|
error "No device found! Please connect the iOS device to proceed." "$error_msg"
|
||||||
fi
|
fi
|
||||||
@ -1570,7 +1569,7 @@ device_enter_mode() {
|
|||||||
tool_pwned=$?
|
tool_pwned=$?
|
||||||
log "gaster reset"
|
log "gaster reset"
|
||||||
$gaster reset
|
$gaster reset
|
||||||
elif [[ $device_type == "iPod2,1" ]]; then
|
elif [[ $device_type == "iPod2,1" || $2 == "alloc8" ]]; then
|
||||||
# touch 2 uses ipwndfu
|
# touch 2 uses ipwndfu
|
||||||
device_ipwndfu pwn
|
device_ipwndfu pwn
|
||||||
tool_pwned=$?
|
tool_pwned=$?
|
||||||
@ -1751,16 +1750,16 @@ device_ipwndfu() {
|
|||||||
echo "$ipwndfu_sha1" > ../saved/ipwndfu/sha1check
|
echo "$ipwndfu_sha1" > ../saved/ipwndfu/sha1check
|
||||||
rm -rf ../saved/ipwndfu-*
|
rm -rf ../saved/ipwndfu-*
|
||||||
fi
|
fi
|
||||||
if [[ $platform == "macos" ]]; then
|
if [[ $platform == "macos" && ! -e ~/lib/libusb-1.0.dylib ]]; then
|
||||||
if [[ -e ~/lib && -e ~/lib.bak ]]; then
|
if [[ -e ~/lib && -e ~/lib.bak ]]; then
|
||||||
rm -rf ~/lib
|
rm -rf ~/lib
|
||||||
elif [[ -e ~/lib ]]; then
|
elif [[ -e ~/lib ]]; then
|
||||||
mv ~/lib ~/lib.bak
|
mv ~/lib ~/lib.bak
|
||||||
fi
|
fi
|
||||||
if [[ -d /opt/homebrew/lib ]]; then
|
if [[ -e /opt/local/lib/libusb-1.0.dylib ]]; then
|
||||||
ln -sf /opt/homebrew/lib ~/lib
|
|
||||||
elif [[ -d /opt/local/lib ]]; then
|
|
||||||
ln -sf /opt/local/lib ~/lib
|
ln -sf /opt/local/lib ~/lib
|
||||||
|
elif [[ -e /opt/homebrew/lib/libusb-1.0.dylib ]]; then
|
||||||
|
ln -sf /opt/homebrew/lib ~/lib
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -2148,9 +2147,8 @@ ipsw_preference_set() {
|
|||||||
case $device_type in
|
case $device_type in
|
||||||
iPad[23],[23] | "$device_disable_bbupdate" ) ipsw_nskip=1;;
|
iPad[23],[23] | "$device_disable_bbupdate" ) ipsw_nskip=1;;
|
||||||
esac
|
esac
|
||||||
if [[ $device_target_vers == "4.2"* || $device_target_vers == "4.3"* || $ipsw_gasgauge_patch == 1 ]]; then
|
if [[ $device_target_vers == "4.2"* || $device_target_vers == "4.3"* || $ipsw_gasgauge_patch == 1 ]] ||
|
||||||
ipsw_nskip=1
|
[[ $platform == "macos" && $platform_arch == "arm64" ]]; then
|
||||||
elif [[ $platform == "macos" && $platform_arch == "arm64" ]]; then
|
|
||||||
ipsw_nskip=1
|
ipsw_nskip=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -7824,16 +7822,13 @@ device_ssh() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
device_alloc8() {
|
device_alloc8() {
|
||||||
device_enter_mode pwnDFU
|
device_enter_mode pwnDFU alloc8
|
||||||
device_ipwndfu alloc8
|
device_ipwndfu alloc8
|
||||||
log "Done!"
|
log "Done!"
|
||||||
print "* This may take several tries. If it fails, unplug and replug your device, then run the script again"
|
print "* This may take several tries. It can fail a lot with \"Operation timed out\" error."
|
||||||
print "* To retry if needed, go to: Other Utilities -> Install alloc8 Exploit"
|
print "* If it fails, try to unplug and replug your device then run the script again."
|
||||||
if [[ $platform == "macos" ]]; then
|
print "* You may also need to force restart the device and re-enter DFU mode before retrying."
|
||||||
warn "Installing alloc8 is known to have issues on macOS according to some issue reports."
|
print "* To retry, just go back to: Other Utilities -> Install alloc8 Exploit"
|
||||||
print "* Success rate of installing alloc8 is higher on Linux than on macOS."
|
|
||||||
print "* It is recommended to do the alloc8 install on Linux instead."
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
device_jailbreak() {
|
device_jailbreak() {
|
||||||
@ -8232,6 +8227,7 @@ restore_customipsw() {
|
|||||||
warn "Restoring to 2.x might not work on newer macOS versions."
|
warn "Restoring to 2.x might not work on newer macOS versions."
|
||||||
print "* Try installing usbmuxd from MacPorts, and run 'sudo usbmuxd -pf' in another Terminal window"
|
print "* Try installing usbmuxd from MacPorts, and run 'sudo usbmuxd -pf' in another Terminal window"
|
||||||
print "* Another option is to just do 2.x restores on Linux instead."
|
print "* Another option is to just do 2.x restores on Linux instead."
|
||||||
|
print "* For more info, go to: https://github.com/LukeZGD/Legacy-iOS-Kit/wiki/Troubleshooting#restoring-to-iphoneosios-2x-on-macos"
|
||||||
fi
|
fi
|
||||||
if [[ $device_proc == 1 ]]; then
|
if [[ $device_proc == 1 ]]; then
|
||||||
echo
|
echo
|
||||||
|
Loading…
Reference in New Issue
Block a user