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 18 9 10 11 1216 Next
xerxes
xerxes
xerxes
Senior Member
8,355
08-11-2021, 02:25 PM
#91



Hi there,

I'm trying to root my Alcatel 1s 2019 5024D for about a month now and no luck!

I created a vbmeta_custom.img signed with extracted keys and flashed it successfully. After flashing vbmeta_custom.img I can not flash boot, recovery or system. After flashing vbmeta_custom.img the phone won't boot into bootloader, I can only boot the system. I have to flash vbmeta-sign.img from stock ROM to fix the not working bootloader.

I did everything people told me but nothing seems to work on this device. Can anyone please help me out here? I'm doing something wrong or did something not. Is it possible to root this device at all?

Do I need to sign boot.img, recovery.img and system.img too and how do I do that? I patched boot.img and recovery and I get an error saying: file size smaller.

Regards.
xerxes
xerxes
xerxes
Senior Member
8,355
09-11-2021, 02:18 PM
#92
Thank you guys so much! I finally rooted my phone. Here is how to unlock and root UniSoc phones and flash any android version.
This post was last modified: 10-11-2021, 05:20 PM by hovatek.
lolvatveo
lolvatveo
lolvatveo
Senior Member
146
24-11-2021, 04:38 AM
#93
after doing all the steps, is the modified vbmeta version signed? don't know why stuck at logo
This post was last modified: 24-11-2021, 06:38 AM by lolvatveo.
hovatek
hovatek
hovatek
Administrator
49,570
25-11-2021, 07:27 AM
#94
(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

Create a thread for this by clicking Ask Question at the top

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
Skorpion06
Skorpion06
Skorpion06
Junior Member
37
30-11-2021, 09:16 PM
#95



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?
This post was last modified: 30-11-2021, 09:17 PM by Skorpion06.
Skorpion06
Skorpion06
Skorpion06
Junior Member
37
30-11-2021, 11:42 PM
#96
(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.
This post was last modified: 30-11-2021, 11:51 PM by Skorpion06.
Skorpion06
Skorpion06
Skorpion06
Junior Member
37
01-12-2021, 11:47 AM
#97
(30-11-2021, 11:42 PM)Skorpion06
(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.
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?
hovatek
hovatek
hovatek
Administrator
49,570
01-12-2021, 04:24 PM
#98
(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

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
Skorpion06
Skorpion06
Skorpion06
Junior Member
37
01-12-2021, 08:34 PM
#99
(01-12-2021, 04:24 PM)hovatek
(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
Done Here it is:
https://www.hovatek.com/forum/thread-41016.html Thank You for your time.
07-12-2021, 06:51 PM



Hello! Followed all the steps outlined in the "How to create a custom signed vbmeta.img for Unisoc using AVBtool" manual. Got vbmeta-sign-custom.img. But when I try to flash it via fastboot, I get a FAILED error (remote: Write img fail!). The bootloader is unlocked! I entered the following command:
c: \ UnlockBootloaderWin> fastboot flash vbmeta vbmeta-sign-custom.img
target didn't report max-download-size
Sending 'vbmeta' (1024 KB) ...
OKAY [0.031s]
Writing 'vbmeta' ...
FAILED (remote: Write img fail!)
Finished. Total time: 0.266s
Tell me how to fix it?
Pages (16): Previous 18 9 10 11 1216 Next
Users browsing this thread:
 1 Guest(s)
Users browsing this thread:
 1 Guest(s)
YtWhTl
live chat
whatsapp telegram instagram