View Single Post
Old 11-25-2023, 02:57 PM   #8
parkaymang
Member
parkaymang began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Nov 2023
Device: Boox Page
Quote:
Originally Posted by Renate View Post
The problem with updates is that at any time you can only get a link for the latest.
That's why it's helpful when you see an update to post the link somewhere.
The link is forever, but the info is only available for arbitrary periods of time.

The basic problem is extracting the boot image so that you can Magisk it.
If you have a Firehose loader, you can pull it directly.
If you don't you have to wait until an update appears so that you can extract the boot image.

Have you got EDL working? It's probably the qualcomm/factory/sdm662 one.

If you have EDL working and are concerned that you might have to rollback, you can dump the whole flash.
OTOH, it's probably better to just fix what's wrong with the new update.
I think my post #4 in this thread got delayed because it needed "moderator approval".
But in it i installed the linux EDL and got the output about the loader. It does seem like its sdm662.

Could i just use these instructions to pull the boot image, patch with magisk and flash on my current version?

Code:
 EDL mode
cd ..
adb reboot edl # reboot to edl
# ./edl/edl --loader=Qualcomm_662_loader.elf &&\
./edl/edl --loader=./edl/Loaders/qualcomm/factory/sdm662/0014d0e100000000_d40eee56f3194665_FHPRG.bin &&\
    ./edl/edl r boot_a boot_a &&\
    ./edl/edl reset # use EDL loader, pull boot_a and reset 

t=45; echo "> waiting ${t}s for reboot" && sleep $t
adb push boot_a /sdcard/Download/
read -erp '> please install via Magisk and press <Return> when finished..'
patchedfile=$(adb shell 'ls -1 /sdcard/Download/' | tail -1 | grep patched)
adb pull /sdcard/Download/$patchedfile
adb reboot bootloader
t=15; echo "waiting ${t}s for bootloader" && sleep $t

read -erp '> flash (1); boot only (2): ' prompt
case $prompt in
    1) fastboot flash boot $patchedfile ;;
    2) fastboot boot $patchedfile ;;
    *) echo "no valid option; exiting, but remaining in fastboot mode. You may try 'fastboot flash boot ${patchedfile}' for flashing or 'fastboot boot ${patchedfile}' for testing yourself." && exit 1
esac
echo "> booting $patchedfile"
cd $_OLDDIR
echo "> all done; I hope it worked : )"
parkaymang is offline   Reply With Quote