SIM card File System Access
Created by: E3V3A
We need to be able to access the SIM card filesystem in order to work some magic while collecting relevant and necessary network data, not available from AOS API.
There may be many ways to read the file system on a SIM card. We have previously looked at the possibility of using the modem AT command interface, but we need other alternatives in those cases when baseband does not present an available and proper AT command interface. There are 3 other alternatives for reading the SIM EF / DF (Elemenary Files / Dedicated Files):
- Using the SIM Application Toolkit (STK aka CAT/SAT): https://android.googlesource.com/platform/packages/apps/Stk.git/+/master
- Similarly we should be able to open a RIL socket and use the RIL_REQUEST_SIM_IO to read/write to SIM EF.
- Using NFC ports: UrienNFC.PDF
The preferred way would probably be to incorporate (1) into our app, since it is already written in Java, but would need to circumvent the signatures in the same way as the ServiceMode "multiRIL-client" does its access. But (1) is risking to use non-available or OEM dependent STK.apks. Thus (2) might actually be a better choice, from simplicity point of view....
If you have any better or further insight, please let us know ASAP!
https://code.google.com/p/seek-for-android/wiki/SCAPI_modules_png
References: http://www.kandroid.org/online-pdk/guide/stk.html http://osxr.org/android/source/packages/apps/Stk/src/com/android/stk/StkAppService.java?!v=android-4.4.4_r1 http://simhacks.github.io/android-emulator/#introduction https://github.com/shadytel/sim-tools https://code.google.com/p/seek-for-android/wiki/EmulatorExtension https://code.google.com/p/seek-for-android/wiki/SecureFileManager https://groups.google.com/forum/#!forum/seek-for-android
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.