diff --git a/core/main.mk b/core/main.mk index 63fac4373..e2dde2dfa 100644 --- a/core/main.mk +++ b/core/main.mk @@ -290,6 +290,13 @@ ADDITIONAL_VENDOR_PROPERTIES += \ ro.product.first_api_level=$(PRODUCT_SHIPPING_API_LEVEL) endif +# Vendors with GRF must define BOARD_SHIPPING_API_LEVEL for the vendor API level. +# This must not be defined for the non-GRF devices. +ifdef BOARD_SHIPPING_API_LEVEL +ADDITIONAL_VENDOR_PROPERTIES += \ + ro.board.first_api_level=$(BOARD_SHIPPING_API_LEVEL) +endif + ADDITIONAL_VENDOR_PROPERTIES += \ ro.vendor.build.security_patch=$(VENDOR_SECURITY_PATCH) \ ro.product.board=$(TARGET_BOOTLOADER_BOARD_NAME) \