Android Smart Card Emulator¶
The Android Smart Card Emulator allows the emulation of a contact-less smart card. The emulator uses Android’s HCE to fetch APDUs from a contact-less reader. The app allows to process the Command APDUs either by delegating them to a remote virtual smart card or by a built-in Java Card simulator. The response APDUs are then returned to the smart card reader. Together with Tizen Smart Card Emulator it is also possible to use a smartwatch as communication device instead of the phone.
The remote interface can be used together with the Virtual Smart Card, which allows emulating the following cards:
Generic ISO-7816 smart card
German electronic identity card (nPA)
The remote interface can also be used together with the PC/SC Relay, which allows emulating a contactless card from an existing contact-based card (by relaying the commands from PC/SC to the phone).
You may also attach your own simulation to the remote interface by implementing a simple interface through a socket communication.
The Android Smart Card Emulator has the following dependencies:
NFC hardware built into the smartphone for HCE
Android 4.4 “KitKat” (or newer) or CyanogenMod 11 (or newer)
permissions for a data connection (communication with Virtual Smart Card) and for using NFC (communication to the reader); scanning the configuration via QR code requires permission to access the camera
Virtual Smart Card installed on the host computer for using the remote interface
Please note that the currently emulated applets are verifying the PIN by transmitting it without any protection between card and terminal. You may want to have a look at Erik Nellesson’s Virtual Keycard 6, which uses the PACE protocol for PIN verification.
Download and Install¶
To manually compile the app you need to fetch the sources and initialize the submodules:
git clone https://github.com/frankmorgner/vsmartcard.git
git submodule update --init --recursive
Do you have questions, suggestions or contributions? Feedback of any kind is more than welcome! Please use our project trackers.
Notes and References¶