AnsweredAssumed Answered

NFC PN7150 porting on Android Oreo 8.1  - vndk ,hal issue

Question asked by Wei Che Kuo on Nov 15, 2018
Latest reply on May 16, 2019 by nagendra sarma


I'm trying porting PN7150 to rockchip 's rk3326 platform , which runs android oreo 8.1

I have followed steps of AN11690 , and merged rockchip's source with GitHub - NXPNFCLinux/nxpnfc_android_oreo: Android patches for support of PN7150 NCI based NXP NFC Controller in Oreo 


Then, I faced some issues which are not mentioned in AN11690 document.


hal_nfc_default  sepolcy coredomain assiociated build error

sepolicy  hal_nfc_default

later , i added hal_nfc_default in's coredomainWhilelist  to solve this issue.


Then compiled and run the firmware into board.

It has a runtime error of NFC hwbinder,  it can't find INfc/default interface of  manifest.xml


Afterward i add related INfc /default tag in the patch of manifest.xml to solve it

And AN11690 Step 3.1.5  doesn't mention the interface tag  should be added

After this patch ,  Android's Setting have NFC option , but it is not worked still.

The newest issue  is about   vndk sphal  can't load   android.hardware.nfc@1.0-impl,so 

but   android.hardware.nfc@1.0-impl,so  is actually located in /vendor/lib64/hw/

Is there any one also experienced porting nxp nfc to android oreo?