View Single Post
Old 04-30-2023, 09:56 AM   #111
denisuu
Zealot
denisuu has learned how to buy an e-book online
 
denisuu's Avatar
 
Posts: 136
Karma: 98
Join Date: Dec 2018
Device: Onyx Leaf 2 (White)
There's a new boot image in the last update for the Leaf2 (2023-04-20_11-32_3.3.2_9916cdce0). Here are the updated instructions to root the Leaf2.

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. Open Powershell or CMD and run:
Code:
pip install pycryptodome
4. Download the update from the Boox website or from your device.

5. Add the update.upx to the decryptBooxUpdateUPX folder and run the following command in Powershell:
Code:
python DebooxUpx.py Leaf2
6. Extract the payload.bin from the update.zip file.
7. Download Payload Dumper GUI
8. Extract the payload.bin
9. Move the extracted boot.img to the internal storage on your Leaf2
10. In Magisk tap: 'Install' > 'Next' > 'Select and Patch a File' > (Select your boot.img) > 'Let's Go'
11. Once complete, copy the 'magisk_patched-xxxxx_xxxxx.img to your PC

12. In Powershell run:
Code:
adb reboot bootloader
13. 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-26100_P0gYT.img
downloading 'boot.img'...
OKAY [  2.130s]
booting...
OKAY [  0.143s]
finished. total time: 2.274s
14. If the device successfully boots you can install the patched boot image from magisk
15. In Magisk tap: 'Install' > 'Next' > 'Direct Install (Recommended) > 'Let's Go'

Last edited by denisuu; 04-30-2023 at 10:13 AM.
denisuu is offline   Reply With Quote