4. mtklog分析

来源:互联网 发布:js timestamp 格式化 编辑:程序博客网 时间:2024/06/05 17:31
一、mtklog抓取:1. 从windos系统进入到手机/sdcard/mtklog/,复制出来2. adb pull /data/media/0/mtklog/ e:mtklog/// 不知道什么目录就find3. 用工具抓4. user版本如何打卡mtklog:*#*#889988#*#* -> Log and Debugging -> MTKLogger -> open5. user版本如何adbsetting -> About phone -> Build number (连续单击5次) -> 返回上一级 -> Developer options -> USB debuging -> open二、mtklog分析:1. mdlog1// modem 相关底层的log1.1 MDLog1_2010_0101_000152// 每次打开mtklog都会新建一个文件夹1.2 MDLog1_2015_0101_0000422. mobilelog// android log 和 kernel log2.1 APLog_2010_0101_0001472.1 APLog_2015_0101_000037atf_log// 所有_log都是进入安卓之后的atf_log.boot// 所有.boot都是启动到进入安卓之前的logbootprof// 启动的简要信息 - 可以分析启动时间 - 启动模式(普通or看门狗or按键())cmdline// lk传给kernel的参数(包括lcm等) - 可以自己加crash_log// 崩溃logcrash_log.bootevents_log// 事件log,主要输出记录各个activity周期及事件events_log.boot:kernel_log// 内核log,常用kernel_log.bootlast_kmsg// 上一次关机前的log - 可以分析重启原因main_log// hal层的log打印在这里main_log.bootmblog_history// 本目录下所有log的大小等信息ProjectConfig.mk// 工程配置properties// 属性radio_log// 输出通话,网络状态变化radio_log.bootsys_log// jni、framework层log,Exception定位点sys_log.boot3. netlog//网络log3.1 NTLog_2010_0101_000147NTLog_2015_0101_000037tcpdump_NTLog_2015_0101_000037_start.cap.tmp4. running_file_tree.txt//