Android之mtklog分析

非淡泊无以明志,非宁静无以致远。这篇文章主要讲述Android之mtklog分析相关的知识,希望能为你提供帮助。
                                                        android之mtklog分析
          【海外场测反馈】【xxx】动态测试时对比机xxxx拨打测试机xxxxx自动挂断电话
        工作中遇到一个掉话的问题,需要分析log,log比较大,我也没法上传,就简答的讲讲吧
【Android之mtklog分析】      其实我也不太懂,随便说说吧:
    1.   在mobilelog/APLog_2016_0902_134517/radio_log中:
       
56200:09-02 13:50:59.012418 1570 1570 D CallManager: handleMessage (EVENT_SERVICE_STATE_CHANGED)
mobilelog/APLog_2016_0902_134517/radio_log:56202:09-02 13:50:59.01338815701570 D CallManager:handleMessage (EVENT_SERVICE_STATE_CHANGED)
mobilelog/APLog_2016_0902_134517/radio_log:56586:09-02 13:51:00.57127815701570 D CallManager:handleMessage (EVENT_INCOMING_RING)
mobilelog/APLog_2016_0902_134517/radio_log:57025:09-02 13:51:02.36129815701570 D CallManager:handleMessage (EVENT_IN_CALL_VOICE_PRIVACY_OFF)
mobilelog/APLog_2016_0902_134517/radio_log:57058:09-02 13:51:02.36495715701570 D CallManager:handleMessage (EVENT_IN_CALL_VOICE_PRIVACY_OFF)
mobilelog/APLog_2016_0902_134517/radio_log:57101:09-02 13:51:02.37368615701570 D CallManager:handleMessage (EVENT_PRECISE_CALL_STATE_CHANGED)
mobilelog/APLog_2016_0902_134517/radio_log:60984:09-02 13:52:25.81575215701570 D CallManager:handleMessage (EVENT_DISCONNECT)
mobilelog/APLog_2016_0902_134517/radio_log:61056:09-02 13:52:25.82767415701570 D CallManager:handleMessage (EVENT_PRECISE_CALL_STATE_CHANGED)
mobilelog/APLog_2016_0902_134517/radio_log:62892:09-02 13:52:27.08098115701570 D CallManager:handleMessage (EVENT_SERVICE_STATE_CHANGED)
mobilelog/APLog_2016_0902_134517/radio_log:62894:09-02 13:52:27.08201915701570 D CallManager:handleMessage (EVENT_SERVICE_STATE_CHANGED)
通过这可以看出从来电到断掉连接
2.在mobilelog/APLog_2016_0901_114539/sys_log:中
mobilelog/APLog_2016_0901_114539/sys_log:4911:09-01 11:46:14.887454 980 4368 D ConnectivityService: sending notification RELEASED for NetworkRequest [ id=21, legacyType=-1, [ Capabilities: INTERNET& NOT_RESTRICTED& TRUSTED& NOT_VPN] ]
mobilelog/APLog_2016_0901_114539/sys_log:22568:09-01 11:53:32.4099709804368 D ConnectivityService: sending notification RELEASED for NetworkRequest [ id=22, legacyType=-1, [ Capabilities: INTERNET& NOT_RESTRICTED& TRUSTED
释放掉网络请求
3.通过mobilelog/APLog_2016_0902_134517/radio_log:中
mobilelog/APLog_2016_0902_134517/radio_log:4924:09-02 13:45:27.939767 1570 1570 D CAT : StkAppService: processPhoneStateChanged fg state -> DISCONNECTED,DIALING
mobilelog/APLog_2016_0902_134517/radio_log:4925:09-02 13:45:27.93978815701570 D CAT: StkAppService: processPhoneStateChanged bg state -> IDLE,IDLE
mobilelog/APLog_2016_0902_134517/radio_log:4936:09-02 13:45:27.94093315701570 D CAT: StkAppService: processPhoneStateChanged fg state -> DIALING,DIALING
mobilelog/APLog_2016_0902_134517/radio_log:4937:09-02 13:45:27.94095415701570 D CAT: StkAppService: processPhoneStateChanged bg state -> IDLE,IDLE
mobilelog/APLog_2016_0902_134517/radio_log:5225:09-02 13:45:27.98169515701570 D CAT: StkAppService: processPhoneStateChanged fg state -> DIALING,DIALING
mobilelog/APLog_2016_0902_134517/radio_log:5226:09-02 13:45:27.98171615701570 D CAT: StkAppService: processPhoneStateChanged bg state -> IDLE,IDLE
mobilelog/APLog_2016_0902_134517/radio_log:6545:09-02 13:45:33.16035515701570 D CAT: StkAppService: processPhoneStateChanged fg state -> DIALING,ALERTING
mobilelog/APLog_2016_0902_134517/radio_log:6546:09-02 13:45:33.16039215701570 D CAT: StkAppService: processPhoneStateChanged bg state -> IDLE,IDLE
mobilelog/APLog_2016_0902_134517/radio_log:6821:09-02 13:45:39.78239115701570 D CAT: StkAppService: processPhoneStateChanged fg state -> ALERTING,ACTIVE
mobilelog/APLog_2016_0902_134517/radio_log:6828:09-02 13:45:39.78382315701570 D CAT: StkAppService: processPhoneStateChanged bg state -> IDLE,IDLE
mobilelog/APLog_2016_0902_134517/radio_log:37785:09-02 13:49:35.81321915701570 D CAT: StkAppService: processPhoneStateChanged fg state -> ACTIVE,IDLE
mobilelog/APLog_2016_0902_134517/radio_log:37786:09-02 13:49:35.81323815701570 D CAT: StkAppService: processPhoneStateChanged bg state -> IDLE,IDLE
mobilelog/APLog_2016_0902_134517/radio_log:43971:09-02 13:50:03.84349015701570 D CAT: StkAppService: processPhoneStateChanged fg state -> IDLE,IDLE
mobilelog/APLog_2016_0902_134517/radio_log:43972:09-02 13:50:03.84351315701570 D CAT: StkAppService: processPhoneStateChanged bg state -> IDLE,IDLE
mobilelog/APLog_2016_0902_134517/radio_log:47324:09-02 13:50:08.79930315701570 D CAT: StkAppService: processPhoneStateChanged fg state -> IDLE,ACTIVE
mobilelog/APLog_2016_0902_134517/radio_log:47327:09-02 13:50:08.79942815701570 D CAT: StkAppService: processPhoneStateChanged bg state -> IDLE,IDLE
mobilelog/APLog_2016_0902_134517/radio_log:51570:09-02 13:50:39.93690315701570 D CAT: StkAppService: processPhoneStateChanged fg state -> ACTIVE,IDLE
mobilelog/APLog_2016_0902_134517/radio_log:51571:09-02 13:50:39.93694015701570 D CAT: StkAppService: processPhoneStateChanged bg state -> IDLE,IDLE
mobilelog/APLog_2016_0902_134517/radio_log:54314:09-02 13:50:56.71415515701570 D CAT: StkAppService: processPhoneStateChanged fg state -> IDLE,IDLE
mobilelog/APLog_2016_0902_134517/radio_log:54315:09-02 13:50:56.71417515701570 D CAT: StkAppService: processPhoneStateChanged bg state -> IDLE,IDLE
mobilelog/APLog_2016_0902_134517/radio_log:57104:09-02 13:51:02.37381315701570 D CAT: StkAppService: processPhoneStateChanged fg state -> IDLE,ACTIVE
mobilelog/APLog_2016_0902_134517/radio_log:57107:09-02 13:51:02.37393815701570 D CAT: StkAppService: processPhoneStateChanged bg state -> IDLE,IDLE
mobilelog/APLog_2016_0902_134517/radio_log:61059:09-02 13:52:25.82777315701570 D CAT: StkAppService: processPhoneStateChanged fg state -> ACTIVE,DISCONNECTED
mobilelog/APLog_2016_0902_134517/radio_log:61061:09-02 13:52:25.82780415701570 D CAT: StkAppService: processPhoneStateChanged bg state -> IDLE,IDLE
4.通过mobilelog/APLog_2016_0901_114539/sys_log:中
mobilelog/APLog_2016_0901_114539/sys_log:2402:09-01 11:45:51.276954 980 4368 D ConnectivityService: sending notification AVAILABLE for NetworkRequest [ id=3, legacyType=-1, [] ]
mobilelog/APLog_2016_0901_114539/sys_log:2403:09-01 11:45:51.2774119804368 D ConnectivityService: sending notification AVAILABLE for NetworkRequest [ id=7, legacyType=-1, [ Capabilities: INTERNET& NOT_RESTRICTED& TRUSTED& NOT_VPN] ]
mobilelog/APLog_2016_0901_114539/sys_log:2412:09-01 11:45:51.2821079804368 D ConnectivityService: sending notification PRECHECK for NetworkRequest [ id=3, legacyType=-1, [] ]
mobilelog/APLog_2016_0901_114539/sys_log:2416:09-01 11:45:51.2827919804368 D ConnectivityService: sending notification PRECHECK for NetworkRequest [ id=7, legacyType=-1, [ Capabilities: INTERNET& NOT_RESTRICTED& TRUSTED& NOT_VPN] ]
mobilelog/APLog_2016_0901_114539/sys_log:2439:09-01 11:45:51.2860459804368 D ConnectivityService: sending notification CAP_CHANGED for NetworkRequest [ id=3, legacyType=-1, [] ]
mobilelog/APLog_2016_0901_114539/sys_log:2441:09-01 11:45:51.2892309804368 D ConnectivityService: sending notification CAP_CHANGED for NetworkRequest [ id=7, legacyType=-1, [ Capabilities: INTERNET& NOT_RESTRICTED& TRUSTED& NOT_VPN] ]
mobilelog/APLog_2016_0901_114539/sys_log:4158:09-01 11:46:02.7615519804368 D ConnectivityService: sending notification AVAILABLE for NetworkRequest [ id=21, legacyType=-1, [ Capabilities: INTERNET& NOT_RESTRICTED& TRUSTED& NOT_VPN] ]
mobilelog/APLog_2016_0901_114539/sys_log:4911:09-01 11:46:14.8874549804368 D ConnectivityService: sending notification RELEASED for NetworkRequest [ id=21, legacyType=-1, [ Capabilities: INTERNET& NOT_RESTRICTED& TRUSTED& NOT_VPN] ]
mobilelog/APLog_2016_0901_114539/sys_log:5878:09-01 11:46:21.0660409804368 D ConnectivityService: sending notification AVAILABLE for NetworkRequest [ id=3, legacyType=-1, [] ]
mobilelog/APLog_2016_0901_114539/sys_log:5880:09-01 11:46:21.0664479804368 D ConnectivityService: sending notification AVAILABLE for NetworkRequest [ id=7, legacyType=-1, [ Capabilities: INTERNET& NOT_RESTRICTED& TRUSTED& NOT_VPN] ]
mobilelog/APLog_2016_0901_114539/sys_log:5883:09-01 11:46:21.0668609804368 D ConnectivityService: sending notification PRECHECK for NetworkRequest [ id=3, legacyType=-1, [] ]
mobilelog/APLog_2016_0901_114539/sys_log:5885:09-01 11:46:21.0672379804368 D ConnectivityService: sending notification PRECHECK for NetworkRequest [ id=7, legacyType=-1, [ Capabilities: INTERNET& NOT_RESTRICTED& TRUSTED& NOT_VPN] ]
mobilelog/APLog_2016_0901_114539/sys_log:5937:09-01 11:46:21.1373629804368 D ConnectivityService: sending notification CAP_CHANGED for NetworkRequest [ id=3, legacyType=-1, [] ]
mobilelog/APLog_2016_0901_114539/sys_log:5939:09-01 11:46:21.1418099804368 D ConnectivityService: sending notification CAP_CHANGED for NetworkRequest [ id=7, legacyType=-1, [ Capabilities: INTERNET& NOT_RESTRICTED& TRUSTED& NOT_VPN] ]
mobilelog/APLog_2016_0901_114539/sys_log:6087:09-01 11:46:23.7364909804368 D ConnectivityService: sending notification CAP_CHANGED for NetworkRequest [ id=3, legacyType=-1, [] ]
mobilelog/APLog_2016_0901_114539/sys_log:6089:09-01 11:46:23.7383299804368 D ConnectivityService: sending notification CAP_CHANGED for NetworkRequest [ id=7, legacyType=-1, [ Capabilities: INTERNET& NOT_RESTRICTED& TRUSTED& NOT_VPN] ]
mobilelog/APLog_2016_0901_114539/sys_log:6570:09-01 11:46:38.4635409804368 D ConnectivityService: sending notification AVAILABLE for NetworkRequest [ id=22, legacyType=-1, [ Capabilities: INTERNET& NOT_RESTRICTED& TRUSTED& NOT_VPN] ]
mobilelog/APLog_2016_0901_114539/sys_log:6578:09-01 11:46:38.4643709804368 D ConnectivityService: sending notification AVAILABLE for NetworkRequest [ id=22, legacyType=-1, [ Capabilities: INTERNET& NOT_RESTRICTED& TRUSTED& NOT_VPN] ]
mobilelog/APLog_2016_0901_114539/sys_log:21200:09-01 11:53:30.6544099804368 D ConnectivityService: sending notification LOST for NetworkRequest [ id=3, legacyType=-1, [] ]
mobilelog/APLog_2016_0901_114539/sys_log:21202:09-01 11:53:30.6548469804368 D ConnectivityService: sending notification LOST for NetworkRequest [ id=7, legacyType=-1, [ Capabilities: INTERNET& NOT_RESTRICTED& TRUSTED& NOT_VPN] ]
mobilelog/APLog_2016_0901_114539/sys_log:21204:09-01 11:53:30.6552239804368 D ConnectivityService: sending notification LOST for NetworkRequest [ id=22, legacyType=-1, [ Capabilities: INTERNET& NOT_RESTRICTED& TRUSTED& NOT_VPN] ]
mobilelog/APLog_2016_0901_114539/sys_log:22568:09-01 11:53:32.4099709804368 D ConnectivityService: sending notification RELEASED for NetworkRequest [ id=22, legacyType=-1, [ Capabilities: INTERNET& NOT_RESTRICTED& TRUSTED
可以看出网络连接断开
下面是mtk给的分析结果,因为log中有一些文件只有mtk才有工具能打开查看,我们是看不到里面的内容的,
这次是网络挂断的call,应该是主叫异常导致的。手机处理正常。
1460091, 278588, 251943, 13:50:55:040 2016/09/02, MOD_CC_2, , TRACE_PEER, [NW-> MS] CC__SETUP
1460173, 278591, 251946, 13:50:55:040 2016/09/02, MOD_CC_2, , TRACE_PEER, [MS-> NW] CC__CALL_CONFIRMED
1460455, 278830, 252166, 13:50:56:240 2016/09/02, MOD_CC_2, , TRACE_PEER, [MS-> NW] CC__ALERTING
1464486, 280013, 253258, 13:51:01:640 2016/09/02, MOD_CC_2, , TRACE_PEER, [MS-> NW] CC__CONNECT
1464573, 280082, 253322, 13:51:02:040 2016/09/02, MOD_CC_2, , TRACE_PEER, [NW-> MS] CC__CONNECT_ACKNOWLEDGE
1498308, 298067, 269923, 13:52:25:040 2016/09/02, MOD_CC_2, , TRACE_PEER, [NW-> MS] CC__DISCONNECT
1498598, 298148, 269998, 13:52:25:440 2016/09/02, MOD_NIL, , TRACE_INFO, [AT_U p23, s14]+ECPI: 1,1,0,1,,,"",,"",126
1498324, 298067, 269923, 13:52:25:040 2016/09/02, MOD_CC_2, , TRACE_PEER, [MS-> NW] CC__RELEASE
1498569, 298148, 269998, 13:52:25:440 2016/09/02, MOD_CC_2, , TRACE_PEER, [NW-> MS] CC__RELEASE_COMPLETE

    推荐阅读