a8/a8x important, and thanks @Lrdsnow for sleep

This commit is contained in:
edwin170 2024-05-04 10:18:12 -04:00
parent d71fddc7d2
commit 7cc24d3ca3
2 changed files with 16 additions and 23 deletions

View file

@ -41,6 +41,8 @@ The various command-line options are as follows:
# importants things # importants things
- A8/A8x devices downr1n is not recommended please instead use dualra1n with --downgrade option
- downgrading ios 16 to 14 or another version, you will have to bypass the setup somehow. good luck on it. - downgrading ios 16 to 14 or another version, you will have to bypass the setup somehow. good luck on it.
- on ios 13 the touch id doesn't work so the home button on iphone 7 will not work sadly. - on ios 13 the touch id doesn't work so the home button on iphone 7 will not work sadly.

View file

@ -121,12 +121,6 @@ parse_opt() {
--dont-restore) --dont-restore)
dontRestore=1 dontRestore=1
;; ;;
--localboot)
local=1
;;
--fsboot)
fsboot=1
;;
--dfuhelper) --dfuhelper)
dfuhelper=1 dfuhelper=1
;; ;;
@ -453,16 +447,18 @@ _boot() {
if [[ ! "$cpid" == *"0x801"* ]]; then if [[ ! "$cpid" == *"0x801"* ]]; then
"$dir"/irecovery -f "boot/${deviceid}/iBSS.img4" "$dir"/irecovery -f "boot/${deviceid}/iBSS.img4"
sleep 1 if [ "$cpid" = '0x7000' ] || [ "$cpid" = '0x7001' ]; then
sleep 10
else
sleep 2
fi
fi fi
"$dir"/irecovery -f "boot/${deviceid}/iBEC.img4" "$dir"/irecovery -f "boot/${deviceid}/iBEC.img4"
sleep 3 if [ "$cpid" = '0x7000' ] || [ "$cpid" = '0x7001' ]; then
sleep 10
if [ "$local" = "1" ]; then else
echo "booting ..." sleep 4
echo "your devicd should be booting into the ios using localboot:)"
exit;
fi fi
if [[ "$cpid" == *"0x801"* ]]; then if [[ "$cpid" == *"0x801"* ]]; then
@ -675,6 +671,10 @@ echo "Detected cpid, your cpid is $cpid"
echo "Detected model, your model is $model" echo "Detected model, your model is $model"
echo "Detected deviceid, your deviceid is $deviceid" echo "Detected deviceid, your deviceid is $deviceid"
if [ "$cpid" = '0x7000' ] || [ "$cpid" = '0x7001' ]; then
echo "[-] Please downr1n is not recommended on A8/A8X so instead try dualra1n with --downgrade option if you want a downgrade"
fi
if [ "$dfuhelper" = "1" ]; then if [ "$dfuhelper" = "1" ]; then
echo "[*] Running DFU helper" echo "[*] Running DFU helper"
_dfuhelper "$cpid" _dfuhelper "$cpid"
@ -1146,17 +1146,8 @@ if [ true ]; then
"$dir"/gaster decrypt work/"$(awk "/""${model}""/{x=1}x&&/iBoot[.]/{print;exit}" work/BuildManifest.plist | grep '<string>' |cut -d\> -f2 |cut -d\< -f1 | sed 's/Firmware[/]all_flash[/]//')" work/iBEC.dec >/dev/null "$dir"/gaster decrypt work/"$(awk "/""${model}""/{x=1}x&&/iBoot[.]/{print;exit}" work/BuildManifest.plist | grep '<string>' |cut -d\> -f2 |cut -d\< -f1 | sed 's/Firmware[/]all_flash[/]//')" work/iBEC.dec >/dev/null
sleep 1 sleep 1
if [ "$local" = "1" ]; then
echo "[*] Applying patches to the iboot"
if [ "$os" = 'Linux' ]; then
sed -i 's/\/\kernelcache/\/\kernelcachd/g' work/iBEC.dec
else
LC_ALL=C sed -i.bak -e 's/s\/\kernelcache/s\/\kernelcachd/g' work/iBEC.dec
fi
fi
"$dir"/iBoot64Patcher work/iBEC.dec work/iBEC.patched -b "-v wdt=-1 `if [ "$cpid" = '0x8960' ] || [ "$cpid" = '0x7000' ] || [ "$cpid" = '0x7001' ]; then echo "-restore"; fi`" -n "$(if [ "$local" = "1" ]; then echo "-l"; fi)" >/dev/null "$dir"/iBoot64Patcher work/iBEC.dec work/iBEC.patched -b "-v wdt=-1 `if [ "$cpid" = '0x8960' ] || [ "$cpid" = '0x7000' ] || [ "$cpid" = '0x7001' ]; then echo "-restore"; fi`" -n >/dev/null
"$dir"/img4 -i work/iBEC.patched -o work/iBEC.img4 -M work/IM4M -A -T "$(if [[ "$cpid" == *"0x801"* ]]; then echo "ibss"; else echo "ibec"; fi)" >/dev/null "$dir"/img4 -i work/iBEC.patched -o work/iBEC.img4 -M work/IM4M -A -T "$(if [[ "$cpid" == *"0x801"* ]]; then echo "ibss"; else echo "ibec"; fi)" >/dev/null
if [ "$keyServer" = "1" ]; then if [ "$keyServer" = "1" ]; then