Here are some more detailed instructions on how to root the Leaf 2. I'm not sure if it's allowed to share the patched boot image on here?
1. Test if ADB and Fastboot are working, if the commands below don't work, install ADB and the
Google USB drivers
Code:
PS C:\00 - Standalone\ADB> .\adb.exe devices
List of devices attached
1EED4B07 device
PS C:\> adb reboot bootloader
PS C:\> .\fastboot.exe devices
1EED4B07 fastboot
PS C:\> .\fastboot.exe reboot
rebooting...
finished. total time: -0.000s
2. Download
decryptBooxUpdateUPX from Github
3. Right-click DeBooxUpx.py and open it in a text editor (I use VS Code), add the following to 'boox_strings = {}'
Code:
'Leaf2': {
"MODEL": "Leaf2",
"STRING_SETTINGS": "okRZqgfOHft/Y5jHx1N0ECjqrc/Op/nADFj2uL7Jbuxq",
"STRING_UPGRADE": "10Na33u5HfsCVHqjtwLrwACOW+2cz5MSnXUogONCTd9c"
},
4. Open Powershell or CMD and run:
Code:
pip install pycryptodome
5. Download the firmware for your Boox device from Onyx's website. (or from your device)
6. Add the update.upx to the decryptBooxUpdateUPX folder and run the following command in Powershell:
Code:
python DebooxUpx.py Leaf2
7. Extract the payload.bin from the update.zip file.
8. Download Payload_Dumper and extract it (Allow it in Windows Defender or do it in a VM)
9. Put payload.bin in the payload_input and run payload_dumper.exe
10. Move the boot.img from the payload_output folder to the internal storage on your Leaf2
12. In Magisk tap: 'Install' > 'Next' > 'Select and Patch a File' > (Select your boot.img) > 'Let's Go'
13. Once complete, copy the 'magisk_patched-xxxxx_xxxxx.img to your PC
14. In Powershell run:
Code:
adb reboot bootloader
15. Wait a bit and run the following commands (with the correct image name ofcourse):
Code:
PS C:\> adb reboot bootloader
PS C:\> fastboot devices
1EED4B07 fastboot
PS C:\> fastboot boot .\magisk_patched-25200_r3xw3.img
downloading 'boot.img'...
OKAY [ 2.130s]
booting...
OKAY [ 0.143s]
finished. total time: 2.274s
16. If the device successfully boots you can install the patched boot image from magisk
17. In Magisk tap: 'Install' > 'Next' > 'Direct Install (Recommended) > 'Let's Go'