Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an android shell or adb command that I could use to get a device's IMEI/MEID?

Tags:

android

adb

Is there some adb or android shell command that I could run that would return a device's IMEI or MEID number? Preferably that's all that would be returned.

like image 804
n8schloss Avatar asked Jul 27 '11 22:07

n8schloss


People also ask

How can I get IMEI number from adb?

You can check and save the IMEI number of your device by dialing *#06# in your dialer app and taking a screenshot of it. Alternatively, you can use this ADB command on your PC. It will display the IMEI number in the Command Prompt, which you can copy and paste wherever you want for safekeeping.

What can I do with adb commands?

Android Debug Bridge (adb) is a versatile command-line tool that lets you communicate with a device. The adb command facilitates a variety of device actions, such as installing and debugging apps, and it provides access to a Unix shell that you can use to run a variety of commands on a device.


1 Answers

I figured out how to do this. You need to run adb shell dumpsys iphonesubinfo in a shell. It will give you a bit more than you need, but it will also return IMEI or MEID number.

Edit (2017): In Android 5.0+ you'll need to use the service call command. More info about that can be found here.

like image 147
n8schloss Avatar answered Sep 21 '22 16:09

n8schloss