Hovatek Forum DEVELOPMENT Android Help creating custom signed vbmeta
Can't login? Please, reset your password.
Hovatek is recruiting! Apply Now


Help creating custom signed vbmeta

Help creating custom signed vbmeta

guest765
guest765
guest765
Enthusiastic Member
14
08-09-2020, 09:50 AM
#1



Hello,

I am having some trouble creating a custom signed vbmeta file for my Ulefone Note 7 running android 9.

I made one using this terminal command but could not flash it using sp flash tool with error IMAGE_SIGN_HEADER_NOT_FOUND (6045)

Fastboot is not working on my device.

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 info, I'm not sure what argument to use for the partitions that are not chain partitions.

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
X3non
X3non
X3non
Recognized Contributor
22,062
09-09-2020, 08:34 PM
#2
(08-09-2020, 09:50 AM)guest765 ...

to add non chain partitions, use the argument below
Code:

--include_descriptors_from_image path_to_file.img

e.g in your case
--include_descriptors_from_image system.img
--include_descriptors_from_image boot.img
--include_descriptors_from_image dtbo.img

but this error you got in spft, IMAGE_SIGN_HEADER_NOT_FOUND is not related to avb
spft won't flash any unsigned files to the device. if you must flash such files then it'll only be possible through fastboot
you should focus on getting fastboot to work and unlock bootloader before making any attempt to flash custom images as spft will be of not much use here
hovatek
hovatek
hovatek
Administrator
49,570
11-09-2020, 01:21 PM
#3
(08-09-2020, 09:50 AM)guest765
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 command is wrong. You use the rsa key here, not hovatek.pem . Also, many partitions are missing. Read the guide properly.
Why don't you unlock bootloader and flash a blank vbmeta instead. Why are you trying to generate a vbmeta
This post was last modified: 11-09-2020, 01:21 PM by hovatek.

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
guest765
guest765
guest765
Enthusiastic Member
14
11-09-2020, 03:19 PM
#4
You can close this thread, I misunderstood the error code from SP flash tool as Xenon pointed out. Sorry.
Users browsing this thread:
 1 Guest(s)
Users browsing this thread:
 1 Guest(s)
YtWhTl
live chat
whatsapp telegram instagram