View Single Post
Old 11-18-2023, 11:36 AM   #1
Renate
Wizard
Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.
 
Posts: 2,401
Karma: 10000009
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5
Rooting the Poke5

I bought a Poke5 half a year ago but kept on using my Poke3 because of two (for me) intolerable things that I had fixed on the Poke3 but hadn't on the Poke5. I prefer to root without Magisk if I can, with Magisk if I must.

So, the first step is to update to the latest Poke5 update.
If you use Wifi on your device you could do the normal update.
But since you need the update anyway, download the update to your desktop.
Also, since the listing for this update just disappeared you can't do it directly on the device.
Code:
Model:  Poke5P
Finger: Onyx/Poke5P/Poke5P:11/2023-11-17_05-41_3.5_801526b7d/6777:user/dev-keys
Link:   http://firmware-us-volc.boox.com/9ba08e866b3617763dadb55a2ccda422/update.upx
Size:   1600986982
MD5:    9ba08e866b3617763dadb55a2ccda422
When it's on your desktop:
Code:
adb push update.upx sdcard
am start -a onyx.settings.action.firmware
Say yes to update.
If all you wanted to do was update to 3.5 without rooting, just stop now.

Now you need to get stuff from the update.upx for your own nefarious purposes.
We will be using DeBooxUpx.py.
This has just been updated, so you need to grab DeBooxUpx.py and BooxKeys.csv and put them together somewhere.
You need to have Python installed. It might handle .py files automatically or you might have to say "python DeBooxUpx.py".
Code:
DeBooxUpx.py Poke5P update.upx update.zip
Notice that that says "Poke5P" with a "P" at the end.
This should make update.zip which is the same size, 1600986982

Now you use your normal unzipper (7zip or friends) to get payload.bin:
Code:
7zip x update.zip payload.bin
You should have a file 1,600,983,123.

Now you want to get a few files out of that.
You need https://drive.google.com/file/d/1Qps...lK6v2gJSi/view
You can unzip this and there is only one file you need "payload_dumper.py".
The other file is obsolete and you use the attached file "update_metadata_pb2.py".
The two files must be put in the same directory.
Code:
payload_dumper.py payload.bin
When it's done you should have boot.img and vbmeta.img and some other files.

Now get Magisk from https://github.com/topjohnwu/Magisk, "Latest release" and install it.
Code:
 adb push boot.img sdcard
Run Magisk, select install, select /sdcard/boot.img and let it fly.
Code:
 adb pull sdcard/Download/magisk_patched-12345678.img
(It will be named something random.)

Now we're ready to burn!
Code:
adb reboot fastboot
fastboot devices
fastboot getvar current-slot
This is your slot, remember it, do all the commands with _a or _b using your own letter.
Code:
fastboot --disable-verity --disable-verification flash vbmeta_a vbmeta.img
fastboot flash boot_a magisk_patched-12345678.img
fastboot reboot
That's all there is to it!
Ok, this is intentionally complete so anybody can follow it if things change.
Some civic-minded person can post completed things which will work only if your device is the same.
Attached Files
File Type: py update_metadata_pb2.py (7.9 KB, 75 views)

Last edited by Renate; 11-26-2023 at 05:46 AM.
Renate is offline   Reply With Quote