Hovatek Forum MOBILE Android how to verify the contents of a vbmeta image
Try our Online TWRP Builder..its free!
Can't login? Please, reset your password.


how to verify the contents of a vbmeta image

how to verify the contents of a vbmeta image

RashGift
RashGift
RashGift
Junior Member
27
28-10-2021, 07:09 AM
#1



I've tried the command used to install python on linux but it's not working(picture attached)
ubuntu@ubuntu:~$ sudo apt install python 2.7 python-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
python-is-python3

E: Package 'python' has no installation candidate
E: Unable to locate package 2.7
E: Couldn't find any package by glob '2.7'
E: Unable to locate package python-pip

I'm making use of windows and i have everything in the right place (openssl and python added to path) but when I run the command python avbtool.py info_image --image vbmeta-sign.img, this happens
The version of python installed is python2.7.1
Can i just get help checking the contents of my vbmeta-sign? I'm attaching a picture of what happens after i run the command and a copy of my vbmeta-sign.img
This post was last modified: 28-10-2021, 07:37 AM by RashGift.
Attached Files
.png
Capture1.PNG
Size: 20.78 KB / Downloads: 1
.img
vbmeta-sign.img
Size: 1 MB / Downloads: 2
.png
Screenshot from 2021-10-28 06-28-24.png
Size: 802.77 KB / Downloads: 1
X3non
X3non
X3non
Recognized Contributor
22,062
28-10-2021, 11:13 AM
#2
(28-10-2021, 07:09 AM)RashGift ...

not sure where you downloaded this avbtool you're using from but you can easily tell which python version an avbtool file requires
edit the avbtool.py using any text editor e.g notepad or notepad++
if it begins with "#!/usr/bin/env python" then python 2
if it begins with "#!/usr/bin/env python3" then python 3

if the avbtool file you have is for python 2 and you still get the same error then try downloading v2.7.10 (it's a different version from 2.7.1)

BTW info_image from your vbmeta below
Code:

Minimum libavb version:   1.0
Header Block:             256 bytes
Authentication Block:     576 bytes
Auxiliary Block:          12416 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:          system
      Rollback Index Location: 3
      Public key (sha1):       e2c66ff8a1d787d7bf898711187bff150f691d27
    Chain Partition descriptor:
      Partition Name:          vendor
      Rollback Index Location: 4
      Public key (sha1):       9885bf5bf909e5208dfd42abaf51ad9b104ee117
    Chain Partition descriptor:
      Partition Name:          product
      Rollback Index Location: 10
      Public key (sha1):       766a95798206f6e980e42414e3cb658617c27daf
    Chain Partition descriptor:
      Partition Name:          dtbo
      Rollback Index Location: 9
      Public key (sha1):       ea410c1b46cdb2e40e526880ff383f083bd615d5
    Chain Partition descriptor:
      Partition Name:          recovery
      Rollback Index Location: 2
      Public key (sha1):       d9093b9a181bdb5731b44d60a9f850dc724e2874
    Chain Partition descriptor:
      Partition Name:          w_modem
      Rollback Index Location: 5
      Public key (sha1):       e93e7d91ba1a46b81a5f15129b4dc5769bf41f26
    Chain Partition descriptor:
      Partition Name:          w_gdsp
      Rollback Index Location: 6
      Public key (sha1):       e93e7d91ba1a46b81a5f15129b4dc5769bf41f26
    Chain Partition descriptor:
      Partition Name:          pm_sys
      Rollback Index Location: 7
      Public key (sha1):       e93e7d91ba1a46b81a5f15129b4dc5769bf41f26
    Chain Partition descriptor:
      Partition Name:          dtb
      Rollback Index Location: 11
      Public key (sha1):       ea410c1b46cdb2e40e526880ff383f083bd615d5
This post was last modified: 28-10-2021, 11:14 AM by X3non.
RashGift
RashGift
RashGift
Junior Member
27
28-10-2021, 11:32 AM
#3
(28-10-2021, 11:13 AM)X3non
(28-10-2021, 07:09 AM)RashGift ...

not sure where you downloaded this avbtool you're using from but you can easily tell which python version an avbtool file requires
edit the avbtool.py using any text editor e.g notepad or notepad++
if it begins with "#!/usr/bin/env python" then python 2
if it begins with "#!/usr/bin/env python3" then python 3

if the avbtool file you have is for python 2 and you still get the same error then try downloading v2.7.10 (it's a different version from 2.7.1)

BTW info_image from your vbmeta below
Code:

Minimum libavb version:   1.0
Header Block:             256 bytes
Authentication Block:     576 bytes
Auxiliary Block:          12416 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:          system
      Rollback Index Location: 3
      Public key (sha1):       e2c66ff8a1d787d7bf898711187bff150f691d27
    Chain Partition descriptor:
      Partition Name:          vendor
      Rollback Index Location: 4
      Public key (sha1):       9885bf5bf909e5208dfd42abaf51ad9b104ee117
    Chain Partition descriptor:
      Partition Name:          product
      Rollback Index Location: 10
      Public key (sha1):       766a95798206f6e980e42414e3cb658617c27daf
    Chain Partition descriptor:
      Partition Name:          dtbo
      Rollback Index Location: 9
      Public key (sha1):       ea410c1b46cdb2e40e526880ff383f083bd615d5
    Chain Partition descriptor:
      Partition Name:          recovery
      Rollback Index Location: 2
      Public key (sha1):       d9093b9a181bdb5731b44d60a9f850dc724e2874
    Chain Partition descriptor:
      Partition Name:          w_modem
      Rollback Index Location: 5
      Public key (sha1):       e93e7d91ba1a46b81a5f15129b4dc5769bf41f26
    Chain Partition descriptor:
      Partition Name:          w_gdsp
      Rollback Index Location: 6
      Public key (sha1):       e93e7d91ba1a46b81a5f15129b4dc5769bf41f26
    Chain Partition descriptor:
      Partition Name:          pm_sys
      Rollback Index Location: 7
      Public key (sha1):       e93e7d91ba1a46b81a5f15129b4dc5769bf41f26
    Chain Partition descriptor:
      Partition Name:          dtb
      Rollback Index Location: 11
      Public key (sha1):       ea410c1b46cdb2e40e526880ff383f083bd615d5

Thanks for the image info... The version I'm using is actually 2.7.10
The avbtool was downloaded from the link on your thread, although after extracting the file I had to save it as .py manually
RashGift
RashGift
RashGift
Junior Member
27
28-10-2021, 12:39 PM
#4
(28-10-2021, 11:13 AM)X3non
(28-10-2021, 07:09 AM)RashGift ...

not sure where you downloaded this avbtool you're using from but you can easily tell which python version an avbtool file requires
edit the avbtool.py using any text editor e.g notepad or notepad++
if it begins with "#!/usr/bin/env python" then python 2
if it begins with "#!/usr/bin/env python3" then python 3

if the avbtool file you have is for python 2 and you still get the same error then try downloading v2.7.10 (it's a different version from 2.7.1)

BTW info_image from your vbmeta below
Code:

Minimum libavb version:   1.0
Header Block:             256 bytes
Authentication Block:     576 bytes
Auxiliary Block:          12416 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:          system
      Rollback Index Location: 3
      Public key (sha1):       e2c66ff8a1d787d7bf898711187bff150f691d27
    Chain Partition descriptor:
      Partition Name:          vendor
      Rollback Index Location: 4
      Public key (sha1):       9885bf5bf909e5208dfd42abaf51ad9b104ee117
    Chain Partition descriptor:
      Partition Name:          product
      Rollback Index Location: 10
      Public key (sha1):       766a95798206f6e980e42414e3cb658617c27daf
    Chain Partition descriptor:
      Partition Name:          dtbo
      Rollback Index Location: 9
      Public key (sha1):       ea410c1b46cdb2e40e526880ff383f083bd615d5
    Chain Partition descriptor:
      Partition Name:          recovery
      Rollback Index Location: 2
      Public key (sha1):       d9093b9a181bdb5731b44d60a9f850dc724e2874
    Chain Partition descriptor:
      Partition Name:          w_modem
      Rollback Index Location: 5
      Public key (sha1):       e93e7d91ba1a46b81a5f15129b4dc5769bf41f26
    Chain Partition descriptor:
      Partition Name:          w_gdsp
      Rollback Index Location: 6
      Public key (sha1):       e93e7d91ba1a46b81a5f15129b4dc5769bf41f26
    Chain Partition descriptor:
      Partition Name:          pm_sys
      Rollback Index Location: 7
      Public key (sha1):       e93e7d91ba1a46b81a5f15129b4dc5769bf41f26
    Chain Partition descriptor:
      Partition Name:          dtb
      Rollback Index Location: 11
      Public key (sha1):       ea410c1b46cdb2e40e526880ff383f083bd615d5

What runs on my Linux is python3 won't I have issues with creating the vbmeta?
Can I get one that'll run on python3
X3non
X3non
X3non
Recognized Contributor
22,062
29-10-2021, 11:05 AM
#5



(28-10-2021, 12:39 PM)RashGift ...
What runs on my Linux is python3 won't I have issues with creating the vbmeta?
Can I get one that'll run on python3

you can try and find out
i believe someone posted such a version @ https://www.hovatek.com/forum/thread-326...#pid194827
This post was last modified: 29-10-2021, 11:06 AM by X3non.
Users browsing this thread:
 1 Guest(s)
Users browsing this thread:
 1 Guest(s)
YtWhTl
live chat
whatsapp telegram instagram