Wednesday, August 27, 2014

Changing IMEI in emulator on Ubuntu

It happens many time that you need to change the imei within android emulator on Ubuntu. So the following steps will guide you to do the same. The files that requires modification for imei are as follows:

  • emulator64-arm
  • emulator64-mips
  • emulator64-x86
  • emulator-arm
  • emulator-mips
  • emulator-x86

And the location for those files is /sdk/tools within android sdk.
  1. Download or install android sdk.
  2. Install bless hex editor.
                     sudo apt-get install bless

  3. Open one by one the above mentioned files in bless editor. For ex:


  4. Enable search mode using Ctrl + F and change Hexadecimal to Text
  5. Search content "CGSN". The content next to the CGSN is the IMEI in the left pane.

                             For ex: +CGSN.000000000000000.

  6. Now change the 15 digit to the value as per your choice. For ex: 123456789123456
  7. Save the file. And perform this operation with each file.
  8. Create a device in emulator and check the imei.
That's it.

Good Luck !!!!!

No comments:

Post a Comment