问题描述
我在寻找一种方式,以找出是否在Android设备是SIM卡锁定与否。我知道,在/ EFS /应该在哪里这个设置存储在一个文件中。的问题是,不根有向/ EFS /无访问。
I'm looking for a way to find out if an android device is SIM locked or not. I know that in /efs/ should be a file where this setting is stored at. The problem is that without root there's no access to /efs/.
USSD codeS一样的#的#7465625#确实没有更多的工作,为Android 4.1.2在三星的设备。
USSD codes like ##7465625# does no more work for Android 4.1.2 on Samsung devices.
所以,没有任何人知道我可以找出是否有启用了SIM卡锁定?
So does anybody know how I can figure out if there's a SIM lock enabled?
谢谢,汤姆
推荐答案
假设我们在谈论同一种SIM卡锁,你可以检查SIM卡锁定和使用的。
Assuming we're talking about the same kind of Sim Lock, you can check SIM Lock and a variety of other things using the Telephony Manager
.
TelephonyManager telephonyManager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
int simState = telephonyManager.getSimState();
if (simState == TelephonyManager.SIM_STATE_NETWORK_LOCKED) {
//do something
}
这篇关于我如何检查Android应用程序级SIM卡锁的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!