当前位置:网站首页>MTK full dump抓取
MTK full dump抓取
2022-07-02 07:35:00 【鑫鑫缺点金】
环境搭建
注:一切dump基于刷入了debugpolicy (boot_para.img)
查看是否刷入debugpolicy命令
adb shell getprop ro.boot.dp
或者
adb shell
getprop | grep boot.dp
看打印什么
对照枚举信息
代码路径:vendor/mediatek/proprietary/bootable/bootloader/lk/include/dev/mrdump.h
enum {
MRDUMP_SUCCESS_ENABLE = 1, //usr版本,需要刷入
MRDUMP_ALWAYS_ENABLE = 2, //userdebug 不需要刷入
MRDUMP_RUNTIME_DISABLE = 3,
......
};
生成boot_para.img看前面我已经写过的
生成boot_para.img
检查是开启什么dump
代码路径:vendor/mediatek/proprietary/bootable/bootloader/lk/app/mt_boot/aee/mrdump_dconfig.c
//检查开启的是mindump还是fulldump
int aee_check_enable(void)
{
#if MTK_AEE_LEVEL == 1
int val = AEE_DEFAULT_SETTING;
const char *params = dconfig_get_env("aee_enable");
if (params != NULL) {
if (strcmp(params, "mini") == 0) {
val = mrdump_check_enable() > MRDUMP_ALWAYS_ENABLE ? AEE_ENABLE_MINI
: AEE_ENABLE_FULL;
} else if (strcmp(params, "full") == 0) {
val = AEE_ENABLE_FULL;
} else if (strcmp(params, "no") == 0) {
val = AEE_ENABLE_NO;
}
}
为什么安装GAT和SpOffineDebugSuite
当手机发生重启、死机问题的时候我们要对其进行分析,但是dump的信息量很大我们排查非常不便,
这时候我们可以用这两个工具进行简要的分析,错误信息提取。
环境搭建以及使用
我之前的文档有写过可以参考一下:
MTK基于GAT工具和SpOffineDebugSuite工具 dump 抓取和解析
实践是检验真理的唯一标准
触发dump前
先查看是internal-storage(内部存储)还是 usb
内部存储抓取******************手机可以正常开机命令
adb root
adb shell
mrdump_tool output-get
下图内部存储,
触发橙屏后会自动抓取
然后将其pull出来就可以
=================================================================================
然而,有些问题导致的panic后会让机器一直重启,这样无法使用adb pull从机器里pull出如上的dump文件
这时候我们需要如下
usb抓取***********************手机不能正常开机
进入fastboot模式接入usb
设置USB命令
adb shell mrdump_tool output-set usb
我们再次查看命令
adb shell mrdump_tool output-get
如下图就是OK了
下载附件的压缩包,在解压出的路径里执行如下命令抓取dump:命令
mrdump_host_cmd.exe getcore -o coredump.zip
工具附件:mrdump_host
手动触发panic,使其进入橙屏幕抓取dump
命令
adb root
adb shell
echo c > /proc/sysrq-trigger
注:full dump 抓取是个长时间的过程,如果橙屏闪一下就重启说明抓取的是min dump , 抓取失败
如下图看到FASTBOOT_mode,就说明OK了,等待他抓取完成重新启动。
抓取完成后
dump存放路径:/data/vendor/aee_exp
aee_exp中有KE文件就OK了
边栏推荐
- [applinking practical case] share in app pictures through applinking
- Regular and common formulas
- Logu p3398 hamster looks for sugar (double LCA on the tree to judge whether the two paths in the tree intersect)
- AppGallery Connect场景化开发实战—图片存储分享
- 主键策略问题
- Set the playback speed during the playback of UOB equipment
- Leetcode+ 76 - 80 storm search topic
- QT learning diary 8 - resource file addition
- Uncover the secrets of Huawei application market application statistics
- 2022 love analysis · panoramic report of digital manufacturers of state-owned enterprises
猜你喜欢
V2X-Sim数据集(上海交大&纽约大学)
Creation and use of unified links in Huawei applinking
Use Huawei performance management service to configure the sampling rate on demand
QT learning diary 7 - qmainwindow
[in simple terms, play with FPGA learning 3 ----- basic grammar]
The URL in the RTSP setup header of the axis device cannot take a parameter
TIPC 寻址2
JSP webshell免杀——webshell免杀
How does the whole network display IP ownership?
JSP webshell免杀——JSP的基础
随机推荐
JVM garbage collector
Flick two open, realized a batch lookup join (with source code)
AppGallery Connect场景化开发实战—图片存储分享
Analysis of hot spots in AI technology industry
Implement custom drawer component in quick application
二叉树专题--AcWing 47. 二叉树中和为某一值的路径(前序遍历)
Hdu1236 ranking (structure Sorting)
学习open62541 --- [66] UA_String的生成方法
三.芯片启动和时钟系统
华为快应用中如何实现同时传递事件对象和自定义参数
6种单例模式的实现方式
[applinking practical case] share in app pictures through applinking
洛谷 P5536 【XR-3】核心城市(贪心 + 树形 dp 寻找树的中心)
Resources读取2d纹理 转换为png格式
Why does LabVIEW lose precision in floating point numbers
MySQL lethal serial question 3 -- are you familiar with MySQL locks?
【深入浅出玩转FPGA学习5-----复位设计】
Jsp webshell Free from killing - The Foundation of JSP
二叉树专题--【深基16.例7】普通二叉树(简化版)(multiset 求前驱 后继 哨兵法)
Jenkins安装