SoFunction
Updated on 2025-04-11

Android reading user number, mobile phone number, SIM card serial number implementation code


TelephonyManager tm = (TelephonyManager) (TELEPHONY_SERVICE);
String imei = ();       //Take out the IMEI
(TAG, "IMEI:"+imei);
String tel = tm.getLine1Number();     //Take out MSISDN, it is likely to be empty
(TAG, "MSISDN:"+tel);
String iccid =();  //Take out ICCID
(TAG, "ICCID:"+iccid);
String imsi =();     //Take out IMSI
(TAG, "IMSI:"+imsi);