Hovatek Forum DEVELOPMENT Android Help needed with avbtool script -umidigi a13pro
Try our Online TWRP Builder..its free!
Can't login? Please, reset your password.


Help needed with avbtool script -umidigi a13pro

Help needed with avbtool script -umidigi a13pro

gtr.fingers
gtr.fingers
gtr.fingers
Enthusiastic Member
9
26-09-2022, 07:07 AM
#1



hi i read and followed all the info on the below notes:
How to create a custom signed vbmeta.img for Unisoc using AVBtool (hovatek.com)

 I got stuck at this script:

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-signcustom.img


error:

python avbtool make_vbmeta_image --key rsa4096_vbmeta.pem --algorithm SHA256_RSA4096 --flag 2 --chain_partition
usage: avbtool make_vbmeta_image [-h] [--output OUTPUT]
                                [--padding_size NUMBER]
                                [--algorithm ALGORITHM] [--key KEY]
                                [--signing_helper APP]
                                [--signing_helper_with_files APP]
                                [--public_key_metadata KEY_METADATA]
                                [--rollback_index ROLLBACK_INDEX]
                                [--append_to_release_string STR]
                                [--prop KEY:VALUE]
                                [--prop_from_file KEYTongueATH]
                                [--kernel_cmdline CMDLINE]
                                [--setup_rootfs_from_kernel IMAGE]
                                [--include_descriptors_from_image IMAGE]
                                [--print_required_libavb_version]
                                [--chain_partition PART_NAME:ROLLBACK_SLOT:KEY_PATH]
                                [--flags FLAGS]
                                [--set_hashtree_disabled_flag]
avbtool make_vbmeta_image: error: argument --chain_partition: expected one argument
PS E:\z\`1> boot:1:keys/key_boot.bin --chain_partition system:3:keys/key_system.bin --chain_partition vendor:4:keys/key_vendor.bin
boot:1:keys/key_boot.bin : The term 'boot:1:keys/key_boot.bin' 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
+ boot:1:keys/key_boot.bin --chain_partition system:3:keys/key_system.b ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (boot:1:keys/key_boot.bin:String
  ) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS E:\z\`1> --chain_partition product:10:keys/key_product.bin --chain_partition dtbo:9:keys/key_dtbo.bin --chain_partition
At line:1 char:3
+ --chain_partition product:10:keys/key_product.bin --chain_partition d ...
+  ~
Missing expression after unary operator '--'.
At line:1 char:3
+ --chain_partition product:10:keys/key_product.bin --chain_partition d ...
+  ~~~~~~~~~~~~~~~
Unexpected token 'chain_partition' in expression or statement.
    + CategoryInfo          : ParserError: (Smile [], ParentContainsErrorRecordEx
  ception
    + FullyQualifiedErrorId : MissingExpressionAfterOperator

PS E:\z\`1> recovery:2:keys/hovatek.bin --chain_partition l_modem:5:keys/key_l_modem.bin --chain_partition
recovery:2:keys/hovatek.bin : The term 'recovery:2:keys/hovatek.bin' 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
+ recovery:2:keys/hovatek.bin --chain_partition l_modem:5:keys/key_l_mo ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (recovery:2:keys/hovatek.bin:Str
  ing) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS E:\z\`1> l_ldsp:6:keys/key_l_ldsp.bin --chain_partition l_gdsp:7:keys/key_l_gdsp.bin --chain_partition
l_ldsp:6:keys/key_l_ldsp.bin : The term 'l_ldsp:6:keys/key_l_ldsp.bin' 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
+ l_ldsp:6:keys/key_l_ldsp.bin --chain_partition l_gdsp:7:keys/key_l_gd ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (l_ldsp:6:keys/key_l_ldsp.bin:St
  ring) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS E:\z\`1> pm_sys:8:keys/key_pm_sys.bin --chain_partition dtb:11:keys/key_dtb.bin --padding_size 16384 --output vbmeta-sign^Bcustom.img
pm_sys:8:keys/key_pm_sys.bin : The term 'pm_sys:8:keys/key_pm_sys.bin' 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
+ pm_sys:8:keys/key_pm_sys.bin --chain_partition dtb:11:keys/key_dtb.bi ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (pm_sys:8:keys/key_pm_sys.bin:St
  ring) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException


I am total noob and just need to get my phone rooted for advert blocking. I will submit my vbmeta-sign in hopes that you may be able to help. 

info if needed:
PS E:\z\`1> python avbtool.py info_image --image vbmeta-sign.img
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:          pm_sys
      Rollback Index Location: 10
      Public key (sha1):      e93e7d91ba1a46b81a5f15129b4dc5769bf41f26
    Chain Partition descriptor:
      Partition Name:          l_agdsp
      Rollback Index Location: 11
      Public key (sha1):      e93e7d91ba1a46b81a5f15129b4dc5769bf41f26
    Chain Partition descriptor:
      Partition Name:          l_cdsp
      Rollback Index Location: 12
      Public key (sha1):      e93e7d91ba1a46b81a5f15129b4dc5769bf41f26


i am also using python 2.7.10 

Thanks in advance for any help.
Attached Files
.img
vbmeta-sign.img
Size: 1 MB / Downloads: 0
hovatek
hovatek
hovatek
Administrator
49,617
27-09-2022, 07:33 PM
#2
Please stick to https://www.hovatek.com/forum/thread-44428.html

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
Users browsing this thread:
 1 Guest(s)
Users browsing this thread:
 1 Guest(s)
YtWhTl