[Tutorial] How to verify the contents of a vbmeta image
[Tutorial] How to verify the contents of a vbmeta image
(12-03-2020, 11:05 PM)X3non ...
(27-10-2021, 11:34 PM)RashGift ...
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(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
(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
(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 411Hi,
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.
I had the same error using Python3 instead of Python2, so type this:
python2 avbtool.py info_image --image vbmeta-sign.img
(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