Home Forum Blog Private Support Courses
Our courses are now on YouTube! Start Watching
Hovatek Forum OPERATING SYSTEMS Android [Tutorial] How to verify the contents of a vbmeta image

[Tutorial] How to verify the contents of a vbmeta image

[Tutorial] How to verify the contents of a vbmeta image

Pages (5): Previous 1 2 3 4 5 Next
RashGift
RashGift
RashGift
Junior Member
27
27-10-2021, 11:34 PM
#31



(12-03-2020, 11:05 PM)X3non ...
This post was last modified: 02-11-2021, 07:54 AM by hovatek.
Attached Files
.png
Capture1.PNG
Size: 20.78 KB / Downloads: 97
hovatek
hovatek
hovatek
Administrator
50,901
02-11-2021, 07:55 AM
#32
(27-10-2021, 11:34 PM)RashGift ...



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.
baget
baget
baget
Newbie
1
03-11-2021, 12:16 AM
#33
If you have errors or problems with python script then You can just use any hex editor to extract your keys downloaded in ResearchTool. Open vbmeta-sign_COMXX.img and you will see name of partitions and keys below. For example:
boot (62 6F 6F 74) 000010.....B0C0
dtbo (64 74 62 6F) 000010.....B0C0
recovery (72 65 63 6F 76 65 72 79) 000010......839E
As you can see all keys begins with 000010. Just need to copy paste in new file any key you want start at 000010 and 1032 byte length.
mustafaa
mustafaa
mustafaa
Newbie
2
18-07-2022, 10:22 AM
#34
Hello my output is not the same as yours what should i do?

Code:

Minimum libavb version:  1.0 Header Block:            256 bytes Authentication Block:    576 bytes Auxiliary Block:          16960 bytes Algorithm:                SHA256_RSA4096 Rollback Index:          0 Flags:                    0 Release String:          'avbtool 1.1.0' Descriptors:     Chain Partition descriptor:       Partition Name:          boot       Rollback Index Location: 1       Public key (sha1):      ea410c1b46cdb2e40e526880ff383f083bd615d5     Chain Partition descriptor:       Partition Name:          dtbo       Rollback Index Location: 6       Public key (sha1):      ea410c1b46cdb2e40e526880ff383f083bd615d5     Chain Partition descriptor:       Partition Name:          socko       Rollback Index Location: 13       Public key (sha1):      bc688cacacd959cfaafbf0549d080d6fc2d50a08     Chain Partition descriptor:       Partition Name:          odmko       Rollback Index Location: 14       Public key (sha1):      425215859f49f31809f16491c2a67e04df79baaf     Chain Partition descriptor:       Partition Name:          vbmeta_system       Rollback Index Location: 2       Public key (sha1):      e2c66ff8a1d787d7bf898711187bff150f691d27     Chain Partition descriptor:       Partition Name:          vbmeta_system_ext       Rollback Index Location: 3       Public key (sha1):      f204332ee2d0bec13ea120b73c5adcf7866bf889     Chain Partition descriptor:       Partition Name:          vbmeta_vendor       Rollback Index Location: 4       Public key (sha1):      9885bf5bf909e5208dfd42abaf51ad9b104ee117     Chain Partition descriptor:       Partition Name:          vbmeta_product       Rollback Index Location: 5       Public key (sha1):      766a95798206f6e980e42414e3cb658617c27daf     Chain Partition descriptor:       Partition Name:          l_modem       Rollback Index Location: 7       Public key (sha1):      e93e7d91ba1a46b81a5f15129b4dc5769bf41f26     Chain Partition descriptor:       Partition Name:          l_ldsp       Rollback Index Location: 8       Public key (sha1):      e93e7d91ba1a46b81a5f15129b4dc5769bf41f26     Chain Partition descriptor:       Partition Name:          l_gdsp       Rollback Index Location: 9       Public key (sha1):      e93e7d91ba1a46b81a5f15129b4dc5769bf41f26     Chain Partition descriptor:       Partition Name:          l_agdsp       Rollback Index Location: 10       Public key (sha1):      e93e7d91ba1a46b81a5f15129b4dc5769bf41f26     Chain Partition descriptor:       Partition Name:          l_cdsp       Rollback Index Location: 11       Public key (sha1):      e93e7d91ba1a46b81a5f15129b4dc5769bf41f26     Chain Partition descriptor:       Partition Name:          pm_sys       Rollback Index Location: 12       Public key (sha1):      e93e7d91ba1a46b81a5f15129b4dc5769bf41f26
hovatek
hovatek
hovatek
Administrator
50,901
18-07-2022, 10:24 PM
#35

Mediatek Course Mediatek Course


(18-07-2022, 10:22 AM)mustafaa Hello my output is not the same as yours what should i do?

Code:

Minimum libavb version:   1.0 Header Block:             256 bytes Authentication Block:     576 bytes Auxiliary Block:          16960 bytes Algorithm:                SHA256_RSA4096 Rollback Index:           0 Flags:                    0 Release String:           'avbtool 1.1.0' Descriptors:     Chain Partition descriptor:       Partition Name:          boot       Rollback Index Location: 1       Public key (sha1):       ea410c1b46cdb2e40e526880ff383f083bd615d5     Chain Partition descriptor:       Partition Name:          dtbo       Rollback Index Location: 6       Public key (sha1):       ea410c1b46cdb2e40e526880ff383f083bd615d5     Chain Partition descriptor:       Partition Name:          socko       Rollback Index Location: 13       Public key (sha1):       bc688cacacd959cfaafbf0549d080d6fc2d50a08     Chain Partition descriptor:       Partition Name:          odmko       Rollback Index Location: 14       Public key (sha1):       425215859f49f31809f16491c2a67e04df79baaf     Chain Partition descriptor:       Partition Name:          vbmeta_system       Rollback Index Location: 2       Public key (sha1):       e2c66ff8a1d787d7bf898711187bff150f691d27     Chain Partition descriptor:       Partition Name:          vbmeta_system_ext       Rollback Index Location: 3       Public key (sha1):       f204332ee2d0bec13ea120b73c5adcf7866bf889     Chain Partition descriptor:       Partition Name:          vbmeta_vendor       Rollback Index Location: 4       Public key (sha1):       9885bf5bf909e5208dfd42abaf51ad9b104ee117     Chain Partition descriptor:       Partition Name:          vbmeta_product       Rollback Index Location: 5       Public key (sha1):       766a95798206f6e980e42414e3cb658617c27daf     Chain Partition descriptor:       Partition Name:          l_modem       Rollback Index Location: 7       Public key (sha1):       e93e7d91ba1a46b81a5f15129b4dc5769bf41f26     Chain Partition descriptor:       Partition Name:          l_ldsp       Rollback Index Location: 8       Public key (sha1):       e93e7d91ba1a46b81a5f15129b4dc5769bf41f26     Chain Partition descriptor:       Partition Name:          l_gdsp       Rollback Index Location: 9       Public key (sha1):       e93e7d91ba1a46b81a5f15129b4dc5769bf41f26     Chain Partition descriptor:       Partition Name:          l_agdsp       Rollback Index Location: 10       Public key (sha1):       e93e7d91ba1a46b81a5f15129b4dc5769bf41f26     Chain Partition descriptor:       Partition Name:          l_cdsp       Rollback Index Location: 11       Public key (sha1):       e93e7d91ba1a46b81a5f15129b4dc5769bf41f26     Chain Partition descriptor:       Partition Name:          pm_sys       Rollback Index Location: 12       Public key (sha1):       e93e7d91ba1a46b81a5f15129b4dc5769bf41f26

They aren't expected to be the same.
Create a thread by clicking Ask Question at the top if you're stuck

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.
asadgsm
asadgsm
asadgsm
Newbie
2
06-10-2022, 06:05 PM
#36
python2 : The term 'python2' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ python2 avbtool.py info_image --image vbmeta-sign.img
+ ~~~~~~~
    + CategoryInfo          : ObjectNotFound: (python2:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
hovatek
hovatek
hovatek
Administrator
50,901
08-10-2022, 10:07 AM
#37
(06-10-2022, 06:05 PM)asadgsm python2 : The term 'python2' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ python2 avbtool.py info_image --image vbmeta-sign.img
+ ~~~~~~~
    + CategoryInfo          : ObjectNotFound: (python2:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

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.
daveonMTK
daveonMTK
daveonMTK
Newbie
1
09-01-2023, 10:36 AM
#38
(26-04-2021, 06:30 PM)liOnux.fr
(11-07-2020, 11:02 PM)zav31254 Hello! There is a problem. I can not see the contents of vbmeta-sign.img for doogee n10. In Windows 7, I get an error: File "avbtool", line 411
    b = 2L ** 32
Syntax error: invalid syntax.
In Umbuntu , I get an error:avbtool: Given image does not look like a vbmeta image.
 I ask for help.
Hi,
I had the same error using Python3 instead of Python2, so type this:

python2 avbtool.py info_image --image vbmeta-sign.img

This was the solution that worked for me. Nice one brother!!

Cool
Kelexine
Kelexine
Kelexine
Senior Member
152
12-01-2023, 11:01 AM
#39
(11-06-2020, 10:51 AM)X3non
(10-06-2020, 05:38 PM)Mufor ...

the DHTB sign is at the header section of your vbmeta image, you need to remove this before using the info_image command


open the vbmeta using hxd hex editor
scroll down a bit till you find AVB0 (you could also use the search function to search for this)
highlight and remove everything above AVB0 then save the file and re-analyze using avbtool

PS: if you still have problems then create a new thread for the device issue
Works like charm
gichamba
gichamba
gichamba
Newbie
2
08-07-2023, 01:53 PM
#40
For anyone else struggling with the error '', was successful by downloading 'avbtool.py' here: https://cs.android.com/android/platform/...avbtool.py and using python3 instead of two.
Pages (5): Previous 1 2 3 4 5 Next
Users browsing this thread:
 1 Guest(s)
Users browsing this thread:
 1 Guest(s)
WhTlYt