From f66a5f7574cf0be9176d686df549907a717ef756 Mon Sep 17 00:00:00 2001 From: Pig Date: Mon, 29 Jun 2020 15:17:55 +0000 Subject: [PATCH] universal7885: Enable NFC only if hardware sku prop is set Change-Id: Iac4734657504004c12630dc482dfb9d6c2612282 Signed-off-by: SamarV-121 --- BoardConfigCommon.mk | 3 +++ manifest_nfc.xml | 11 +++++++++++ universal7904-common.mk | 8 ++++---- 3 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 manifest_nfc.xml diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index f32cadf..76eebc1 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -58,6 +58,9 @@ TARGET_KERNEL_CLANG_COMPILE := true DEVICE_MANIFEST_FILE := $(COMMON_PATH)/manifest.xml DEVICE_MATRIX_FILE := $(COMMON_PATH)/compatibility_matrix.xml +ODM_MANIFEST_SKUS += NFC +ODM_MANIFEST_NFC_FILES := $(COMMON_PATH)/manifest_nfc.xml + # LMKD stats logging TARGET_LMKD_STATS_LOG := true diff --git a/manifest_nfc.xml b/manifest_nfc.xml new file mode 100644 index 0000000..7dcf9e1 --- /dev/null +++ b/manifest_nfc.xml @@ -0,0 +1,11 @@ + + + android.hardware.nfc + hwbinder + 1.2 + + INfc + default + + + diff --git a/universal7904-common.mk b/universal7904-common.mk index 5dadc18..339bdca 100644 --- a/universal7904-common.mk +++ b/universal7904-common.mk @@ -145,10 +145,10 @@ PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.camera.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.xml \ frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml \ frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml \ - frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \ - frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \ - frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \ - frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \ + frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_NFC/android.hardware.nfc.hce.xml \ + frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_NFC/android.hardware.nfc.hcef.xml \ + frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_NFC/android.hardware.nfc.uicc.xml \ + frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_NFC/android.hardware.nfc.xml \ frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml \ frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \ frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \