Reputation: 54
I have a device without NFC. This device also does not support the Open Mobile API. I need access to the SIM applet on that device.
Now I wonder if I could add that functionality...If I have a copy of the Open Mobile API library, would it work if pushed that Open Mobile API library to my device through ADB? Could I then exchange APDUs with my SIM applet?
Upvotes: 0
Views: 1196
Reputation: 40821
No, that won't work. The Open Mobile API library is only an interface to the Open Mobile API service ("SmartcardService"). Thus, the library only helps your app to communicate with the service through a standardized interface (= the Open Mobile API). If you try to use the library on a device without the SmartcardService, the library won't be able to bind to that service and, consequently, the API calls will fail.
iccOpenLogicalChannel
, iccTransmitApduBasicChannel
, iccTransmitApduLogicalChannel
, etc. Just as with the Open Mobile API, your app would, of course, need to have the permission to access that API.Upvotes: 1