Hovatek Forum
[Please help] Oukitel WP5 pro - Printable Version

+- Hovatek Forum (https://www.hovatek.com/forum)
+-- Forum: DEVELOPMENT (https://www.hovatek.com/forum/forum-38.html)
+--- Forum: Android (https://www.hovatek.com/forum/forum-39.html)
+--- Thread: [Please help] Oukitel WP5 pro (/thread-38651.html)



Oukitel WP5 pro - per Noman - 12-04-2021

How do I edit this code to fit my vbmeta.img ???

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-sign-custom.img

My vbmeta.img:
Minimum libavb version: 1.0
Header Block: 256 bytes
Authentication Block: 320 bytes
Auxiliary Block: 3264 bytes
Public key (sha1): cdbb77177f731920bbe0a0f94f84d9038ae0617d
Algorithm: SHA256_RSA2048
Rollback Index: 0
Flags: 0
Rollback Index Location: 0
Release String: 'avbtool 1.1.0'
Descriptors:
Chain Partition descriptor:
Partition Name: recovery
Rollback Index Location: 1
Public key (sha1): 0aa0987116fc792f36bc909b0a4d530413f02a54
Chain Partition descriptor:
Partition Name: vbmeta_system
Rollback Index Location: 2
Public key (sha1): fa41159a5d696abdef93176a07d0b0d001263f01
Chain Partition descriptor:
Partition Name: vbmeta_vendor
Rollback Index Location: 4
Public key (sha1): 9577bc6c0772975ecce93c4d8a178662c728dadf
Chain Partition descriptor:
Partition Name: boot
Rollback Index Location: 3
Public key (sha1): 9d808b0995768d0677fccb1efcddb7cf9e153d99
Hash descriptor:
Image Size: 49776 bytes
Hash Algorithm: sha256
Partition Name: dtbo
Salt: 836908ce5dc44be62c8cee40cff79fb14aef98065e181ab6f909dd7fd2f1e89e
Digest: 9e4eb8d861f2c6b3d0a46c1d524470fbd18a4935b3bbcd72b945e2143c587da5
Flags: 0


Is this korrect? not working on the phone...

python avbtool make_vbmeta_image --key hovatek.pem --algorithm SHA256_RSA2048 --flag 2 --chain_partition recovery:1:keys/hovatek.bin --chain_partition system:2:keys/vbmeta_system_key.bin --output vbmeta-custom.img

Or is it:
python avbtool make_vbmeta_image --key rsa4096_vbmeta.pem --algorithm SHA256_RSA4096 --flag 2 --chain_partition recovery:1:keys/key_recovery.bin --chain_partition vbmeta_system:2:keys/key_vbmeta_system.bin --chain_partition vbmeta_vendor:4:keys/key_vbmeta_vendor.bin --chain_partition boot:3:keys/key_boot.bin --padding_size 16384 --output vbmeta-sign-custom.img

?????

If anyone could be so kind as to help get root on this phone, had I and the hole WP5 pro community ben happy.
Here are all the files:
https://drive.google.com/drive/folders/1...opsE3WxDMl


RE: WP5 pro - X3non - 13-04-2021

(12-04-2021, 10:44 AM)per Noman Wrote:  ...

have you been able to unlock the bootloader of the device?


RE: Oukitel WP5 pro - per Noman - 13-04-2021

Android 10
Build number: OUKITEL_WP5Pro_EEA_V05_20201126_125003

Yes, the bootloader is unlockt. Everything is ready to be signed and flash, using fastboot and SP_flash_tool running on Linux mint.
Soon as I figure out how to implement your code in to my project. I can't figure out how my vbmeta.img info shood lock like?

Is it this:
python avbtool make_vbmeta_image --key hovatek.pem --algorithm SHA256_RSA2048 --flag 2 --chain_partition recovery:1:keys/hovatek.bin --chain_partition system:2:keys/vbmeta_system_key.bin --output vbmeta-custom.img

Or is it:
python avbtool make_vbmeta_image --key rsa4096_vbmeta.pem --algorithm SHA256_RSA4096 --flag 2 --chain_partition recovery:1:keys/key_recovery.bin --chain_partition vbmeta_system:2:keys/key_vbmeta_system.bin --chain_partition vbmeta_vendor:4:keys/key_vbmeta_vendor.bin --chain_partition boot:3:keys/key_boot.bin --padding_size 16384 --output vbmeta-sign-custom.img

???


RE: Oukitel WP5 pro - X3non - 14-04-2021

(13-04-2021, 02:37 PM)per Noman Wrote:  ...
Is it this:
python avbtool make_vbmeta_image --key hovatek.pem --algorithm SHA256_RSA2048 --flag 2 --chain_partition recovery:1:keys/hovatek.bin --chain_partition system:2:keys/vbmeta_system_key.bin --output vbmeta-custom.img

Or is it:
python avbtool make_vbmeta_image --key rsa4096_vbmeta.pem --algorithm SHA256_RSA4096 --flag 2 --chain_partition recovery:1:keys/key_recovery.bin --chain_partition vbmeta_system:2:keys/key_vbmeta_system.bin --chain_partition vbmeta_vendor:4:keys/key_vbmeta_vendor.bin --chain_partition boot:3:keys/key_boot.bin --padding_size 16384 --output vbmeta-sign-custom.img

???

neither of the two above
your vbmeta should have the same algorithm sha256_**** as the original vbmeta and use the same .pem key you used to unlock the bootloader
it should also contain all partitions as in the original vbmeta, you're to reconstruct the chain partitions based on the info you got from avbtool info_image not based on what you see in our guide (only use the same if your info_image gave same output as in our guide)