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

1

1

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?

Halverson answered 4/5, 2014 at 8:13 Comment(0)
L
0

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.

Leone answered 4/5, 2014 at 9:39 Comment(1)
until the reader selects a different AID or the reader stops providing the RF field - You mean a different AID of a different HCE-Service?Halverson

© 2022 - 2024 — McMap. All rights reserved.