Adb Serial Number Change
On occasion I've seen the serial number reported by adb and fastboot differ. Is there a way to reliably determine what the fastboot serial number will be from adb? Is there any tool that can get me the serial number through command line? Displayed by 'adb devices'; this is the serial number most of the time. Is there some adb or android shell command that I could run that. Is there an android shell or adb command that I could use. Have the same serial number. Change Wifi, BT, IMEI, Serial Number of any mtk android phone. And type adb devices. ( u should not change serial number to something else ).
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.
someoneHumansomeoneHuman6 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.
someoneHumansomeoneHumanFor ESN you can do
service call iphonesubinfo 16
Complete canadian curriculum grade 1 pdf. 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:
Sasha PachevSasha PachevAs the iphonesubinfo 1 command does not work on many devices, here is a little workaround that should work consistently on most Android versions and on rooted and unrooted devices:
If you already have an own app that you can install on the device that you want to know the IMEI from, add this BroadcastReceiver to your app:
and to the AndroidManifest.xml:
Serial Number Lookup
Call your receiver over ADB:
..and the output will be something like:
..where data is the device IMEI.
If you have don't have an existing app to integrate this solution into, I created this simple one which includes the required code:https://github.com/saschoar/android-imei-getter (also includes the APK and full instructions).
saschoarsaschoarThis works for me on my nexus 5 and moto 5G.
output:
Script: get.deviceinfo.bash
It requires:
- UBS debugging ON (developer options)
adb(Android SDK Platform Tools)
Lenovo Bios Serial Number Change
Serial Number Idm
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