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

后端 未结 8 939
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-03 02:44

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.

8条回答
  •  死守一世寂寞
    2020-12-03 03:18

    For IMEI you can use:

    adb shell service call iphonesubinfo 1 | awk -F "'" '{print $2}' | sed '1 d' | tr -d '.' | awk '{print}' ORS=
    

提交回复
热议问题