Host-based Card Emulation - Trigger a reader app when HCE is read on reader device

后端 未结 2 1410
萌比男神i
萌比男神i 2021-01-28 17:58

NFC tags can trigger an NFC reader app available on the phone, but HCE does not trigger any reader app. However, if I first open the reader app, then it works normally and, henc

相关标签:
2条回答
  • 2021-01-28 18:34

    No, a HCE app on one Android device cannot be used to trigger (launch) a reader app on another Android device. The reason for this is that Android devices also implement peer-to-peer mode. Thus, by default, two Android devices will automatically communicate in peer-to-peer mode and the reader side won't see the HCE emulated tag.

    Only if a reader app is started on the reader side that uses the reader-mode API to disable peer-to-peer mode, the two devices start communicating in reader/writer mode + card emulation mode. Thus, only then the HCE emulated tag becomes visible to the reader side.

    Note that disabling Beam from the settings menu won't change anything about this because peer-to-peer mode stays enabled even if Beam (currently the only application protocol used by Android devices on top of peer-to-peer mode) is disabled.

    0 讨论(0)
  • 2021-01-28 18:56

    First of all you must ensure you use Kitkat version of android to have HCE Support. Next, since HCE routs your Application ID to CPU and not to eSE or UICC Sim card, any app which depends on eSE or UICC sim card doesnt work with HCE. So you must be using HCE supported app to be identified by the reader. Next, the reader should send out Application ID such that any installed HCE app on your phone is able to respond to it.

    0 讨论(0)
提交回复
热议问题