mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-11-23 16:39:17 +01:00
Some changes
This commit is contained in:
parent
34a7608d02
commit
f26caeba3b
@ -94,7 +94,7 @@
|
|||||||
- iPhone 3GS - iOS 3.0 to 6.1.3 (all versions)
|
- iPhone 3GS - iOS 3.0 to 6.1.3 (all versions)
|
||||||
- iPod touch 2 - iOS 2.1.1 to 4.1 (all versions)
|
- iPod touch 2 - iOS 2.1.1 to 4.1 (all versions)
|
||||||
- iPhone 2G, 3G, iPod touch 1 - all versions
|
- iPhone 2G, 3G, iPod touch 1 - all versions
|
||||||
- iOS 1 doesn't seem to work and may require usage of [ZiPhone](https://github.com/Zibri/ZiPhone), [more info here](https://nitter.net/tihmstar/status/1734620913071542435)
|
- iOS 1 doesn't seem to work and may require usage of [ZiPhone](https://github.com/Zibri/ZiPhone), [more info here](https://twitter.com/tihmstar/status/1734620913071542435)
|
||||||
|
|
||||||
## Supported OS versions/distros
|
## Supported OS versions/distros
|
||||||
|
|
||||||
|
50
restore.sh
50
restore.sh
@ -811,6 +811,10 @@ device_get_info() {
|
|||||||
latestver="$(curl "https://api.ipsw.me/v4/device/$device_type?type=ipsw" | $jq -j ".firmwares[0]")"
|
latestver="$(curl "https://api.ipsw.me/v4/device/$device_type?type=ipsw" | $jq -j ".firmwares[0]")"
|
||||||
device_latest_vers="$(echo "$latestver" | $jq -j ".version")"
|
device_latest_vers="$(echo "$latestver" | $jq -j ".version")"
|
||||||
device_latest_build="$(echo "$latestver" | $jq -j ".buildid")"
|
device_latest_build="$(echo "$latestver" | $jq -j ".buildid")"
|
||||||
|
if [[ -z $device_latest_vers || -z $device_latest_build ]]; then
|
||||||
|
device_latest_vers="15.8.1"
|
||||||
|
device_latest_build="19H380"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
# set device_use_bb, device_use_bb_sha1 (what baseband to use for ota/other)
|
# set device_use_bb, device_use_bb_sha1 (what baseband to use for ota/other)
|
||||||
@ -838,22 +842,6 @@ device_get_info() {
|
|||||||
device_latest_bb="Mav7Mav8-10.80.02.Release.bbfw"
|
device_latest_bb="Mav7Mav8-10.80.02.Release.bbfw"
|
||||||
device_latest_bb_sha1="f5db17f72a78d807a791138cd5ca87d2f5e859f0"
|
device_latest_bb_sha1="f5db17f72a78d807a791138cd5ca87d2f5e859f0"
|
||||||
;;
|
;;
|
||||||
iPhone7,[12] ) # MDM9625 15.6-latest
|
|
||||||
device_latest_bb="Mav10-7.80.04.Release.bbfw"
|
|
||||||
device_latest_bb_sha1="7ec8d734da78ca2bb1ba202afdbb6fe3fd093cb0"
|
|
||||||
;;
|
|
||||||
iPad5,[24] | iPhone8,[124] ) # MDM9615/MDM9635 15.6-latest
|
|
||||||
device_latest_bb="Mav10-11.61.01.Release.bbfw"
|
|
||||||
device_latest_bb_sha1="212cbb1e5bfd60912c01adda7dca66a569ddf758"
|
|
||||||
;;
|
|
||||||
iPhone9,[12] ) # MDM9645 15.6-latest
|
|
||||||
device_latest_bb="Mav16-9.61.00.Release.bbfw"
|
|
||||||
device_latest_bb_sha1="7c742e0fc4857e7c07df1e4c48ccafbb60ae38bb"
|
|
||||||
;;
|
|
||||||
iPhone9,[34] ) # PMB9943 15.6-latest
|
|
||||||
device_latest_bb="ICE16-6.03.01.Release.bbfw"
|
|
||||||
device_latest_bb_sha1="0e62ac6a7c8299f69f9410bdda27f6a3f9601a8f"
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
# disable baseband update if var is set to 1 (manually disabled w/ --disable-bbupdate arg)
|
# disable baseband update if var is set to 1 (manually disabled w/ --disable-bbupdate arg)
|
||||||
if [[ $device_disable_bbupdate == 1 ]]; then
|
if [[ $device_disable_bbupdate == 1 ]]; then
|
||||||
@ -1123,16 +1111,23 @@ device_enter_mode() {
|
|||||||
echo '[[ $(uname -a | grep -c "MarijuanARM") == 1 ]] && /tmp/kloader_hgsp /tmp/pwnediBSS || \
|
echo '[[ $(uname -a | grep -c "MarijuanARM") == 1 ]] && /tmp/kloader_hgsp /tmp/pwnediBSS || \
|
||||||
/tmp/kloader /tmp/pwnediBSS' >> kloaders
|
/tmp/kloader /tmp/pwnediBSS' >> kloaders
|
||||||
sendfiles+=("../resources/kloader/kloader_hgsp" "../resources/kloader/kloader")
|
sendfiles+=("../resources/kloader/kloader_hgsp" "../resources/kloader/kloader")
|
||||||
elif [[ $device_det == 5 ]]; then
|
elif [[ $device_det == 5 && $device_proc == 5 ]]; then
|
||||||
if [[ $device_proc == 5 ]]; then
|
local selection=("kloader5" "kloader_axi0mX")
|
||||||
opt="kloader5"
|
input "kDFU Tool Option"
|
||||||
else
|
print "* Select tool to be used for entering kDFU mode."
|
||||||
opt="kloader_axi0mX"
|
print "* This option is set to kloader5 by default (1). Select this option if unsure."
|
||||||
fi
|
print "* If the first option does not work, try many times and/or try the other option(s)."
|
||||||
|
input "Select your option:"
|
||||||
|
select opt2 in "${selection[@]}"; do
|
||||||
|
case $opt2 in
|
||||||
|
"kloader_axi0mX" ) opt="kloader_axi0mX"; break;;
|
||||||
|
* ) opt="kloader5";;
|
||||||
|
esac
|
||||||
|
done
|
||||||
log "Using $opt for kloader iOS 5"
|
log "Using $opt for kloader iOS 5"
|
||||||
echo "/tmp/$opt /tmp/pwnediBSS" >> kloaders
|
echo "/tmp/$opt /tmp/pwnediBSS" >> kloaders
|
||||||
sendfiles+=("../resources/kloader/$opt")
|
sendfiles+=("../resources/kloader/$opt")
|
||||||
elif (( device_det < 5 )); then
|
elif (( device_det <= 5 )); then
|
||||||
opt="kloader_axi0mX"
|
opt="kloader_axi0mX"
|
||||||
echo "/tmp/kloader_axi0mX /tmp/pwnediBSS" >> kloaders
|
echo "/tmp/kloader_axi0mX /tmp/pwnediBSS" >> kloaders
|
||||||
sendfiles+=("../resources/kloader/kloader_axi0mX")
|
sendfiles+=("../resources/kloader/kloader_axi0mX")
|
||||||
@ -1156,9 +1151,6 @@ device_enter_mode() {
|
|||||||
$ssh -p 2222 root@127.0.0.1 "bash /tmp/kloaders" &
|
$ssh -p 2222 root@127.0.0.1 "bash /tmp/kloaders" &
|
||||||
else
|
else
|
||||||
warn "Failed to connect to device via USB SSH."
|
warn "Failed to connect to device via USB SSH."
|
||||||
if [[ $platform == "linux" ]]; then
|
|
||||||
print "* Try running \"sudo systemctl restart usbmuxd\" before retrying USB SSH."
|
|
||||||
fi
|
|
||||||
if [[ $device_det == 1 ]]; then
|
if [[ $device_det == 1 ]]; then
|
||||||
print "* Try to re-install both OpenSSH and Dropbear, reboot, re-jailbreak, and try again."
|
print "* Try to re-install both OpenSSH and Dropbear, reboot, re-jailbreak, and try again."
|
||||||
print "* Alternatively, place your device in DFU mode (see \"Troubleshooting\" wiki page for details)"
|
print "* Alternatively, place your device in DFU mode (see \"Troubleshooting\" wiki page for details)"
|
||||||
@ -2057,6 +2049,12 @@ ipsw_prepare_jailbreak() {
|
|||||||
if [[ $device_target_vers == "5"* ]]; then
|
if [[ $device_target_vers == "5"* ]]; then
|
||||||
JBFiles+=("$jelbrek/g1lbertJB.tar")
|
JBFiles+=("$jelbrek/g1lbertJB.tar")
|
||||||
fi
|
fi
|
||||||
|
if [[ $device_target_tethered == 1 && $device_type != "iPad2"* ]]; then
|
||||||
|
case $device_target_vers in
|
||||||
|
4.2.1 ) :;;
|
||||||
|
5* | 4.[32]* ) JBFiles+=("$jelbrek/g1lbertJB/install.tar");;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
ExtraArgs+=" -S 30" # system partition add
|
ExtraArgs+=" -S 30" # system partition add
|
||||||
if [[ $ipsw_openssh == 1 ]]; then
|
if [[ $ipsw_openssh == 1 ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user