private String getOperatorNumeric() { String result = null; CdmaDataConnectionTracker cdmaDct = (CdmaDataConnectionTracker) (mPhone.mDataConnectionTracker); if (mCdmaSsm.getCdmaSubscriptionSource() == CdmaSubscriptionSourceManager.SUBSCRIPTION_FROM_NV) { result = SystemProperties.get(CDMAPhone.PROPERTY_CDMA_HOME_OPERATOR_NUMERIC); log("operatorNumeric for NV " + result); } else if (cdmaDct.getIccRecords() != null) { result = cdmaDct.getIccRecords().getOperatorNumeric(); log("operatorNumeric for icc " + result); } else { log("IccRecords == null -> operatorNumeric = null"); } return result; }
/** * - Create the default profiles. - One for DUN and another for all the default profiles supported */ private void createDefaultDataProfiles() { log("Creating default profiles..."); String ipProto = SystemProperties.get(TelephonyProperties.PROPERTY_CDMA_IPPROTOCOL, "IP"); String roamingIpProto = SystemProperties.get(TelephonyProperties.PROPERTY_CDMA_ROAMING_IPPROTOCOL, "IP"); CdmaDataConnectionTracker cdmaDct = (CdmaDataConnectionTracker) (mPhone.mDataConnectionTracker); DataProfileCdma dp; dp = new DataProfileCdma( cdmaDct.apnTypeToId(Phone.APN_TYPE_DEFAULT), null, null, null, null, RILConstants.SETUP_DATA_AUTH_PAP_CHAP, mDefaultApnTypes, ipProto, roamingIpProto, mPhone.getServiceState().getRadioTechnology()); dp.setProfileId(RILConstants.DATA_PROFILE_DEFAULT); mDataProfilesList.add((DataProfile) dp); String[] types = {Phone.APN_TYPE_DUN}; dp = new DataProfileCdma( cdmaDct.apnTypeToId(Phone.APN_TYPE_DUN), null, null, null, null, RILConstants.SETUP_DATA_AUTH_PAP_CHAP, types, ipProto, roamingIpProto, mPhone.getServiceState().getRadioTechnology()); dp.setProfileId(RILConstants.DATA_PROFILE_TETHERED); mDataProfilesList.add((DataProfile) dp); }