Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change phone number in emulator - Android development

I need to set/change the phone number of the emulator for debugging purposes... Any help would be appreciated...

Thanks :)

like image 248
Rahim Avatar asked Feb 01 '11 19:02

Rahim


People also ask

How do I change the phone number on my Android emulator?

Edit it in a hex editor. Show activity on this post. First phone number is +15555215554 , second +15555215556 , i.e. phone number is prefix +1555521 plus emulator suffix 5554 or 5556 .

Can you emulate a SIM card?

SIM Emulation consists of (1) a piece of hardware connecting to the SIM Interface of the Mobile Terminal and (2) the actual Emulation implemented in SIM Client software. Instead of a SIM card a SIM Emulator device is attached to the SIM Interface of the Mobile Terminal.

Where is extended controls in Android Studio?

You can use keyboard shortcuts to perform many common actions in the emulator. For a complete list of shortcuts in the emulator, press F1 (Command + / on Mac) to open the Help pane in the Extended controls window.


1 Answers

The accepted answer has nothing to do with changing the default phone number. You need to recompile from source or patch the binary to change the first 7 digits. The last four of the phone number are the emulator's port number. Patching the phone number is detailed at the end of this blog post:

New link (images missing): http://blog.talosintel.com/2013/04/changing-imei-provider-model-and-phone.html

Web archive (slower, with images): https://web.archive.org/web/20150909014941/http://vrt-blog.snort.org/2013/04/changing-imei-provider-model-and-phone.html

Dead link: http://vrt-blog.snort.org/2013/04/changing-imei-provider-model-and-phone.html

like image 161
douggard Avatar answered Oct 15 '22 16:10

douggard