Android: getDeviceId() returns an IMEI, adb shell dumpsys iphonesubinfo returns Device ID=NULL

被刻印的时光 ゝ 提交于 2020-01-14 03:17:27

问题


Different results for my low cost chinese tablet. It's not a phone so why getDeviceId() returns a number that seems to be a valid IMEI?

C:\>adb shell dumpsys iphonesubinfo
Phone Subscriber Info:
  Phone Type = GSM
  Device ID = null

but using

TelephonyManager tManager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
String uid = tManager.getDeviceId();

uid = 35881700... (I'm not showing the whole IMEI number for privacy)

来源:https://stackoverflow.com/questions/11518113/android-getdeviceid-returns-an-imei-adb-shell-dumpsys-iphonesubinfo-returns

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!