From 7cc24d3ca356fd891edab90e193461af470cf2a0 Mon Sep 17 00:00:00 2001 From: edwin170 Date: Sat, 4 May 2024 10:18:12 -0400 Subject: [PATCH] a8/a8x important, and thanks @Lrdsnow for sleep --- README.md | 2 ++ downr1n.sh | 37 ++++++++++++++----------------------- 2 files changed, 16 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 9c45de2..48a40a3 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,8 @@ The various command-line options are as follows: # 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. - on ios 13 the touch id doesn't work so the home button on iphone 7 will not work sadly. diff --git a/downr1n.sh b/downr1n.sh index c44a90d..10db75a 100755 --- a/downr1n.sh +++ b/downr1n.sh @@ -121,12 +121,6 @@ parse_opt() { --dont-restore) dontRestore=1 ;; - --localboot) - local=1 - ;; - --fsboot) - fsboot=1 - ;; --dfuhelper) dfuhelper=1 ;; @@ -453,16 +447,18 @@ _boot() { if [[ ! "$cpid" == *"0x801"* ]]; then "$dir"/irecovery -f "boot/${deviceid}/iBSS.img4" - sleep 1 + if [ "$cpid" = '0x7000' ] || [ "$cpid" = '0x7001' ]; then + sleep 10 + else + sleep 2 + fi fi "$dir"/irecovery -f "boot/${deviceid}/iBEC.img4" - sleep 3 - - if [ "$local" = "1" ]; then - echo "booting ..." - echo "your devicd should be booting into the ios using localboot:)" - exit; + if [ "$cpid" = '0x7000' ] || [ "$cpid" = '0x7001' ]; then + sleep 10 + else + sleep 4 fi if [[ "$cpid" == *"0x801"* ]]; then @@ -675,6 +671,10 @@ echo "Detected cpid, your cpid is $cpid" echo "Detected model, your model is $model" 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 echo "[*] Running DFU helper" _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 '' |cut -d\> -f2 |cut -d\< -f1 | sed 's/Firmware[/]all_flash[/]//')" work/iBEC.dec >/dev/null 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 if [ "$keyServer" = "1" ]; then