From 2bb1b0c9b8619f8c13735df2665cfd37c9b9b01e Mon Sep 17 00:00:00 2001 From: Arian Date: Wed, 22 May 2024 00:37:56 +0200 Subject: [PATCH] sm8450-common: Remove more nfc related features for non nfc skus As seen on stock marble vs marblein Change-Id: If4491113e60908017c33d9eaef102a3922334f7c --- common.mk | 15 ++++++--------- vintf/manifest_nfc.xml | 32 ++++++++++++++++++++++++++++++++ vintf/manifest_no_nfc.xml | 21 +++++++++++++++++++++ 3 files changed, 59 insertions(+), 9 deletions(-) diff --git a/common.mk b/common.mk index 2fdf2c2..65d2f7d 100644 --- a/common.mk +++ b/common.mk @@ -307,13 +307,17 @@ PRODUCT_PACKAGES += \ PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.software.ipsec_tunnels.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.ipsec_tunnels.xml -# NFC +# NFC / Secure Element PRODUCT_PACKAGES += \ android.hardware.nfc-service.nxp \ android.hardware.nfc@1.2.vendor \ + android.hardware.secure_element@1.2.vendor \ com.android.nfc_extras \ libchrome.vendor +PRODUCT_COPY_FILES += \ + frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml + ifeq ($(TARGET_NFC_SUPPORTED_SKUS),) TARGET_COPY_OUT_NFC_SKU_PERMISSIONS := $(TARGET_COPY_OUT_VENDOR)/etc/permissions/ else @@ -328,6 +332,7 @@ $(foreach sku_out, $(TARGET_COPY_OUT_NFC_SKU_PERMISSIONS), \ frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(sku_out)/android.hardware.nfc.hcef.xml \ frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(sku_out)/android.hardware.nfc.uicc.xml \ frameworks/native/data/etc/android.hardware.nfc.xml:$(sku_out)/android.hardware.nfc.xml \ + frameworks/native/data/etc/android.hardware.se.omapi.ese.xml:$(sku_out)/etc/permissions/android.hardware.se.omapi.ese.xml \ frameworks/native/data/etc/com.android.nfc_extras.xml:$(sku_out)/com.android.nfc_extras.xml \ frameworks/native/data/etc/com.nxp.mifare.xml:$(sku_out)/com.nxp.mifare.xml)) @@ -400,14 +405,6 @@ PRODUCT_PACKAGES += \ android.hardware.radio.config@1.3.vendor \ android.hardware.radio.deprecated@1.0.vendor \ -# Secure element -PRODUCT_PACKAGES += \ - android.hardware.secure_element@1.2.vendor - -PRODUCT_COPY_FILES += \ - frameworks/native/data/etc/android.hardware.se.omapi.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.ese.xml \ - frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml - # Sensors PRODUCT_PACKAGES += \ android.hardware.sensors@2.1-service.xiaomi-multihal \ diff --git a/vintf/manifest_nfc.xml b/vintf/manifest_nfc.xml index 3df6293..a9b8df0 100644 --- a/vintf/manifest_nfc.xml +++ b/vintf/manifest_nfc.xml @@ -8,8 +8,40 @@ android.hardware.nfc INfc/default + + + android.hardware.secure_element + hwbinder + 1.2 + + ISecureElement + eSE1 + SIM1 + SIM2 + + vendor.nxp.nxpnfc_aidl INxpNfc/default + + + vendor.qti.esepowermanager + hwbinder + 1.1 + + IEsePowerManager + default + + + + + vendor.qti.hardware.eid + hwbinder + 1.0 + + IEid + default + + diff --git a/vintf/manifest_no_nfc.xml b/vintf/manifest_no_nfc.xml index 015aa5c..3db3686 100644 --- a/vintf/manifest_no_nfc.xml +++ b/vintf/manifest_no_nfc.xml @@ -7,7 +7,28 @@ android.hardware.nfc + + + android.hardware.secure_element + hwbinder + 1.2 + + ISecureElement + SIM1 + SIM2 + + vendor.nxp.nxpnfc_aidl + + + vendor.qti.esepowermanager + hwbinder + + + + vendor.qti.hardware.eid + hwbinder +