Rok
Rok

Reputation: 1500

AID for HID readers

If I want my android phone to emulate a physical card to the following reader: http://www.hidglobal.com/products/readers/iclass/rw100

Which AID would I have to use?

I was following this example: https://developer.android.com/guide/topics/connectivity/nfc/hce.html#HceServices

But when debugging, my code never reaches the

public byte[] processCommandApdu(byte[] commandApdu, Bundle extras) {

method. Seems the Android device still represents itself as a unique number on a HW level so I was suspecting an incorrect AID within the code may be the cause?

FYI, I am using the Sony Xperia Z3 compact with an NXP NFC chip inside...

Upvotes: 1

Views: 1196

Answers (1)

Michael Roland
Michael Roland

Reputation: 40849

None.

Android HCE requires the reader to "speak" ISO/IEC 7816-4 over ISO/IEC 14443-4 (ISO-DEP). For ISO/IEC 14443 Type A this reader is only capable of reading the anti-collision identifier (UID) of cards but it does not send any APDUs. Consequently, the reader does not perform any AID based application selection.

Note that the UID cannot be configured through the Android HCE API and is randomly generated on many Android devices. Consequently, there is no sensible way you could use that reader in combination with Android devices that generate a random UID.

Upvotes: 4

Related Questions