Zion Zipris Zafrir
Zion Zipris Zafrir

Reputation: 79

Android NFC card emulation

I would like to use NFC on Android for card emulation. When I put the device on a Mifare reader I get the card number. Is it possible to change this card number programatically in my device?

Upvotes: 4

Views: 5579

Answers (1)

Michael Roland
Michael Roland

Reputation: 40849

No, you can't set the anti-collision identifier (UID, this is what MIFARE readers typically display as the "card number") programmatically in Android. Actually, by default, many Android devices will expose a random UID (see Get Static NFC Tag Id with HCE mode and Get fixed ID of NFC chip in Android).

However, at least for the Broadcom NFC chipset it seems to be possible to set the anti-collision identifer to a static value by either editing a configuration file on the system image (Editing Functionality of Host Card Emulation in Android) or by customizing the libnfc-nci (Host-based Card Emulation with Fixed Card ID)

Upvotes: 3

Related Questions