23-09-2023, 10:20 AM
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
Also, trying fastboot reboot fastboot only brings me to system so fastbootd is not available on this device.