diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index 6f296e2..a1c7ee4 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -113,3 +113,13 @@ BOARD_USES_QCOM_HARDWARE := true # Security patch level VENDOR_SECURITY_PATCH := 2020-02-01 + +# Verified Boot +BOARD_AVB_ENABLE := true +BOARD_AVB_MAKE_VBMETA_IMAGE_ARGS += --set_hashtree_disabled_flag +BOARD_AVB_MAKE_VBMETA_IMAGE_ARGS += --flags 2 +BOARD_AVB_VBMETA_SYSTEM := system product +BOARD_AVB_VBMETA_SYSTEM_KEY_PATH := external/avb/test/data/testkey_rsa2048.pem +BOARD_AVB_VBMETA_SYSTEM_ALGORITHM := SHA256_RSA2048 +BOARD_AVB_VBMETA_SYSTEM_ROLLBACK_INDEX := $(PLATFORM_SECURITY_PATCH_TIMESTAMP) +BOARD_AVB_VBMETA_SYSTEM_ROLLBACK_INDEX_LOCATION := 1