获取手机的IMEI,MSISDN,ICCID,IMSI

来源:互联网 发布:查看mac激活时间 编辑:程序博客网 时间:2024/05/16 19:04
TelephonyManager tm = (TelephonyManager) this.getSystemService(Context.TELEPHONY_SERVICE);
        String imei = tm.getDeviceId();       //取出IMEI
        String tel = tm.getLine1Number();     //取出MSISDN,很可能为空
        String imei =tm.getSimSerialNumber();  //取出ICCID
        String imsi =tm.getSubscriberId();     //取出IMSI
0 0
原创粉丝点击