Reputation: 35282
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?
Upvotes: 3
Views: 8837
Reputation: 29652
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.
Upvotes: 6
Reputation: 1
....These restrictions are implemented in a variety of different forms. Some capabilities are restricted by an intentional lack of APIs to the sensitive functionality (e.g. there is no Android API for directly manipulating the SIM card)... source : android permission model
Upvotes: 0