首页 > 代码库 > 获取MCCMNC号

获取MCCMNC号

 public static boolean isColombiaSpanishSimCard(){
        TelephonyManager telManager = (TelephonyManager) mContextCopy.getSystemService(Context.TELEPHONY_SERVICE);
        String imsi = telManager.getSubscriberId();
            android.util.Log.d("Neo","imsi == "+imsi);
        if(null != imsi){
            android.util.Log.d("Neo","imsi.substring(0,6) == "+imsi.substring(0,6));
            if("732103".equals(imsi.substring(0,6)) || "732111".equals(imsi.substring(0,6))){
                return true;
            }
        }
        return false;
    }

获取MCCMNC号