洞口做網(wǎng)站推廣信息怎么寫
源碼閱讀:AOSPXRef
常用日志關(guān)鍵字
Note:">"下發(fā)MD,"<"MD上報,[]中的id有請求和返回的對應(yīng)關(guān)系
KEY | Comment |
---|---|
> OPERATOR | 下發(fā)MD,請求運營商信息 |
< OPERATOR | MD上報運營商注冊信息 |
> DATA_REGISTRATION_STATE | 下發(fā)MD請求駐網(wǎng)狀態(tài)信息 |
< DATA_REGISTRATION_STATE | MD上報駐網(wǎng)狀態(tài) |
Poll ServiceState done | SST 更新網(wǎng)絡(luò)狀態(tài)完成 |
updateSpnDisplayCdnr | 網(wǎng)絡(luò)狀態(tài)變化觸發(fā)SPN更新 |
實網(wǎng)Log分析
// radio關(guān)閉時不會更新SPN
03-27 14:23:59.808824 ?2120 ?2120 D MTKSST ?: [GsmSST1] updateSpnDisplay: radio is off w/ showPlmn=true plmn=null
03-27 14:23:59.808919 ?2120 ?2120 D MTKSST ?: [GsmSST1] updateSpnDisplay: rawSpn =?
// 還沒獲取到運營商信息。(請求運營商信息的過程很快,耗時短,都不需要半秒的)
03-27 14:23:29.955064 ?2120 ?2120 D RILJ ? ?: [1938]> OPERATOR [PHONE0]
03-27 14:23:29.967462 ?2120 ?2455 D RILJ ? ?: [1938]< OPERATOR {, , } [PHONE0]
// 還沒駐網(wǎng)成功,搜網(wǎng)或處于飛行模式
03-27 14:23:59.737880 ?2120 ?2585 D RILJ ? ?: [1984]> DATA_REGISTRATION_STATE [PHONE0]
03-27 14:23:59.747966 ?2120 ?2455 D RILJ ? ?: [1984]< DATA_REGISTRATION_STATE {.regState = NOT_REG_MT_SEARCHING_OP, .rat = UNKNOWN, .reasonForDenial = NONE, .cellIdentity = {.noinit = {}}, .registeredPlmn = , .accessTechnologySpecificInfo = {.noinit = {}}} [PHONE0]
// 駐網(wǎng)在本地LTE網(wǎng)絡(luò),從mccmnc和registeredPlmn可以確認(rèn)。
疑問:根據(jù)什么確認(rèn)顯示alphaLong還是alphaShort?
03-27 14:23:59.969940 ?2120 ?2585 D RILJ ? ?: [1988]> DATA_REGISTRATION_STATE [PHONE0]
03-27 14:24:00.049672 ?2120 ?2455 D RILJ ? ?: [1988]< DATA_REGISTRATION_STATE {.regState = REG_HOME, .rat = LTE, .reasonForDenial = NONE, .cellIdentity = {.lte = {.base = {.base = {.mcc = 722, .mnc = 07, .ci = 256, .pci = 0, .tac = 1, .earfcn = 2525}, .operatorNames = {.alphaLong = AR - Movistar, .alphaShort = Movistar}, .bandwidth = 10000}, .additionalPlmns = [], .optionalCsgInfo = {.noinit = {}}, .bands = [5]}}, .registeredPlmn = 72207, .accessTechnologySpecificInfo = {.eutranInfo = {.lteVopsInfo = {.isVopsSupported = true, .isEmcBearerSupported = true}, .nrIndicators = {.isEndcAvailable = false, .isDcNrRestricted = false, .isNrAvailable = false}}}} [PHONE0]
03-27 14:23:59.960990 ?2120 ?2120 D RILJ ? ?: [1986]> OPERATOR [PHONE0]
//?通知應(yīng)用程序網(wǎng)絡(luò)狀態(tài)發(fā)生變化
03-27 14:23:59.986333 ?2120 ?2455 D RILJ ? ?: Unsol response received; Sending ack to ril.cpp [PHONE0]
03-27 14:23:59.986511 ?2120 ?2455 D RILJ ? ?: [UNSL]< UNSOL_RESPONSE_NETWORK_STATE_CHANGED [PHONE0]
// 駐網(wǎng)信息,由Modem根據(jù)當(dāng)時注冊網(wǎng)絡(luò)的信息上報的,和Telephony的SST信息一致。
03-27 14:23:59.987577 ?2120 ?2455 D RILJ ? ?: [1986]< OPERATOR {AR - Movistar, Movistar, 72207} [PHONE0]
// CS在無線局域網(wǎng),注冊在HOME?LTE(在CS域中,語音和短信數(shù)據(jù)通過電路交換方式傳輸),可用服務(wù):[VOICE, SMS, VIDEO]
03-27 14:24:00.057818 ?2120 ?2585 D NRM-C-0 : onRequestNetworkRegistrationInfoComplete result: 0, info: NetworkRegistrationInfo{ domain=CS transportType=WWAN registrationState=HOME networkRegistrationState=HOME roamingType=NOT_ROAMING accessNetworkTechnology=LTE rejectCause=0 emergencyEnabled=false availableServices=[VOICE,SMS,VIDEO] cellIdentity=CellIdentityLte:{ mCi=256 mPci=0 mTac=1 mEarfcn=2525 mBands=[5] mBandwidth=10000 mMcc=722 mMnc=07 mAlphaLong=AR - Movistar mAlphaShort=Movistar mAdditionalPlmns={} mCsgInfo=null} voiceSpecificInfo=VoiceSpecificRegistrationInfo { mCssSupported=false mRoamingIndicator=0 mSystemIsInPrl=0 mDefaultRoamingIndicator=0} dataSpecificInfo=null nrState=**** rRplmn=72207 isUsingCarrierAggregation=false}
// PS狀態(tài)變化,從搜網(wǎng)到注冊完成,駐網(wǎng)在HOME LTE,具備DATA能力,
03-27 14:24:00.074533 ?2120 ?2601 D NRM-I-0 : onRequestNetworkRegistrationInfoComplete result: 0, info: NetworkRegistrationInfo{ domain=PS transportType=WLAN registrationState=NOT_REG_OR_SEARCHING networkRegistrationState=NOT_REG_OR_SEARCHING roamingType=NOT_ROAMING accessNetworkTechnology=UNKNOWN rejectCause=0 emergencyEnabled=false availableServices=[] cellIdentity=null voiceSpecificInfo=null dataSpecificInfo=android.telephony.DataSpecificRegistrationInfo :{ maxDataCalls = 0 isDcNrRestricted = false isNrAvailable = false isEnDcAvailable = false mLteAttachResultType = 0 mLteAttachExtraInfo = 0 LteVopsSupportInfo : ?mVopsSupport = 1 mEmcBearerSupport = 1 } nrState=**** rRplmn=null isUsingCarrierAggregation=false}
03-27 14:24:00.103294 ?2120 ?2585 D NRM-C-0 : onRequestNetworkRegistrationInfoComplete result: 0, info: NetworkRegistrationInfo{ domain=PS transportType=WWAN registrationState=HOME networkRegistrationState=HOME roamingType=NOT_ROAMING accessNetworkTechnology=LTE rejectCause=0 emergencyEnabled=false availableServices=[DATA] cellIdentity=CellIdentityLte:{ mCi=256 mPci=0 mTac=1 mEarfcn=2525 mBands=[5] mBandwidth=10000 mMcc=722 mMnc=07 mAlphaLong=AR - Movistar mAlphaShort=Movistar mAdditionalPlmns={} mCsgInfo=null} voiceSpecificInfo=null dataSpecificInfo=android.telephony.DataSpecificRegistrationInfo :{ maxDataCalls = 16 isDcNrRestricted = false isNrAvailable = false isEnDcAvailable = false mLteAttachResultType = 0 mLteAttachExtraInfo = 0 LteVopsSupportInfo : ?mVopsSupport = 2 mEmcBearerSupport = 2 } nrState=**** rRplmn=72207 isUsingCarrierAggregation=false}
// TS.25是MD配,但是來源TS.25的SPN顯示優(yōu)先級很低
03-27 14:24:00.208931 ?2120 ?2120 D MtkRILJ : lookupOperatorNameMVNO plmn name update to TS.25/MVNO: AR - Movistar
// ServiceState 更新網(wǎng)絡(luò)狀態(tài)完成,切換到LTE,alphatag更新到AR - Movistar
03-27 14:24:00.223138 ?2120 ?2120 D MTKSST ?: [GsmSST0] Poll ServiceState done: newSS={mVoiceRegState=0(IN_SERVICE), mDataRegState=0(IN_SERVICE), mChannelNumber=2525, duplexMode()=1, mCellBandwidths=[10000], mOperatorAlphaLong=AR - Movistar, mOperatorAlphaShort=AR - Movistar, isManualNetworkSelection=false(automatic), getRilVoiceRadioTechnology=14(LTE), getRilDataRadioTechnology=14(LTE), mCssIndicator=unsupported, mNetworkId=-1, mSystemId=-1, mCdmaRoamingIndicator=-1, mCdmaDefaultRoamingIndicator=-1, mIsEmergencyOnly=false, isUsingCarrierAggregation=false, mArfcnRsrpBoost=0, mNetworkRegistrationInfos=[NetworkRegistrationInfo{ domain=PS transportType=WLAN registrationState=NOT_REG_OR_SEARCHING networkRegistrationState=NOT_REG_OR_SEARCHING roamingType=NOT_ROAMING accessNetworkTechnology=UNKNOWN rejectCause=0 emergencyEnabled=false availableServices=[] cellIdentity=null voiceSpecificInfo=null dataSpecificInfo=android.telephony.DataSpecificRegistrationInfo :{ maxDataCalls = 0 isDcNrRestricted = false isNrAvailable = false isEnDcAvailable = false mLteAttachResultType = 0 mLteAttachExtraInfo = 0 LteVopsSupportInfo : ?mVopsSupport = 1 mEmcBearerSupport = 1 } nrState=**** rRplmn=null isUsingCarrierAggregation=false}, NetworkRegistrationInfo{ domain=CS transportType=WWAN registrationState=HOME networkRegistrationState=HOME roamingType=NOT_ROAMING accessNetworkTechnology=LTE rejectCause=0 emergencyEnabled=false availableServices=[VOICE,SMS,VIDEO] cellIdentity=CellIdentityLte:{ mCi=256 mPci=0 mTac=1 mEarfcn=2525 mBands=[5] mBandwidth=10000 mMcc=722 mMnc=07 mAlphaLong=AR - Movistar mAlphaShort=AR - Movistar mAdditionalPlmns={} mCsgInfo=null} voiceSpecificInfo=VoiceSpecificRegistrationInfo { mCssSupported=false mRoamingIndicator=0 mSystemIsInPrl=0 mDefaultRoamingIndicator=0} dataSpecificInfo=null nrState=**** rRplmn=72207 isUsingCarrierAggregation=false}, NetworkRegistrationInfo{ domain=PS transportType=WWAN registrationState=HOME networkRegistrationState=HOME roamingType=NOT_ROAMING accessNetworkTechnology=LTE rejectCause=0 emergencyEnabled=false availableServices=[DATA] cellIdentity=CellIdentityLte:{ mCi=256 mPci=0 mTac=1 mEarfcn=2525 mBands=[5] mBandwidth=10000 mMcc=722 mMnc=07 mAlphaLong=AR - Movistar mAlphaShort=AR - Movistar mAdditionalPlmns={} mCsgInfo=null} voiceSpecificInfo=null dataSpecificInfo=android.telephony.DataSpecificRegistrationInfo :{ maxDataCalls = 16 isDcNrRestricted = false isNrAvailable = false isEnDcAvailable = false mLteAttachResultType = 0 mLteAttachExtraInfo = 0 LteVopsSupportInfo : ?mVopsSupport = 2 mEmcBearerSupport = 2 } nrState=**** rRplmn=72207 isUsingCarrierAggregation=false}], mNrFrequencyRange=0, mOperatorAlphaLongRaw=AR - Movistar, mOperatorAlphaShortRaw=Movistar, mIsDataRoamingFromRegistration=false, mIsIwlanPreferred=false}
03-27 14:24:00.224207 ?2120 ?2120 D MTKSST ?: [GsmSST0] RAT switched Unknown -> LTE at cell 256
// 非漫游,根據(jù)EF中displayRule顯示SPN值,但是實際界面顯示了PLMN
03-27 14:24:00.252327 ?2120 ?2120 D MTKSST ?: [GsmSST0] carrierName=, overrideName=
03-27 14:24:00.252465 ?2120 ?2120 D ServiceStateTracker: [0] updateSpnDisplayCdnr: curSpn = ; curPlmn = AR - Movistar; curDisplayRule = 2
03-27 14:24:00.258072 ?2120 ?2120 I CDNR : getCarrierDisplayNameFromEf withoutRoaming = false
03-27 14:24:00.258204 ?2120 ?2120 I CDNR : getCarrierDisplayNameFromEf registeredPlmnNumeric = 72207; isRoaming = false; showSpn = true; showPlmn = false; spn =?
// 根據(jù)EF內(nèi)容,更新了SPN為AR - Movistar,同PLMN,所以會顯示AR - Movistar
03-27 14:24:00.258433 ?2120 ?2120 D CDNR : getCarrierDisplayNameFromEf displayRule = { SPN_bit = 2, PLMN_bit = 0 }; spn = AR - Movistar; plmn = AR - MovistarshowSpn = true; showPlmn = false
03-27 14:24:00.258617 ?2120 ?2120 D CDNR : CarrierName from EF: { spn = AR - Movistar, dataSpn = null, showSpn = true, plmn = AR - Movistar, showPlmn = false
03-27 14:24:00.267668 ?2120 ?2120 D ServiceStateTracker: [0] updateTctSpnDisplay: updateSpnDisplay: changed sending intent, rule=2, showPlmn='false', plmn='AR - Movistar', showSpn='true', spn='AR - Movistar', dataSpn='null', subId='2'
03-27 14:24:00.303102 ?2120 ?2120 D ServiceStateTracker: [0] setCarrierText simNumeric:72207, operatorNumeric:72207, gid1:FFFFFFFF, carrierText:AR - Movistar
相關(guān)說明
1、不同平臺的Modem配置TS.25或許會存在差異,比如6835芯片的配置路徑在modem_t_6835 / mcu/custom/service/plmn/TS25。
2、TS25文件用于顯示運營商名稱,較新的平臺機(jī)制(帶MIPC的平臺)才移到Modem維護(hù)的。沒有TS.25時,會在Telephony AP側(cè)配置,spn-conf.xml中。
定制方案
無法修改網(wǎng)絡(luò)上報的信息,客制化只能在Telphony FW中配置運營商名稱期望值。
針對平臺定義的運營商名稱,修改在spn-conf.xml,具體看mk編譯生效文件的路徑,可能用:
- /device/mediatek/system/common/
- /device/mediatek/common/
<spnOverride numeric="72207" spn="Movistar"/>
<spnOverride numeric="722070" spn="Movistar"/>