S666LN: Use sha256 to build the hashtree in avb image

which enables
sha256 for Pixel devices, we should do the same thing for CuttleFish.

Bug: 178983355
Test: ,
      and checks sha256 is used for dm-verity partitions.
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
This commit is contained in:
=Bowgo Tsai
2025-10-31 21:31:29 +07:00
committed by KimelaZX
parent 8bbda2ce34
commit 7d03d4c90c

View File

@@ -198,6 +198,13 @@ BOARD_AVB_VBMETA_VENDOR_ALGORITHM := SHA256_RSA2048
BOARD_AVB_VBMETA_VENDOR_ROLLBACK_INDEX := 1
BOARD_AVB_VBMETA_VENDOR_ROLLBACK_INDEX_LOCATION := 3
BOARD_AVB_ODM_DLKM_ADD_HASHTREE_FOOTER_ARGS += --hash_algorithm sha256
BOARD_AVB_PRODUCT_ADD_HASHTREE_FOOTER_ARGS += --hash_algorithm sha256
BOARD_AVB_SYSTEM_ADD_HASHTREE_FOOTER_ARGS += --hash_algorithm sha256
BOARD_AVB_SYSTEM_EXT_ADD_HASHTREE_FOOTER_ARGS += --hash_algorithm sha256
BOARD_AVB_VENDOR_ADD_HASHTREE_FOOTER_ARGS += --hash_algorithm sha256
BOARD_AVB_VENDOR_DLKM_ADD_HASHTREE_FOOTER_ARGS += --hash_algorithm sha256
# VNDK
BOARD_VNDK_VERSION := current