当前位置:网站首页>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了
边栏推荐
- Special topic of binary tree -- Logu p1229 traversal problem (the number of traversals in the middle order is calculated when the pre and post order traversals of the multiplication principle are know
- QT learning diary 7 - qmainwindow
- [in simple terms, play with FPGA learning 3 ----- basic grammar]
- 最详细MySql安装教程
- 【深入浅出玩转FPGA学习4----漫谈状态机设计】
- Uncover the secrets of Huawei application market application statistics
- Why does LabVIEW lose precision in floating point numbers
- JSP webshell免殺——JSP的基礎
- 洛谷 P3398 仓鼠找 sugar(树上倍增 lca 判断树中两条路径是否相交 结论)
- K-d tree and octree of PCL
猜你喜欢

What are the software product management systems? Inventory of 12 best product management tools

Huawei game failed to initialize init with error code 907135000

How does the whole network display IP ownership?

全网显示 IP 归属地,是怎么实现的?

Special topic of binary tree -- acwing 3384 Binary tree traversal (known preorder traversal, while building a tree, while outputting middle order traversal)

华为AppLinking中统一链接的创建和使用

Analysis of hot spots in AI technology industry

QT学习日记7——QMainWindow

How to use ide to automatically sign and debug Hongmeng application

洛谷 P5536 【XR-3】核心城市(贪心 + 树形 dp 寻找树的中心)
随机推荐
2022 love analysis · panoramic report of digital manufacturers of state-owned enterprises
JSP webshell free -- the basis of JSP
QT学习日记8——资源文件添加
学习open62541 --- [66] UA_String的生成方法
Special topic of binary tree -- acwing 3384 Binary tree traversal (known preorder traversal, while building a tree, while outputting middle order traversal)
K-d tree and octree of PCL
php中self和static在方法中的区别
[play with FPGA learning 4 in simple terms ----- talk about state machine design]
洛谷 P5536 【XR-3】核心城市(贪心 + 树形 dp 寻找树的中心)
How to transfer event objects and user-defined parameters simultaneously in Huawei express applications
[play with FPGA learning 5 in simple terms ----- reset design]
Calculate the sum of sequences
二叉树专题--AcWing 18. 重建二叉树(利用前、中序遍历,构建二叉树)
Dialogue Wu Gang: why do I believe in the rise of "big country brands"?
Point cloud projection picture
TIPC Service and Topology Tracking4
Use Huawei performance management service to configure the sampling rate on demand
使用华为性能管理服务,按需配置采样率
TIPC messaging3
Implement custom drawer component in quick application