Home Forum Blog Private Support Courses Archive
Our courses are now on YouTube! Start Watching
Hovatek Forum OPERATING SYSTEMS Android [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

[Tutorial] How to create a custom signed vbmeta.img for Unisoc using AVBtool

Pages (18): Previous 1 … 10 11 12 13 14 … 18 Next
hovatek
hovatek
hovatek
Administrator
51,024
15-05-2022, 02:08 PM



(12-05-2022, 09:01 PM)Skorpion06 I have fastboot disabled on my device, also I have some verity_dev_keys.x509 that should be a certificate for verity, can I use it to sign vbmeta and boot and flash them through spd research tool?

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

Learn MediaTek, Unisoc / Spreadtrum (SPD) and Qualcomm Software Repairs @ https://www.hovatek.com/training
Note!
We have a reply schedule for Forum Support. Please try Private Support if you can't wait.
achakian0000
achakian0000
achakian0000
Enthusiastic Member
6
25-07-2022, 07:00 PM
Quote:.

will also work on mtk processor?
This post was last modified: 27-07-2022, 08:48 AM by hovatek.
hovatek
hovatek
hovatek
Administrator
51,024
27-07-2022, 08:51 AM
(25-07-2022, 07:00 PM)achakian0000 will also work on mtk processor?

Not directly but yes, like in the Doogee S88 Pro @ https://www.hovatek.com/forum/thread-35862.html
This post was last modified: 27-07-2022, 08:52 AM by hovatek.

Learn MediaTek, Unisoc / Spreadtrum (SPD) and Qualcomm Software Repairs @ https://www.hovatek.com/training
Note!
We have a reply schedule for Forum Support. Please try Private Support if you can't wait.
Kelexine
Kelexine
Kelexine
Senior Member
152
13-01-2023, 12:58 AM
root@localhost ~/android-tools# ls
avbtool.py keys rsa4096_vbmeta.pem vbmeta-sign.img
dextter.pem keys.zip vbmeta-sign-custom.img vbmeta_pad.py
root@localhost ~/android-tools# python vbmeta_pad.py
Traceback (most recent call last):
File "/root/android-tools/vbmeta_pad.py", line 4, in <module>
f = open("vbmeta_custom.img", "rb")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'vbmeta_custom.img'

This the error am getting if I run python vbmeta_pad.py
Gargoyle
Gargoyle
Gargoyle
Contributor
587
13-01-2023, 03:00 PM

Mediatek Course Mediatek Course


(13-01-2023, 12:58 AM)Kelexine FileNotFoundError: [Errno 2] No such file or directory: 'vbmeta_custom.img'

an obvious mistake at first glance "vbmeta-sign-custom.img"
rename vbmeta-sign-custom.img to vbmeta_custom.img

or edit vbmeta_pad.py lines
f = open("vbmeta_custom.img", "rb") to f = open("vbmeta-sign-custom.img", "rb")
f = open("vbmeta_custom.img", "wb") to f = open("vbmeta-sign-custom.img", "wb")
This post was last modified: 13-01-2023, 09:37 PM by Gargoyle.
Kelexine
Kelexine
Kelexine
Senior Member
152
15-01-2023, 12:01 PM
(13-01-2023, 03:00 PM)Gargoyle
(13-01-2023, 12:58 AM)Kelexine FileNotFoundError: [Errno 2] No such file or directory: 'vbmeta_custom.img'

an obvious mistake at first glance "vbmeta-sign-custom.img"
rename vbmeta-sign-custom.img to vbmeta_custom.img

or edit vbmeta_pad.py lines
f = open("vbmeta_custom.img", "rb") to f = open("vbmeta-sign-custom.img", "rb")
f = open("vbmeta_custom.img", "wb") to f = open("vbmeta-sign-custom.img", "wb")

Ok i already did that in the python script
Kelexine
Kelexine
Kelexine
Senior Member
152
16-01-2023, 05:44 AM
(13-01-2023, 03:00 PM)Gargoyle
(13-01-2023, 12:58 AM)Kelexine FileNotFoundError: [Errno 2] No such file or directory: 'vbmeta_custom.img'

an obvious mistake at first glance "vbmeta-sign-custom.img"
rename vbmeta-sign-custom.img to vbmeta_custom.img

or edit vbmeta_pad.py lines
f = open("vbmeta_custom.img", "rb") to f = open("vbmeta-sign-custom.img", "rb")
f = open("vbmeta_custom.img", "wb") to f = open("vbmeta-sign-custom.img", "wb")

Thanks but I already did that, I just edited the python script to match my vbmeta file
jimmygzzmtz
jimmygzzmtz
jimmygzzmtz
Newbie
1
21-02-2023, 10:57 PM
Is it necessary to go through this on a Unisoc device if I just want to flash a GSI using fastboot? I was able to unlock the bootloader, but I am unsure if this part is necessary for GSIs too, or only custom roms / recovery.
ardv
ardv
ardv
Enthusiastic Member
5
26-02-2023, 05:18 PM
i have a phone which named vphne, when i used cpuZ it tells that it is mobell s51 with sp7731e_1h10 spreadtrum board and android 8.1.
i managed to unlock the bootloader with the identifier tooken from your tutorial with linux mint.

and when i flash a custom recovery and try to enter it i get:
"INFO: LOCK FLAG IS : UNLOCK!!!
WARNING: LOCK FLAG IS : UNLOCK, SKIP VERIFY!!!"

i found this firmware in the internet: Lava_Iris_51_SP7731E_S129_INT_1GB_8GB_171019_8.1.0_MIRA_(by_firmwarefile.com).zip
in the file info they say: Product Board : cm05_64v8 - Board Platform : sp7731e
but it just have vbmeta.img and it does not have vbmeta-sign.img? so how to know if my phone uses the vbmeta with rsa4096 like in your ghid or uses rsa2048?
i used AVBtool for python 3 - the old one for pythen 2.6 did not work with my since i have python 3 on my linux mint


and i have another question:
i have found this file: SP7731E__10__GEN_LA_A_L210_D_V2.1__QP1A.190711.020__sp7731e_1h10(1)
in the file info they say: ZTE Blade L210 - Product Board : sp7731e_1h10 - Board Platform : sp7731e
so is it safe to flash this version from research tool to my phone? this will not cause hard brick? or there are some things i need to know before trying to flash it?
Kelexine
Kelexine
Kelexine
Senior Member
152
27-02-2023, 02:10 AM
Yeah, as far as the firmwares contains -sign.img or -sign.bin
Pages (18): Previous 1 … 10 11 12 13 14 … 18 Next
Users browsing this thread:
 1 Guest(s)
Users browsing this thread:
 1 Guest(s)