Home Forum Blog Private Support Courses
Our courses are now on YouTube! Start Watching
Hovatek Forum OPERATING SYSTEMS Android [Tutorial] How to create a custom signed vbmeta.img for Unisoc using AVBtool

[Tutorial] How to create a custom signed vbmeta.img for Unisoc using AVBtool

[Tutorial] How to create a custom signed vbmeta.img for Unisoc using AVBtool

Pages (18): Previous 1 2 3 4 5 18 Next
hovatek
hovatek
hovatek
Administrator
50,964
20-08-2020, 09:36 AM
#11



(19-08-2020, 04:48 PM)akramkhan @X3non
I tried to flash magisk patched img via fastboot and it was successful but unfortunately i am getting bootloop and worst is that i can't get into fastboot mode unless i flash stock rom via aftersale software my device is Tecno Pouvior 4 Pro, please advise. thanks

Create a new thread for your device issue by clicking "Ask Question" at the top
This post was last modified: 25-08-2020, 01:56 PM by hovatek.

Learn MediaTek, Unisoc / Spreadtrum (SPD) and Qualcomm Software Repairs @ https://www.hovatek.com/training
Note!
We have a reply schedule for Forum Support. Please try Private Support if you can't wait.
guest765
guest765
guest765
Enthusiastic Member
14
06-09-2020, 06:43 PM
#12
Hi, my vbmeta-sign file does not have 'DHTB' anywhere, how can I work out the padding size?
Attached Files
.img
vbmeta-sign.img
Size: 4.29 KB / Downloads: 106
hovatek
hovatek
hovatek
Administrator
50,964
07-09-2020, 01:10 PM
#13
(06-09-2020, 06:43 PM)guest765 Hi, my vbmeta-sign file does not have 'DHTB' anywhere...

if this is the case, then you won't need padding size
you can do away with the --padding_size ***** argument

Learn MediaTek, Unisoc / Spreadtrum (SPD) and Qualcomm Software Repairs @ https://www.hovatek.com/training
Note!
We have a reply schedule for Forum Support. Please try Private Support if you can't wait.
Denny83
Denny83
Denny83
Enthusiastic Member
6
07-09-2020, 04:54 PM
#14
(12-03-2020, 11:51 PM)hovatek ...
error screenshot attached
This post was last modified: 08-09-2020, 09:11 AM by X3non. Edit Reason: removed OP
Attached Files
.png
aaa_error.PNG
Size: 5.16 KB / Downloads: 164
guest765
guest765
guest765
Enthusiastic Member
14
07-09-2020, 05:26 PM
#15

Mediatek Course Mediatek Course


(07-09-2020, 01:10 PM)X3non you can do away with the --padding_size ***** argument
Thanks.

I'm not sure if I used the correct terminal command for my vbmeta file. I could not flash it with sp flash tool. 

This is the terminal command I used

Code:

python avbtool make_vbmeta_image --key hovatek.pem --algorithm SHA256_RSA2048 --flag 2 --chain_partition recovery:1:keys/hovatek.bin --chain_partition system:2:keys/system_key.bin --output vbmeta-custom.img
This is the vbmeta image

Code:

Minimum libavb version:   1.0 Header Block:             256 bytes Authentication Block:     320 bytes Auxiliary Block:          2432 bytes Algorithm:                SHA256_RSA2048 Rollback Index:           0 Flags:                    0 Release String:           'avbtool 1.1.0' Descriptors:     Chain Partition descriptor:       Partition Name:          recovery       Rollback Index Location: 1       Public key (sha1):       0aa0987116fc792f36bc909b0a4d530413f02a54     Chain Partition descriptor:       Partition Name:          system       Rollback Index Location: 2       Public key (sha1):       fa41159a5d696abdef93176a07d0b0d001263f01     Hashtree descriptor:       Version of dm-verity:  1       Image Size:            299536384 bytes       Tree Offset:           299536384       Tree Size:             2367488 bytes       Data Block Size:       4096 bytes       Hash Block Size:       4096 bytes       FEC num roots:         0       FEC offset:            0       FEC size:              0 bytes       Hash Algorithm:        sha1       Partition Name:        vendor       Salt:                  a8e93fa28d41067338c5bee0665a377ff148c048fc64fa5674373324a5a44907       Root Digest:           3f2acb5619b3cfa2feeb972ca8df5670bc3f8876       Flags:                 0     Hash descriptor:       Image Size:            32480 bytes       Hash Algorithm:        sha256       Partition Name:        dtbo       Salt:                  a8e93fa28d41067338c5bee0665a377ff148c048fc64fa5674373324a5a44907       Digest:                c0783c1edff92bf2e9af9ce370b930c245a5c60a047597c7d5a0dbf832943258       Flags:                 0     Hash descriptor:       Image Size:            6729728 bytes       Hash Algorithm:        sha256       Partition Name:        boot       Salt:                  a8e93fa28d41067338c5bee0665a377ff148c048fc64fa5674373324a5a44907       Digest:                1c0fc132d5903f7a3722ba338438bb5121ed26486789005505a4c40f608c8e55       Flags:                 0
I'm not sure what command to use for the partitions that are not chain partitions.
TIA
hovatek
hovatek
hovatek
Administrator
50,964
08-09-2020, 09:13 AM
#16
(07-09-2020, 04:54 PM)Denny83 ...
error screenshot attached

use python 2.7.x ; see the requirements section

Learn MediaTek, Unisoc / Spreadtrum (SPD) and Qualcomm Software Repairs @ https://www.hovatek.com/training
Note!
We have a reply schedule for Forum Support. Please try Private Support if you can't wait.
hovatek
hovatek
hovatek
Administrator
50,964
08-09-2020, 09:17 AM
#17
(07-09-2020, 05:26 PM)guest765 ...

create a new thread for your device issue by clicking "Ask Question" at the top
in the new thread, also state your device model

Learn MediaTek, Unisoc / Spreadtrum (SPD) and Qualcomm Software Repairs @ https://www.hovatek.com/training
Note!
We have a reply schedule for Forum Support. Please try Private Support if you can't wait.
Denny83
Denny83
Denny83
Enthusiastic Member
6
08-09-2020, 10:52 AM
#18
(08-09-2020, 09:13 AM)Thanks, solvednow i want to flash a magisk patched boot image, how can I sign this image with key hovatek.bin? i didn't find link to this argument in your postX3non
(07-09-2020, 04:54 PM)Denny83 ...
error screenshot attached

use python 2.7.x ; see the requirements section
hovatek
hovatek
hovatek
Administrator
50,964
09-09-2020, 09:28 AM
#19
(08-09-2020, 10:52 AM)Denny83 Thanks, solvednow i want to flash a magisk patched boot image, how can I sign this image...

see https://www.hovatek.com/forum/thread-32674.html

Learn MediaTek, Unisoc / Spreadtrum (SPD) and Qualcomm Software Repairs @ https://www.hovatek.com/training
Note!
We have a reply schedule for Forum Support. Please try Private Support if you can't wait.
Denny83
Denny83
Denny83
Enthusiastic Member
6
10-09-2020, 02:50 PM
#20
(09-09-2020, 09:28 AM)X3non
(08-09-2020, 10:52 AM)Denny83 Thanks, solvednow i want to flash a magisk patched boot image, how can I sign this image...

see https://www.hovatek.com/forum/thread-32674.html
I'm managing with your tutorials to create my own vbmeta to flash a boot image...some questions:
1 if I unlock bootloader like you show in this post https://www.hovatek.com/forum/thread-32287.html - then i can sign vbmeta with the .pem key used to unlock bootloader?
2 I have a vbmeta image as in attached file vbmeta_info.txt; is it correct to make my vbmeta to run this command: python avbtool.py make_vbmeta_image --key denny2048.pem --algorithm SHA256_RSA2048 --flag 2 --chain_partition recovery:1:keys/recovery.bin --chain_partition vbmeta_sysstem:2:keys/vbmeta_system.bin --chain_partition vbmeta_vendor:4:keys/vbmeta_vendor.bin --chain_partition boot:3:keys/boot.bin --padding_size 12288 --output vbmeta-sign-custom.img
3 my vbmeta is    Image Size:  46976 bytes  ---how can i obtain vbmeta image with this size?
thanks for reply
Attached Files
.txt
vbmeta info.txt
Size: 1.48 KB / Downloads: 129
Pages (18): Previous 1 2 3 4 5 18 Next
Users browsing this thread:
 1 Guest(s)
Users browsing this thread:
 1 Guest(s)
WhTlYt