2

The question is quite simple; How do I change the phonenumber of an android emulator?

Another topic has discussed the same issue, however, only a link to the documentation whas given. As far as I know, the refered piece of documentation does not describe how you could change the devices phone number.

Community
  • 1
  • 1
Roel Veldhuizen
  • 4,613
  • 8
  • 44
  • 78

2 Answers2

1

You need to enter android_id (other phone ID) into providers table. Check this detecting an emulator, and getting around detection.

Here is another Android emulators with phone numbers? on this topic.

hong4rc
  • 3,999
  • 4
  • 21
  • 40
kosa
  • 65,990
  • 13
  • 130
  • 167
  • The android_id isn't a phone number. Or am I missing something? – Dan Getz Apr 20 '16 at 19:02
  • @DanGetz If you are debugging by connecting phone, then it would be phone number. Read the question linked, hope that helps! – kosa Apr 20 '16 at 19:46
  • No, it would not be a [phone number](https://en.wikipedia.org/wiki/Telephone_number). It would be the phone's Android device ID. – Dan Getz Apr 20 '16 at 19:55
  • @DanGetz: Ah, I see what you are stressing for "phone number", Ok, "phone ID" (I understand phone number represents xxx-xx-xxxx, but that is not what I meant in this context) – kosa Apr 20 '16 at 21:30
0

Without recompiling, the port number that the emulator is running on controls the last 4 digits of the phone number. The first 7 digits can changed by editing the emulator-arm or emulator-x86 binaries in a hex editor.

More info here: http://vrt-blog.snort.org/2013/04/changing-imei-provider-model-and-phone.html

douggard
  • 692
  • 1
  • 12
  • 29