Tuesday 24 March 2015

Have 2 Android emulators running with different IMEI


I recently had to test with two laptops with the Android emulator and tried to register with the same Mobile Api Gateway. 
The first “device” successfully registered, but he second received a device already registered.

The reason for that is the usage of the IMEI number together with some other fixed gateway number
as device-identifier.
The IMEI number for the emulator is 000000000000000 which is the same for all emulators and is
not changeable in the emulator or any other configuration file.

A way to circumvent this, is to change the IMEI number inside the emulator-x86.exe with a hexeditor like notepad++

Search for “+CGSN”, the following   000000000000000 is the IMEI number. Change to the desired number and the save the file. 

Thursday 12 March 2015

Delete MAG Kit from CA API Gateway

I recently had to delete the MAG kit after some tests and ran into relationships between the installed fragments, encapsulated assertions and policies using them. Here is the simple solution for removing an installed MAG kit.


  1. Open Tasks->Manage encapsulated assertions
  2. delete all assertions starting with the Prefix you want to delete e.g. mag
  3. now delete the folder for your prefix e.g. MAG-2.2.01 mag
  4. you will receive some errors for still referenced policies, fragements and folders. Press OK for all
  5. Delete the folder again.
  6. Finished.