问题描述
不同的结果我的中国低成本平板电脑。这不是一个电话,为什么getDeviceId()返回一个数字,这似乎是一个有效的IMEI?
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
但使用
TelephonyManager tManager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
String uid = tManager.getDeviceId();
UID = 35881700 ...(我不显示隐私整个IMEI号码)
uid = 35881700... (I'm not showing the whole IMEI number for privacy)
推荐答案
有在平板电脑任何GSM无线的? (对不起,张贴一个答案,但我不能发表评论。)
Is there any kind of GSM radio in your tablet? (Sorry for posting an answer, but I am not allowed to post comments ..)
据GSMPhone.java在我期待的Android版本中,IMEI是由时设备所使用的无线电变成初始化设置。
According GSMPhone.java in the android version that I am looking at, the IMEI is set when the radio used by the device becomes initialized.
这篇关于安卓:getDeviceId()返回一个IMEI,亚行外壳dumpsys iphonesubinfo返回设备ID = NULL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!