如何在Android上阅读辛原始数据? [英] How to read Sim raw data on Android?

查看:99
本文介绍了如何在Android上阅读辛原始数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法读取SIM卡的原始数据?类似如何与SmsMessage原始数据时是PDU读取原始数据?

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?

推荐答案

有关读取SIM卡相关的信息需要的 TelephonyManager API

For reading SIM card related information you need TelephonyManager API.

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

该TelephonyManager API的方法中包含许多像MNC,MCC,SimOperator的名称,小区定位等。

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

这篇关于如何在Android上阅读辛原始数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆