polaris: Set up NFC

Change-Id: Ib10e931059ad185e26541ceb68390124bb64686e
This commit is contained in:
1nfrag
2019-03-02 10:31:18 +08:00
committed by Bruno Martins
parent ee72f28d13
commit f672f28e93
4 changed files with 14 additions and 20 deletions

View File

@@ -63,15 +63,23 @@ PRODUCT_COPY_FILES += \
# NFC
PRODUCT_PACKAGES += \
android.hardware.nfc@1.0-impl \
com.android.nfc_extras \
com.nxp.nfc.nq \
com.nxp.nfc.nq.xml \
libnqnfc-nci \
libnqp61-jcop-kit \
nfc_nci.nqx.default \
NQNfcNci \
nqnfcee_access.xml \
nqnfcse_access.xml \
NQNfcNci \
SecureElement \
Tag
Tag \
vendor.nxp.hardware.nfc@1.1-service
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_SYSTEM)/etc/libnfc-nci.conf \
$(LOCAL_PATH)/nfc/libnfc-nxp.conf:$(TARGET_COPY_OUT_SYSTEM)/etc/libnfc-nxp.conf \
$(LOCAL_PATH)/nfc/libnfc-nxp.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nxp.conf
# Secure element
PRODUCT_PACKAGES += \
SecureElement

View File

@@ -23,12 +23,12 @@
<hal format="hidl">
<name>android.hardware.nfc</name>
<transport>hwbinder</transport>
<version>1.0</version>
<version>1.1</version>
<interface>
<name>INfc</name>
<instance>default</instance>
</interface>
<fqname>@1.0::INfc/default</fqname>
<fqname>@1.1::INfc/default</fqname>
</hal>
<hal format="hidl">
<name>android.hardware.secure_element</name>
@@ -100,16 +100,6 @@
</interface>
<fqname>@1.0::INqNfc/default</fqname>
</hal>
<hal format="hidl">
<name>vendor.nxp.nxpnfc</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>INxpNfc</name>
<instance>default</instance>
</interface>
<fqname>@1.0::INxpNfc/default</fqname>
</hal>
<hal format="hidl">
<name>vendor.qti.gnss</name>
<transport>hwbinder</transport>

View File

@@ -1,2 +0,0 @@
on init
mount none /system/etc/libnfc-nxp.conf /vendor/etc/libnfc-nxp.conf bind

View File

@@ -1,2 +0,0 @@
# NFC config
/system/etc/libnfc-nxp\.conf u:object_r:vendor_configs_file:s0