Using real SIM cards with the Android Emulator.
The SEEK project provides patches for the Android emulator and system enabling full communication with real SIM cards in a standard USB PCSC reader.
More information at https://code.google.com/p/seek-for-android/wiki/EmulatorExtension .
We have created an addon repository for the Android SDK Manager to easily get the patched emulator up and running without the need to compile anything.
To add the repository, launch the SDK Manager and select Tools → Manage Add-On Sites... → User Defnied Sites → Add and enter this URL:
sorry this will be available soon!!
This will a few new items to the list of available packages:
todo
Ensure you have
pcscd
running and that it detects your reader. You'll then need to start the patched emulator:
$ extras/simhacks/emulator -pcsc @MyAVD
If your SIM card contains STK applets, the SIM Menu app should appear and display your menu:
(screnshot)
If you don't trust our binaries or want to make additional changes, you can compile everything yourself.
Follow the standard instructions for Initializing a Build Environment . When it comes time to sync the source code, use our repo manifest:
$ repo init -u https://github.com/simhacks/android_manifest
See SEEK documentation .
The Android Build System works on OSX if you create a case-sensitive disk image . To compile only the emulator without the rest of Android, you can run:
$ PCSC_INCPATH=/System/Library/Frameworks/PCSC.framework/Headers \ PCSC32_LIBPATH=/System/Library/Frameworks/PCSC.framework/Versions/Current \ PCSC64_LIBPATH=/System/Library/Frameworks/PCSC.framework/Versions/Current \ make -j4 emulator-x86
To cross-compile a Windows emulator on a Linux system:
#define __in #define __out #define __inout #define __reserved #define __nullterminated #define __nullnullterminated #define __in_opt #define __out_ecount_opt(x) #define __in_ecount_opt(x) #define __out_opt #define __out_bcount(x) #define __inout_opt #define __in_bcount(x) #define __out_bcount_opt(x)