From 63da9372a4d9d1dcbd1883b0498455bddb96ace9 Mon Sep 17 00:00:00 2001 From: chrisl7 Date: Fri, 19 Jul 2024 16:36:14 +0000 Subject: [PATCH] vendor: nfc: Include support to AOSP STNFC Change-Id: Ieee025f5864cdf68aff385888ad6a3378fc25859 Signed-off-by: chrisl7 --- vendor/nfc/qti-nfc.mk | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/vendor/nfc/qti-nfc.mk b/vendor/nfc/qti-nfc.mk index 60ccba85..48c16014 100644 --- a/vendor/nfc/qti-nfc.mk +++ b/vendor/nfc/qti-nfc.mk @@ -32,6 +32,21 @@ PRODUCT_COPY_FILES += \ # Get non-open-source specific aspects. $(call inherit-product-if-exists, vendor/qcom/common/vendor/nfc/nq/nfc-vendor.mk) +else ifeq ($(TARGET_USES_ST_NFC), true) + +# Inherit from AOSP STNFC +$(call inherit-product, hardware/st/nfc/nfc_vendor_product.mk) + +PRODUCT_PACKAGES += \ + com.android.nfc_extras \ + libchrome.vendor \ + NfcNci \ + SecureElement \ + Tag + +PRODUCT_SYSTEM_PROPERTIES += \ + ro.nfc.port=I2C + else PRODUCT_PACKAGES += \