diff --git a/core/product_config.mk b/core/product_config.mk index afe91d47f0..0f84f3c2ef 100644 --- a/core/product_config.mk +++ b/core/product_config.mk @@ -335,6 +335,12 @@ ifeq ($(PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS),) endif endif +ifdef PRODUCT_SHIPPING_API_LEVEL + ifneq (,$(call math_gt_or_eq,29,$(PRODUCT_SHIPPING_API_LEVEL))) + PRODUCT_PACKAGES += $(PRODUCT_PACKAGES_SHIPPING_API_LEVEL_29) + endif +endif + # If build command defines OVERRIDE_PRODUCT_EXTRA_VNDK_VERSIONS, # override PRODUCT_EXTRA_VNDK_VERSIONS with it. ifdef OVERRIDE_PRODUCT_EXTRA_VNDK_VERSIONS diff --git a/target/product/base_vendor.mk b/target/product/base_vendor.mk index c49aab7c2f..ccb90c8ba6 100644 --- a/target/product/base_vendor.mk +++ b/target/product/base_vendor.mk @@ -41,7 +41,6 @@ PRODUCT_HOST_PACKAGES += \ # Base modules and settings for the vendor partition. PRODUCT_PACKAGES += \ android.hardware.cas@1.1-service \ - android.hardware.configstore@1.1-service \ android.hardware.media.omx@1.0-service \ boringssl_self_test_vendor \ dumpsys_vendor \ @@ -70,6 +69,10 @@ PRODUCT_PACKAGES += \ vndservice \ vndservicemanager \ +# Base module when shipping api level is less than or equal to 29 +PRODUCT_PACKAGES_SHIPPING_API_LEVEL_29 += \ + android.hardware.configstore@1.1-service \ + # VINTF data for vendor image PRODUCT_PACKAGES += \ device_compatibility_matrix.xml \