Hovatek Forum DEVELOPMENT Android [Tutorial] How to create a custom signed vbmeta.img for Unisoc using AVBtool
Can't login? Please, reset your password.
Hovatek is recruiting! Apply Now


[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 5 616 Next
hovatek
hovatek
hovatek
Administrator
49,570
19-12-2020, 05:12 PM
#31



(19-12-2020, 12:30 AM)s_agh dos not work on  galaxy note 10 plus

The guide says "Unisoc"

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
lxssss
lxssss
lxssss
Newbie
2
06-02-2021, 12:46 PM
#32
Hello, excuse me
Model: sprd ZP5_101P
CPU: Unisoc UD710

I want to root this device and used the tutorial: https://www.hovatek.com/forum/thread-32678.html
I unlocked the device according to the tutorial: https://www.hovatek.com/forum/thread-32287.html and it can be opened normally,I think success。
But according to the tutorial: https://www.hovatek.com/forum/thread-32664.html, I used rsa4096_vbmeta.pem to generate vbmeta-sign-custom.img

fastboot flash vbmeta vbmeta-sign-custom.img

target didn't report max-download-size

sending 'vbmeta' (1024 KB)...

OKAY [ 0.033s]

writing 'vbmeta'...

OKAY [ 0.192s]

finished. total time: 0.224s


The device restarts, but I cannot turn on my device anymore.
This post was last modified: 06-02-2021, 12:49 PM by lxssss.
Attached Files
.jpg
IMG_20210203_095944.jpg
Size: 29.34 KB / Downloads: 33
X3non
X3non
X3non
Recognized Contributor
22,062
06-02-2021, 05:49 PM
#33
(06-02-2021, 12:46 PM)lxssss ...

replied to @ https://www.hovatek.com/forum/thread-38018.html
This post was last modified: 06-02-2021, 05:57 PM by X3non.
getoverwith
getoverwith
getoverwith
Enthusiastic Member
6
14-02-2021, 06:39 PM
#34
(10-09-2020, 02:50 PM)Denny83
(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
changing flag from 2 to 0 will do the trick. i.e my origianal vbmeta-sign_stock gave flag 0 applying code: python2 avbtool info_image --image vbmeta-sign_stock.img (python 2 because in ubuntu). So i change flag in the the hovatek code forcreating custom vbmeta. With flag 2 my custom vbmeta size was 1.1 GB)))
getoverwith
getoverwith
getoverwith
Enthusiastic Member
6
14-02-2021, 06:56 PM
#35



creating custom vbmeta with the code: python2 avbtool make_vbmeta_image ....etc.
flag should be taken from the original vbmeta image, in my case it was flag 0 instead of flag 2.
code: python2 avbtool info_image --image vbmeta-sign_stock.img (python2 because in ubuntu)
otherwise as with my padding size 1112819780, my custom vbmeta image will have size of 1.1 GB
X3non
X3non
X3non
Recognized Contributor
22,062
15-02-2021, 09:39 AM
#36
(14-02-2021, 06:56 PM)getoverwith creating custom vbmeta with the code: python2 avbtool make_vbmeta_image ....etc.
flag should be taken from the original vbmeta image, in my case it was flag 0 instead of flag 2.
code: python2 avbtool info_image --image vbmeta-sign_stock.img (python2 because in ubuntu)
otherwise as with my padding size 1112819780, my custom vbmeta image will have size of 1.1 GB

see https://www.hovatek.com/forum/thread-326...#pid194145 to get the right padding size
Prince2
Prince2
Prince2
Experienced Member
81
05-03-2021, 10:04 AM
#37
did everything but this
Attached Files
.png
Screenshot 2021-03-05 145722.png
Size: 16.13 KB / Downloads: 34
X3non
X3non
X3non
Recognized Contributor
22,062
06-03-2021, 10:54 AM
#38
(05-03-2021, 10:04 AM)Prince2 did everything but this

stick to one thread and stop posting the same issue in multiple threads
per Noman
per Noman
per Noman
Enthusiastic Member
11
12-04-2021, 02:06 PM
#39
Using comand :python3 avbtool extract_public_key --key hovatek.pem --output keys/hovatek.bin
Give me this error

cd@cd:~/Desktop/avbtool$ python3 avbtool extract_public_key --key hovatek.pem --output keys/hovatek.bin
File "avbtool", line 411
b = 2L**32
^
SyntaxError: invalid syntax

Vat a'm I doing wrong?
norrmann035
norrmann035
norrmann035
Junior Member
28
12-04-2021, 05:47 PM
#40



How do I edit this code to fit my vbmeta.img ???

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

My vbmeta.img:
Minimum libavb version: 1.0
Header Block: 256 bytes
Authentication Block: 320 bytes
Auxiliary Block: 3264 bytes
Public key (sha1): cdbb77177f731920bbe0a0f94f84d9038ae0617d
Algorithm: SHA256_RSA2048
Rollback Index: 0
Flags: 0
Rollback Index Location: 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: vbmeta_system
Rollback Index Location: 2
Public key (sha1): fa41159a5d696abdef93176a07d0b0d001263f01
Chain Partition descriptor:
Partition Name: vbmeta_vendor
Rollback Index Location: 4
Public key (sha1): 9577bc6c0772975ecce93c4d8a178662c728dadf
Chain Partition descriptor:
Partition Name: boot
Rollback Index Location: 3
Public key (sha1): 9d808b0995768d0677fccb1efcddb7cf9e153d99
Hash descriptor:
Image Size: 49776 bytes
Hash Algorithm: sha256
Partition Name: dtbo
Salt: 836908ce5dc44be62c8cee40cff79fb14aef98065e181ab6f909dd7fd2f1e89e
Digest: 9e4eb8d861f2c6b3d0a46c1d524470fbd18a4935b3bbcd72b945e2143c587da5
Flags: 0


Is this korrect? not working on the phone...

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/vbmeta_system_key.bin --output vbmeta-custom.img

Or is it:
python avbtool make_vbmeta_image --key rsa4096_vbmeta.pem --algorithm SHA256_RSA4096 --flag 2 --chain_partition recovery:1:keys/key_recovery.bin --chain_partition vbmeta_system:2:keys/key_vbmeta_system.bin --chain_partition vbmeta_vendor:4:keys/key_vbmeta_vendor.bin --chain_partition boot:3:keys/key_boot.bin --padding_size 16384 --output vbmeta-sign-custom.img

?????
This post was last modified: 12-04-2021, 06:01 PM by norrmann035.
Pages (16): Previous 1 2 3 4 5 616 Next
Users browsing this thread:
 2 Guest(s)
Users browsing this thread:
 2 Guest(s)
YtWhTl
live chat
whatsapp telegram instagram