- IMEI number
- Phone number
- Subscriber id
- SIM card's serial id
String infos = "";
TelephonyManager tManager = (TelephonyManager)this.getSystemService(Context.TELEPHONY_SERVICE);
infos+= "Device ID"+tManager.getDeviceId()+"\n";
infos+= "Phone Number"+tManager.getLine1Number()+"\n";
infos+= "SIM Serial Number"+tManager.getSimSerialNumber()+"\n";
infos+= "Subscriber ID"+tManager.getSubscriberId()+"\n";
WifiManager wifiMan = (WifiManager) this.getSystemService(
Context.WIFI_SERVICE);
WifiInfo wifiInf = wifiMan.getConnectionInfo();
infos+= "WiFi MAC: "+ wifiInf.getMacAddress()+"\n";
Toast t=Toast.makeText(this, infos, Toast.LENGTH_LONG);
t.show();
And of course the following permissions have to be added to the manifest: