[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
(24-11-2021, 04:38 AM)lolvatveo after doing all the steps, is the modified vbmeta version signed? don't know why stuck at logo
(30-11-2021, 09:16 PM)Skorpion06 command on step 6 gives this: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
Traceback (most recent call last):
File "avbtool", line 4154, in <module>
tool.run(sys.argv)
File "avbtool", line 4004, in run
args.func(args)
File "avbtool", line 4032, in make_vbmeta_image
args.padding_size)
File "avbtool", line 2430, in make_vbmeta_image
append_to_release_string, 0)
File "avbtool", line 2526, in _generate_vbmeta_blob
desc.public_key = open(file_path, 'rb').read()
IOError: [Errno 2] No such file or directory: 'keys/key_l_modem.bin'
What i have to do?
(30-11-2021, 11:42 PM)Skorpion06The error fixes only with vbmeta_pad_10.py (i'm on Android 9 BTW but the phone don't accept the custom image, what i need to do?(30-11-2021, 09:16 PM)Skorpion06 command on step 6 gives this: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
Traceback (most recent call last):
File "avbtool", line 4154, in <module>
tool.run(sys.argv)
File "avbtool", line 4004, in run
args.func(args)
File "avbtool", line 4032, in make_vbmeta_image
args.padding_size)
File "avbtool", line 2430, in make_vbmeta_image
append_to_release_string, 0)
File "avbtool", line 2526, in _generate_vbmeta_blob
desc.public_key = open(file_path, 'rb').read()
IOError: [Errno 2] No such file or directory: 'keys/key_l_modem.bin'
What i have to do?
i have resolved the issue updating the system but now at the last command the vbmeta_sign_custom is stuck at 16kb. Please help, the command does not return errors.
(01-12-2021, 11:47 AM)Skorpion06 The error fixes only with vbmeta_pad_10.py (i'm on Android 9 BTW but the phone don't accept the custom image, what i need to do?
(01-12-2021, 04:24 PM)hovatekDone Here it is:(01-12-2021, 11:47 AM)Skorpion06 The error fixes only with vbmeta_pad_10.py (i'm on Android 9 BTW but the phone don't accept the custom image, what i need to do?
Create a thread for this by clicking Ask Question at the top