当前位置:网站首页>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 -- acwing 1589 Building binary search tree
- 【深入浅出玩转FPGA学习2----设计技巧(基本语法)】
- Easyexcel, a concise, fast and memory saving excel processing tool
- 二.Stm32f407芯片GPIO编程,寄存器操作,库函数操作和位段操作
- 二叉树专题--洛谷 P3884 [JLOI2009]二叉树问题(dfs求二叉树深度 bfs求二叉树宽度 dijkstra求最短路)
- [AGC] build service 3 - authentication service example
- Special topic of binary tree -- acwing 1497 Traversal of the tree (use post and mid order traversal to build a binary tree)
- From Read and save in bag file Jpg pictures and PCD point cloud
- HDU1236 排名(结构体排序)
- TIPC Cluster5
猜你喜欢

Special topic of binary tree -- acwing 19 The next node of the binary tree (find the successor of the node in the tree)

Open the encrypted SQLite method with sqlcipher

Special topic of binary tree -- acwing 1497 Traversal of the tree (use post and mid order traversal to build a binary tree)

Leetcode+ 76 - 80 storm search topic

The most detailed MySQL installation tutorial

Implement custom drawer component in quick application
![[play with FPGA learning 5 in simple terms ----- reset design]](/img/57/816a59787259dc32b52897c069e1a6.png)
[play with FPGA learning 5 in simple terms ----- reset design]

JSP webshell免殺——JSP的基礎

Flick two open, realized a batch lookup join (with source code)
![二叉树专题--洛谷 P3884 [JLOI2009]二叉树问题(dfs求二叉树深度 bfs求二叉树宽度 dijkstra求最短路)](/img/c2/bb85b681af0f78b380b1d179c7ea49.png)
二叉树专题--洛谷 P3884 [JLOI2009]二叉树问题(dfs求二叉树深度 bfs求二叉树宽度 dijkstra求最短路)
随机推荐
Analysis of hot spots in AI technology industry
[play with FPGA learning 4 in simple terms ----- talk about state machine design]
Hdu1228 a + B (map mapping)
Hdu1236 ranking (structure Sorting)
What are the software product management systems? Inventory of 12 best product management tools
Overview of integrated learning
Special topic of binary tree -- acwing 18 Rebuild the binary tree (construct the binary tree by traversing the front and middle order)
AppGallery Connect场景化开发实战—图片存储分享
Uncover the secrets of Huawei application market application statistics
[ark UI] implementation of the startup page of harmonios ETS
Logu p3398 hamster looks for sugar (double LCA on the tree to judge whether the two paths in the tree intersect)
二叉树专题--AcWing 19. 二叉树的下一个节点(找树中节点的后继)
Resources读取2d纹理 转换为png格式
Jsp webshell Free from killing - The Foundation of JSP
Static variables in static function
三.芯片啟動和時鐘系統
TIPC 寻址2
C#中索引器
华为快应用中如何实现同时传递事件对象和自定义参数
MySQL lethal serial question 3 -- are you familiar with MySQL locks?