Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to read Sim raw data on Android?

Tags:

android

Is there a way to read "raw" data of a Sim card? Similar to how to read a raw data with a SmsMessage raw data which is the Pdu?

like image 799
quarks Avatar asked Feb 09 '26 23:02

quarks


1 Answers

For reading SIM card related information you need TelephonyManager API.

TelephonyManager mTelephonyMgr = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
String imei = mTelephonyMgr.getDeviceId();

The TelephonyManager API's method contains lots of other information like MNC,MCC, SimOperator's Name, Cell Location etc.

like image 105
Lucifer Avatar answered Feb 13 '26 13:02

Lucifer