Hovatek Forum DEVELOPMENT Android [Please help] Unisoc T610 Magisk problem
Can't login? Please, reset your password.
Hovatek is recruiting! Apply Now


[Please help] Unisoc T610 Magisk problem

[Please help] Unisoc T610 Magisk problem

GddMC
GddMC
GddMC
Newbie
2
08-09-2022, 10:31 PM
#1



Hi there. I want to flash a patched magisk boot.img through SPD Flash Tool. For this, I completely followed this guide: https://www.hovatek.com/forum/thread-32664.html.

(I used this command: python3 avbtool make_vbmeta_image --key rsa4096_vbmeta.pem --algorithm SHA256_RSA4096 --flag 2 --flags 2 --chain_partition boot:1:keys/hovatek.bin --chain_partition dtbo:6:keys/key_dtbo.bin --chain_partition socko:13:keys/key_socko.bin --chain_partition odmko:14:keys/key_odmko.bin --chain_partition vbmeta_system:2:keys/key_vbmeta_system.bin --chain_partition vbmeta_system_ext:3:keys/key_vbmeta_system_ext.bin --chain_partition l_vbmeta_vendor:4:keys/key_vbmeta_vendor.bin --chain_partition vbmeta_product:5:keys/key_vbmeta_product.bin --chain_partition l_modem:7:keys/key_l_modem.bin --chain_partition l_ldsp:8:keys/key_l_ldsp.bin --chain_partition l_gdsp:9:keys/key_l_gdsp.bin --chain_partition pm_sys:10:keys/key_pm_sys.bin --chain_partition l_agdsp:11:keys/key_l_agdsp.bin --chain_partition l_cdsp:12:keys/key_l_cdsp.bin --padding_size 20480 --output vbmeta-sign-custom.img)

I extracted the public keys from the (included in attachments) vbmeta using this guide: https://www.hovatek.com/forum/thread-32667.html. My device has Android 11, but I used the Android 10 padding Python file. I then signed the patched Magisk boot.img (download link (of non-signed version): https://anonfiles.com/k0Nen97byc/boot-magisk_img) using this guide: https://www.hovatek.com/forum/thread-32674.html

Thank you very much in advance for any help!
Attached Files
.img
vbmeta-sign.img
Size: 1 MB / Downloads: 9
Gargoyle
Gargoyle
Gargoyle
Contributor
463
09-09-2022, 07:37 PM
#2
You have an error in the command, no "--flag 2 --flags 2" enter only --flag 0

python avbtool make_vbmeta_image --key rsa4096_vbmeta.pem --algorithm SHA256_RSA4096 --flag 0 --chain_partition boot:1:keys/hovatek.bin --chain_partition dtbo:6:keys/key_dtbo.bin --chain_partition socko:13:keys/key_socko.bin --chain_partition odmko:14:keys/key_odmko.bin --chain_partition vbmeta_system:2:keys/key_vbmeta_system.bin --chain_partition vbmeta_system_ext:3:keys/key_vbmeta_system_ext.bin --chain_partition l_vbmeta_vendor:4:keys/key_vbmeta_vendor.bin --chain_partition vbmeta_product:5:keys/key_vbmeta_product.bin --chain_partition l_modem:7:keys/key_l_modem.bin --chain_partition l_ldsp:8:keys/key_l_ldsp.bin --chain_partition l_gdsp:9:keys/key_l_gdsp.bin --chain_partition pm_sys:10:keys/key_pm_sys.bin --chain_partition l_agdsp:11:keys/key_l_agdsp.bin --chain_partition l_cdsp:12:keys/key_l_cdsp.bin --padding_size 20480 --output vbmeta-sign-custom.img; python vbmeta_pad.py

Edit:
Resolved in private messages.
This post was last modified: 10-09-2022, 01:05 PM by Gargoyle.
GddMC
GddMC
GddMC
Newbie
2
09-09-2022, 08:03 PM
#3
(09-09-2022, 07:37 PM)Gargoyle You have an error in the command, no  "--flag 2 --flags 2" enter only  --flag 0

Or share your stock vbmeta-sign.img, I can't seem to split chain_partition on Unisoc
This was my stock vbmeta-sign.img normally. I will share it again in attachment.
Why should I put "--flag 0"? It says "--flag 2" in the thread. The command executed without issues anyways. 

Is it okay I flash through SPD Flash Tool? Or do I have to unlock bootloader?
Attached Files
.img
vbmeta-sign.img
Size: 1 MB / Downloads: 6
Gargoyle
Gargoyle
Gargoyle
Contributor
463
11-09-2022, 10:53 AM
#4
The stock vbmeta is created with the --flag 0 parameter, see
Header Block: 256 bytes
Authentication Block: 576 bytes
Auxiliary Block: 16960 bytes
Algorithm: SHA256_RSA4096
Rollback Index: 0
Flags: 0

not all devices work with --flag 2.

If you have a locked bootloader and flash vbmeta with --flag 2, I think it won't boot, maybe it won't even work on an unlocked bootloader and you probably had to use the fastboot --disable-verity --disable-verification parameter, this can only be done with an unlocked bootloader.

Flash through SPD Flash Tool is okay, it's a tool designed for that.

You can unlock the bootloader at any time, it's up to you what suits you better.
Users browsing this thread:
 1 Guest(s)
Users browsing this thread:
 1 Guest(s)
YtWhTl
live chat
whatsapp telegram instagram