diff --git a/core/product_config.mk b/core/product_config.mk index 1890599a6..47492c2ee 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 9ed2ef15b..469e2313e 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 += \ vendor_compatibility_matrix.xml \