A quick update,
I was able to build successfully by removing the following 2 lines:
vendor/$(NXP_VENDOR_DIR)/frameworks/nfc/com.nxp.nfc.xml:system/etc/permissions/com.nxp.nfc.xml
vendor/$(NXP_VENDOR_DIR)/nfc/hw/$(NXP_NFC_HW)/libnfc-nci.conf:system/etc/libnfc-nci.conf \
I also updated the compatibility matrix from aidl to hidl
<hal format="hidl" optional="true">
<name>vendor.nxp.nxpnfc</name>
<transport>hwbinder</transport>
<version>2.0</version>
<interface>
<name>INxpNfc</name>
<instance>default</instance>
</interface>
</hal>
I don't know if these changes are correct so please let me know.
After building, I can see my driver is probing and it seems to be loaded correctly and I have the node dev/nxpnfc but I cannot access nfc through android. I do not see the nfc hal running.
In vendor/lib64/ I have:
And in vendor/bin/hw I have:
android.hardware.nfc-service.nxp
In my prop I have the following for nfc:
[persist.nfc.enabled]: [1]
[ro.hardware.nfc_nci]: [pn54x]
[ro.nfc.port]: [I2C]
But I am using the PN7160 on SPI...
Can you please provide any guidance whether these changes are correct and what further we should do to implement the nfc?
Thank you for your help.