高通平台minidump 功能验证

minidump 功能验证

1:手机下载编译的AP版本

2:手机刷debug policy,按下面刷debug policy方法

3:USB连接电脑,打开QXDM 工具

4:工具连接上手机后,在command栏里输入  send_data 75 37 03 00 00

5:输入上述命令后,会触发modem crash 。此时在sdcard/ramdump下会生成 log.

6:从手机侧获取dump log文件,adb pull /sdcard/ramdump

7:从编译代码中获取对应符号表文件,放入ramdump同一目录

build/ms下elf文件

build/myps/qshrink下所有文件

8:使用qcap工具解析,成功解析后查看是否crash原因是由diag触发,如果是由diag触发则OK

刷debug policy方法:

1:获取手机的serial num,adb shell cat /proc/serial_num //获取serial num

2:生成手机serial num号对应debug policy的三个mbn文件,apdp.mbn,dp_unsigned.mbn,msadp.mbn(负责人员生成)

3:保存以下脚本为flash_for_dump.bat批处理文件,使用adb和fastboot工具,刷debug policy

/**************************************************************************

adb wait-for-device

adb root

adb wait-for-device

timeout /T 5

adb shell mount -o remount,rw /vendor/firmware_mnt

adb push msadp.mbn /vendor/firmware_mnt/image

adb shell sync

adb reboot bootloader

timeout /T 5

fastboot flash apdp apdp.mbn

fastboot reboot

timeout /T 5

adb wait-for-device

adb root

adb wait-for-device

timeout /T 10

adb shell "setprop persist.sys.ssr.restart_level ALL_DISABLE"

adb shell "echo 1 >/sys/module/msm_poweroff/parameters/download_mode"

adb shell "echo SYSTEM > /sys/bus/msm_subsys/devices/subsys1/restart_level"

timeout /T 5

adb shell "getprop persist.sys.ssr.restart_level"

adb shell "cat /sys/module/msm_poweroff/parameters/download_mode"

adb shell "cat /sys/bus/msm_subsys/devices/subsys1/name"

adb shell "cat /sys/bus/msm_subsys/devices/subsys1/restart_level"

pause

*************************************************************************/

猜你喜欢

转载自blog.csdn.net/shaowwei/article/details/102545101