We developed a prototype board with a microcontroller that can communicate with SmartCard (it can read ATR, issue and read answers to APDU commands, etc.). Now I want to use this equipment with an Android phone or tablet. Our board has a USB connection through which we can read and write to the MCU via Android.
The ultimate goal is to have a built-in Android smart card reader with PKCS # 11 support and provide the library with SmartCard reader end users so that they can communicate with their cards.
I read several discussions on this subject, some of which stated that I would need to create my own Android for this. I am not very familiar with the architecture of Android to understand why I will have to rebuild Android when I can communicate with my peripheral device (card reader) via USB. It seems to me that if I provided a library that implements a CCID-like interface, users will be able to communicate with my reader using the Android USB stack by integrating my library into their target .apk file.
Are there any problems with the above plan that we donβt know about? I am worried that we are missing something fundamental with regards to Android or SmartCard devices in general (for example, security), which will cause problems for us when we start implementing the libraries described above.
Somethingbetter
source share