Android系统各种稳定性问题所需要的log

Stability Type Log Requirement Catch Way
1.Crash Full crash dump
2.SystemReboot系统启动 Logcat, kmesg, tomestone 如下:
1.Logcat logs(main, events, radio)
2.Dmesg/kernel logs
3.bugreport and “dumpstate" log
adb shell bugreport > bugreport.txt
adb shell dumpstate > dumpstate.log
(this command will produce trace log about all process then u need adb pull /data/anr to collect the trace log) adb pull /d/binder/ .
4.Trace file /data/anr
5.adb pull /data/tombstones
(All log file time must be consistent with issue occurred time, it needs to clear /data/anr & /data/tombstones after stability issue occur) 
Stability Type Log Requirement Catch Way
3.System Freeze/ Touch panel freeze系统卡死/屏幕卡死 Logcat, kmesg 如下:
1.Logcat logs
2.Kernel logs: “ adb shell getevent” 实时事件log
open echo w > /proc/sysrq-trigger when capture dmesg and bugreport log as follows:
adb root
adb remount
adb shell
echo w > /proc/sysrq-trigger
& then exit adb shell, then collect bugreport
adb shell bugreport > bugreport.txt
adb shell kmesg > kmesg.txt 没有kmesg
3.Key events log
adb shell getevent -rtl /dev/input/event0 按键事件
4.bugreport and “dumpstate " log:
adb shell bugreport > bugreport.txt
adb shell dumpstate > dumpstate.log
adb pull /d/binder/ .
5.Dumpsys window log:
adb shell dumpsys window > dump_window.txt
6.Meminfo log:
adb shell cat proc/meminfo > meminfo.txt
7.Procrank log:
adb shell procrank > procrank.txt
8.Top log:
adb shell top > top.txt
9. Add below information:
•Adb workable or not, ANR or not
•CTP workable or not ->
 touch screen and observe
the output of "adb shell getevent".
•Display driver workable or not ->
Use the screencast to see
if the screen can be displayed
•Power key/volume key work or not?
Menu/back/home key work or not?
10. It's better to trigger a ram dump
Before test:
adb root
adb shell "echo 0x843 > /d/spmi/spmi-0/address"
adb shell "echo 0x80 > /d/spmi/spmi-0/data"
Then long press power key more than 10~30s
could trigger a dump.
If device is rebooted, it needs to set again. 
Stability Type Log Requirement Catch Way
4.Black screen 黑屏 Logcat, kmesg 如下:
Main, events, radio, bugreport, sumpstate, Procrank,
meminfo, top log
1.Logcat logs(main, events, system, radio)
2.Kernel logs
3.bugreport and “dumpstate " log
adb shell bugreport > bugreport.txt
adb shell dumpstate > dumpstate.log
then capture traces log :
adb pull /data/anr , after about I min ,
 clear /data/anr and capture traces log once again
adb pull /d/binder/ .
5.Meminfo log:
adb shell cat proc/meminfo >meminfo.txt
6.Procrank log:
adb shell procrank >procrank.txt
7.Top log:
adb shell top >top.txt
4.Add below information:
•Adb workable or not, ANR or not
•CTP workable or not
 -> touch screen and observe the output of
 "adb shell getevent".
•Display driver workable or not
 -> Use the screencast to see
 if the screen can be displayed
•Power key/volume key work or not?
Menu/back/home key work or not?
5.It's better to trigger a ram dump
Before test:
adb root
adb shell "echo 0x843 > /d/spmi/spmi-0/address"
adb shell "echo 0x80 > /d/spmi/spmi-0/data"
Then long press power key more than 10~30s
could trigger a dump.
If device is rebooted, it needs to set again. 
Stability Type Log Requirement Catch Way
5.APPs freeze/crash Logcat, kmesg,tomestone 如下:
1.Logcat logs(main, events, radio)
2.Dmesg/kernel logs
3.Trace file /data/anr
4.adb pull /data/tombstones
All log file time must be consistent
with issue occurred time, it needs to clear /data/anr &

Wu_Being博客声明:本人博客欢迎转载,请标明博客原文和原链接!谢谢!
《Android系统各种稳定性问题所需要的log》: http://blog.csdn.net/u014134180/article/details/78122529

如果你看完这篇博文,觉得对你有帮助,并且愿意付赞助费,那么我会更有动力写下去。

时间: 2024-08-04 07:25:20

Android系统各种稳定性问题所需要的log的相关文章

浅谈Android系统开发中LOG的使用

在程序开发过程中,LOG是广泛使用的用来记录程序执行过程的机制,它既可以用于程序调试,也可以用于产品运营中的事件记录.在Android系统中,提供了简单.便利的LOG机制,开发人员可以方便地使用.在这一篇文章中,我们简单介绍在Android内核空间和用户空间中LOG的使用和查看方法.         一. 内核开发时LOG的使用.Android内核是基于Linux Kerne 2.36的,因此,Linux Kernel的LOG机制同样适合于Android内核,它就是有名的printk,与C语言的

Android系统截屏的实现(附代码)

1.背景                     写博客快两年了,写了100+的文章,最火的文章也是大家最关注的就是如何实现android系统截屏.其实我们google android_screen_shot就会找到很对办法,但那些都是很多年前的了,在android4.*版本后,android对于源码进行了更正,使得以前的方法都不能够使用.        感谢cjd6568358这名网友,我们一起讨论,最终由他实现了android系统截屏功能,为了让以后想要这个功能的coder可以少走一些弯路,

opengl-OpenGL 在Android系统中的显示问题

问题描述 OpenGL 在Android系统中的显示问题 openGL在android系统中只能全屏显示吗?可以控制让它只在屏幕的某一个部分显示吗

android系统文件下载二次请求

问题描述 android系统文件下载二次请求 应客户要求在通过手机访问系统主页时提供一个文件下载的功能.通过IOS产品.windows下所有浏览器下载都没有问题,但是通过android系统的手机访问下载时会出现两次请求的情况,有的品牌的android手机完全就无法下载,敢问哪位大虾遇到类似的问题,求解决之道. 解决方案 同样的问题,二次请求就不说了,问题是第一次铁定报错.而且还会有几率下载不成功,恼火啊 .....

Android系统service详解

Android存在3大类service, 处于android系统的不同框架层,具体解读如下: 1) init.rc中的service //关键词"service"  name  二进制可执行程序路径 service servicemanager /system/bin/servicemanager class core user system group system critical onrestart restart healthd onrestart restart zygote

Android系统自带APP分析:短信app

Android操作系统本身就是一个巨大的开源软件仓库,熟悉它既可以了解到Android系统的设计框架,也可以获得高效的应用程序编写方式.本文所分析的源码来自于Google官方的AOSP源码4.0.1_r1,手机的Android版本是CM 4.2.2.对于Android系统分析而言,手机的操作系统版本和源码版本有些不一致的地方不会有太大的影响,但是如果需要将源码中的修改安装到手机里面的话,最不容易遇到问题的办法就是保持手机中系统的版本和源码的版本完全一致了. 1.程序入口发现 每一个应用程序都应当

Android系统获取Root权限原理详解

android root权限破解分析 许多机友新购来的Android机器没有破解过Root权限,无法使用一些需要高权限的软件,以及进行一些高权限的操作,其实破解手机Root权限是比较简单及安全的,破解Root权限的原理就是在手机的/system/bin/或/system/xbin/目录下放置一个可执行文件"su",这是一个二进制文件,相当于电脑上的exe文件,仅仅在系统中置入这个"su"文件是不会给手机的软件或硬件造成任何故障. 下面的代码是android系统原版的

Android系统的安全风险控制策略

没有一个软件系统是绝对安全的,总体而言,Android系统中的风险可概括为五大类.根据以下建议对每种风险做好防范工作. 第一类风险是滥用应用程序权限.关于这类风险有如下防范策略建议. 应用程序认证 认证是防范恶意程序的有效手段之一.在理想状态下,一个应用程序在认证之前必须经过完整的测试与代码审查,确认其权限使用的合理性,这自然对恶意软件起到了有力的防范作用.但是,认证的费用高昂,程序复杂,并不具备广泛的实用性. 选择使用应用程序权限 如果能够在安装阶段,确认某一应用程序仅使用必需的最小权限,也就

Android系统专题

android FragmentTabhost实现选项卡 Android实现异常记录并重启程序 android联系人信息的存储结构 android js互调例子 android实现垂直seekbar Android实现左滑退出Activity(完美封装) android ant最简单的打包签名及混淆方法 Android动画复习:包括缩放动画.平移动画.旋转动画和透明度动 Android自定义View之使用贝塞尔曲线实现流量进度条 Android Zip压缩工具类 Android中Applicat