I decided to add it as an answer ...
I found a way to solve this problem on a CDMA phone. If it is a CDMA phone, then the phone always has ICC equipment comparable to SIM cards in GSM. All you have to do is use the system properties related to the hardware. Programmatically, you can use Java reflection to obtain this information. This is not changeable, even the system is rooted unlike a GSM device. Class c = Class.forName ("android.os.SystemProperties"); Method get = c.getMethod ("get", String.class); String homeOperator = ((String) get.invoke (c, "ro.cdma.home.operator.numeric"));
rana source share