1

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

I need to read the same value returned by TelephonyManager.getDevideId() from ADB.EXE command line. Is it possible?

I'll NOT use

adb get-serialno

because it returns the serial number, not he IMEI number.

Thanks.

Community
  • 1
  • 1
Seraphim's
  • 12,559
  • 20
  • 88
  • 129
  • refer to this: http://stackoverflow.com/questions/6852106/is-there-an-android-shell-or-adb-command-that-i-could-use-to-get-a-devices-imei – Frank He Jul 11 '12 at 16:45
  • Very strange: adb shell dumpsys iphonesubinfo returns NULL as Device ID. Instead, using getDeviceId() I get a number... – Seraphim's Jul 11 '12 at 18:19
  • Please refer to this link. The question has been previously asked. http://stackoverflow.com/questions/1972381/how-to-programmatically-get-the-devices-imei-esn-in-android –  Jul 12 '12 at 05:47
  • Sorry casperOne, you've closed this question but previous responses are not useful for my case. I need to know why java code gives the expected result while adb.exe doesn't. Mybe I need to post a more detailed question. Ok. – Seraphim's Jul 16 '12 at 10:50
  • What do you get by inputting *#06# from keyboard? And, what brand/model is your Android phone? – Frank He Jul 12 '12 at 05:35
  • This is a low cost Chinese tablet, no keyboard available: it's not a phone... But I expect getDeciveId() returns null, instead it returns a number that seems to be a correct IMEI. The command adb shell dumpsys iphonesubinfo returns NULL. – Seraphim's Jul 12 '12 at 08:03
  • What is the output of *#06#. Maybe there is no IMEI written in the device – Frank He Jul 12 '12 at 13:50
  • First, thank you for your interest for my question. Unfortunatelly I can't find the phone keyboard because it's a tablet not a phone. Maybe the phone keyboard apk is hidden. – Seraphim's Jul 13 '12 at 14:17
  • Maybe there is no GSM/WCDMA module in the tablet therefore no IMEI at all – Frank He Jul 14 '12 at 14:51
  • Hehe ok, but why getDeviceId() returns a correct IMEI? – Seraphim's Jul 16 '12 at 10:51
  • I think, it is because your device does not implement some android APIs complying regular rules – Frank He Jul 17 '12 at 06:25
  • Yes I think so too, but no one seems to have faced this behaviour before... This question has been closed. My new post (more specific): http://stackoverflow.com/questions/11518113/android-getdeviceid-returns-an-imei-adb-shell-dumpsys-iphonesubinfo-returns – Seraphim's Jul 17 '12 at 07:57

0 Answers0