Hovatek Forum DEVELOPMENT Android [Tutorial] How to create a custom signed vbmeta.img for Unisoc using AVBtool
Try our Online TWRP Builder..its free!
Can't login? Please, reset your password.


[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 (16): Previous 1 2 3 4 516 Next
X3non
X3non
X3non
Recognized Contributor
22,062
11-09-2020, 11:41 AM
#21



(10-09-2020, 02:50 PM)Denny83 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

create a new thread for your device issue by clicking "Ask Question" at the top
in the new thread, also state your device model and it's chipset
This post was last modified: 11-09-2020, 11:44 AM by X3non.
ch3mn3y
ch3mn3y
ch3mn3y
Enthusiastic Member
6
15-09-2020, 09:38 PM
#22
This time I don't think writing question will help me understood where is the problem, as I don't know Python.
I have Python 2.7.18 and OpenSSL 1.1.1G or something like that.

When trying to add DTHB I got this error:
Code:

>python vbmeta-custom.img
  File "vbmeta-custom.img", line 1
SyntaxError: Non-ASCII character '\x91' in file vbmeta-custom.img on line 2, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

Any ideas?
This post was last modified: 15-09-2020, 09:38 PM by ch3mn3y.
X3non
X3non
X3non
Recognized Contributor
22,062
16-09-2020, 11:59 AM
#23
(15-09-2020, 09:38 PM)ch3mn3y ...
Any ideas?

wrong command you used
see step 7 in the OP in page 1 for the right command to add DTHB
ch3mn3y
ch3mn3y
ch3mn3y
Enthusiastic Member
6
17-09-2020, 12:22 PM
#24
(16-09-2020, 11:59 AM)X3non
(15-09-2020, 09:38 PM)ch3mn3y ...
Any ideas?

wrong command you used
see step 7 in the OP in page 1 for the right command to add DTHB
I feel stupid now...
depesh1977
depesh1977
depesh1977
Junior Member
28
29-11-2020, 06:55 PM
#25



I understand that you can't apply patches in tvrp.Any changes will cause the download to fail.This is bad and painful with such protection in vbmeta!Vbmeta is signed as expected.
_Jaqb_
_Jaqb_
_Jaqb_
Junior Member
21
05-12-2020, 11:07 AM
#26
(12-03-2020, 11:51 PM)hovatek ...
Code:

python avbtool make_vbmeta_image --key rsa4096_vbmeta.pem --algorithm SHA256_RSA4096 --flag 2 --chain_partition boot:1:keys/key_boot.bin --chain_partition system:3:keys/key_system.bin --chain_partition vendor:4:keys/key_vendor.bin --chain_partition product:10:keys/key_product.bin --chain_partition dtbo:9:keys/key_dtbo.bin --chain_partition recovery:2:keys/hovatek.bin --chain_partition l_modem:5:keys/key_l_modem.bin --chain_partition l_ldsp:6:keys/key_l_ldsp.bin --chain_partition l_gdsp:7:keys/key_l_gdsp.bin --chain_partition pm_sys:8:keys/key_pm_sys.bin --chain_partition dtb:11:keys/key_dtb.bin --padding_size 16384 --output vbmeta-sign-custom.img

I noticed that the flags in output vbmeta-sign-custom.img code are set to "2" while in stock vbmeta-sign.img to "0". What does it mean?
depesh1977
depesh1977
depesh1977
Junior Member
28
05-12-2020, 07:43 PM
#27
(05-12-2020, 11:07 AM)_Jaqb_
(12-03-2020, 11:51 PM)hovatek
...
Code:


python avbtool make_vbmeta_image --key rsa4096_vbmeta.pem --algorithm SHA256_RSA4096 --flag 2 --chain_partition boot:1:keys/key_boot.bin --chain_partition system:3:keys/key_system.bin --chain_partition vendor:4:keys/key_vendor.bin --chain_partition product:10:keys/key_product.bin --chain_partition dtbo:9:keys/key_dtbo.bin --chain_partition recovery:2:keys/hovatek.bin --chain_partition l_modem:5:keys/key_l_modem.bin --chain_partition l_ldsp:6:keys/key_l_ldsp.bin --chain_partition l_gdsp:7:keys/key_l_gdsp.bin --chain_partition pm_sys:8:keys/key_pm_sys.bin --chain_partition dtb:11:keys/key_dtb.bin --padding_size 16384 --output vbmeta-sign-custom.img



I noticed that the flags in output vbmeta-sign-custom.img code are set to "2" while in stock vbmeta-sign.img to "0". What does it mean?



Написан с BQ-5518G. Работает на Hovatek Mobile
hovatek
hovatek
hovatek
Administrator
49,570
06-12-2020, 04:20 AM
#28
(05-12-2020, 11:07 AM)_Jaqb_ I noticed that the flags in output vbmeta-sign-custom.img code are set to "2" while in stock vbmeta-sign.img to "0". What does it mean?

2 is to disable verity checks while 0 is the default; enable.

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
_Jaqb_
_Jaqb_
_Jaqb_
Junior Member
21
06-12-2020, 12:59 PM
#29
(06-12-2020, 04:20 AM)hovatek
(05-12-2020, 11:07 AM)_Jaqb_ I noticed that the flags in output vbmeta-sign-custom.img code are set to "2" while in stock vbmeta-sign.img to "0". What does it mean?

2 is to disable verity checks while 0 is the default; enable.

thx
s_agh
s_agh
s_agh
Enthusiastic Member
10
19-12-2020, 12:30 AM
#30



dos not work on galaxy note 10 plus
Pages (16): Previous 1 2 3 4 516 Next
Users browsing this thread:
 1 Guest(s)
Users browsing this thread:
 1 Guest(s)
YtWhTl
live chat
whatsapp telegram instagram