We're hiring! Apply Now

Hovatek Forum DEVELOPMENT Android [Custom ROM] Can't flash GSI and custom vbmeta on Blu G8 SPD SC9863A

[Custom ROM] Can't flash GSI and custom vbmeta on Blu G8 SPD SC9863A

[Custom ROM] Can't flash GSI and custom vbmeta on Blu G8 SPD SC9863A

rsna
rsna
rsna
Newbie
2
23-09-2023, 10:20 AM
#1



Device: Blu G8 G0170
Version: Android 9

Hello, I have already unlocked the bootloader of this device but I can't flash GSIs or vbmetas. The keys used in the device are the same with the default signing keys by SPD. When flashing signed or unsigned GSIs, this is the error.
Code:

Warning: skip copying system image avb footer (system partition size: 0, system image size: 2539151360).
Sending 'system' (2479640 KB) FAILED (remote: 'data too large')
fastboot: error: Command failed

This is the command to sign the GSI .img:
Code:

python3 avbtool.py add_hash_footer --image lineage-18.1-20230609-MeowIce-GSI-arm64_bvN.img --partition_name system --partition_size 2539151360 --key rsa4096_vbmeta.pem --algorithm SHA256_RSA4096


When flashing custom vbmeta, fastboot gets stuck on "writing" part and never goes beyond. Using the info_image command, I noticed that the avbtool produces a different output compared to the stock vbmeta. This is the command I used, all keys used are the ones I downloaded from this site:
Code:

python3 avbtool.py make_vbmeta_image --key rsa4096_vbmeta.pem --algorithm SHA256_RSA4096 --flag 0 --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/key_recovery.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 --output vbmeta_custom.img
Flag 0 nor 2 makes a difference. The flag on the stock vbmeta is 0.

Also, trying fastboot reboot fastboot only brings me to system so fastbootd is not available on this device.
AutoResponder
AutoResponder
AutoResponder
Verified Account
609
23-09-2023, 10:20 AM
#2
Thank you for reaching out for support. Due to high demand, our free support services may experience some delays in response time. We apologize for any inconvenience this may cause.
Alternatively, we offer private support where you can receive dedicated attention and prompt support. These sessions are designed to provide personalized solutions to your specific needs.
If you are interested in scheduling a private session, please visit https://www.hovatek.com/remote
Gargoyle
Gargoyle
Gargoyle
Contributor
541
25-09-2023, 12:11 PM
#3
lineage-18.1-20230609-MeowIce-GSI-arm64_bvN.img no need to sign

if you sign the system image with rsa4096_vbmeta.pem,
then you must also change this key to vbmeta " --chain_partition system:3:keys/key_system.bin"
where key_system.bin must be the same as rsa4096_vbmeta.pem
maxpayne
maxpayne
maxpayne
Intern
4,201
28-09-2023, 02:46 PM
#4
(23-09-2023, 10:20 AM)rsna Device: Blu G8 G0170
Version: Android 9

Hello, I have already unlocked the bootloader of this device but I can't flash GSIs or vbmetas. The keys used in the device are the same with the default signing keys by SPD. When flashing signed or unsigned GSIs, this is the error.
Code:

Warning: skip copying system image avb footer (system partition size: 0, system image size: 2539151360).
Sending 'system' (2479640 KB) FAILED (remote: 'data too large')
fastboot: error: Command failed
...

Try this

Code:

fastboot -S 100M system system.img

Don't sign system
This post was last modified: 28-09-2023, 02:52 PM by maxpayne.

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)
Join us
WhTlYt