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.
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
Just run
./adb devices
and it lists all connected IMEIs.For ESN you can do
service call iphonesubinfo 16
at least it gives me the right one on Motorola Photon Q.
To clean it up (assuming you have shell on the device and have a capable busybox there, if not I highly recommend one):
For MEID with cleanup:
This works for me on my nexus 5 and moto 5G.
output:
Script:
get.deviceinfo.bash
It requires:
adb
(Android SDK Platform Tools)IMEI- adb shell service call iphonesubinfo 1 | awk -F "'" '{print $2}' | sed '1 d'| sed 's/.//g' | awk '{print}' ORS=''
Android ID=
adb shell settings get secure android_id
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.For IMEI you can use: