How does Host-based Card Emulation deal with AID (Application ID)?

随声附和 提交于 2019-12-11 09:13:47

问题


I am gonna write a Payment Application based on Host-Based Card Emulation(HCE) of Android 4.4 (Kitkat) but I don't understand a process between AID (Application ID) and HCE service of Android 4.4 after I read this article Host-based Card Emulation. After we register an Application ID of both "Payment" and "Other" Category in the manifest file, Where else is the AID used? or It is used for Our written HCE service to recognize and then do whatever that define in our written HCE Service?


回答1:


or It is used for Our written HCE service to recognize and then do whatever that define in our written HCE Service?

This is the case. You register your AID in the manifest file. If a reader selects your AID the NfcService then knows which HCE-service to start and to dispatch APDU transfers to.

All further communication will then get routed to your HCE Service until the reader selects a different AID or the reader stops providing the RF field.



来源:https://stackoverflow.com/questions/23454028/how-does-host-based-card-emulation-deal-with-aid-application-id

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!