问题来源于客户的物联网卡插上之后没有APN,需要手动配置。
查询客户的卡IMSI开头为46006.查询发现安卓系统里面没有内置对应的APN。
临时解决办法:
adb shell
su
content insert --uri content://telephony/carriers --bind name:s:"123" --bind numeric:s:"46006" --bind type:s:"default,sulp" --bind mcc:i:460 --bind mnc:s:"06" --bind apn:s:"123" --bind user:s:"" --bind password:s:""
实际上,客户的APN比较复杂,为了测试,这里只弄了一个123。但是实际上测试这样的APN也是可以使用的,怀疑现在对物联网卡这块,运营商也没有做好处理。只要随意配置个APN,都是可以用的。
附上查询的三大运营商的IMSI开头
中国移动:46000 46002 46004 46007
中国联通:46001 46006 46009
中国电信:46003 46011