diff --git a/target/product/gsi/Android.mk b/target/product/gsi/Android.mk index 536fe0c9a8..424cf058b1 100644 --- a/target/product/gsi/Android.mk +++ b/target/product/gsi/Android.mk @@ -162,10 +162,14 @@ endif # TODO(b/141450808): remove following VNDK phony targets when **.libraries.txt files are provided by apexes. LOCAL_REQUIRED_MODULES := \ $(foreach vndk_ver,$(PRODUCT_EXTRA_VNDK_VERSIONS),vndk_v$(vndk_ver)_$(TARGET_ARCH)$(_binder32)) -LOCAL_REQUIRED_MODULES += $(foreach vndk_ver,$(PRODUCT_EXTRA_VNDK_VERSIONS),com.android.vndk.v$(vndk_ver)) _binder32 := include $(BUILD_PHONY_PACKAGE) +include $(CLEAR_VARS) +LOCAL_MODULE := vndk_apex_snapshot_package +LOCAL_REQUIRED_MODULES := $(foreach vndk_ver,$(PRODUCT_EXTRA_VNDK_VERSIONS),com.android.vndk.v$(vndk_ver)) +include $(BUILD_PHONY_PACKAGE) + endif # BOARD_VNDK_VERSION is set ##################################################################### diff --git a/target/product/media_system_ext.mk b/target/product/media_system_ext.mk index 78cc6aa9bd..2e20af3d47 100644 --- a/target/product/media_system_ext.mk +++ b/target/product/media_system_ext.mk @@ -22,3 +22,4 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/base_system_ext.mk) # /system_ext packages PRODUCT_PACKAGES += \ + vndk_apex_snapshot_package \