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

本文涉及的产品
日志服务 SLS,月写入数据量 50GB 1个月
简介: Stability Type Log Requirement Catch Way1.Crash Full crash dump 2.SystemReboot系统启动 Logcat, kmesg, tomestone 如下:1.
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

Wu_Being 吴兵博客接受赞助费二维码

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

相关实践学习
【涂鸦即艺术】基于云应用开发平台CAP部署AI实时生图绘板
【涂鸦即艺术】基于云应用开发平台CAP部署AI实时生图绘板
目录
相关文章
|
2月前
|
Prometheus 监控 Cloud Native
基于docker搭建监控系统&日志收集
Prometheus 是一款由 SoundCloud 开发的开源监控报警系统及时序数据库(TSDB),支持多维数据模型和灵活查询语言,适用于大规模集群监控。它通过 HTTP 拉取数据,支持服务发现、多种图表展示(如 Grafana),并可结合 Loki 实现日志聚合。本文介绍其架构、部署及与 Docker 集成的监控方案。
345 122
基于docker搭建监控系统&日志收集
WGLOG日志管理系统是怎么收集日志的
WGLOG通过部署Agent客户端采集日志,Agent持续收集指定日志文件并上报Server,Server负责展示与分析。Agent与Server需保持相同版本。官网下载地址:www.wgstart.com
|
5月前
|
监控 API 开发工具
HarmonyOS Next的HiLog日志系统完全指南:从入门到精通
本文深入解析HarmonyOS Next的HiLog日志系统,涵盖日志级别、核心API、隐私保护与高级回调功能,助你从入门到精通掌握这一重要开发工具。
350 1
|
2月前
|
Linux 测试技术 语音技术
【车载Android】模拟Android系统的高负载环境
本文介绍如何将Linux压力测试工具Stress移植到Android系统,用于模拟高负载环境下的CPU、内存、IO和磁盘压力,帮助开发者优化车载Android应用在多任务并发时的性能问题,提升系统稳定性与用户体验。
221 6
|
2月前
|
Java 数据库 Android开发
基于Android的电子记账本系统
本项目研究开发一款基于Java与Android平台的开源电子记账系统,采用SQLite数据库和Gradle工具,实现高效、安全、便捷的个人财务管理,顺应数字化转型趋势。
|
2月前
|
Ubuntu
在Ubuntu系统上设置syslog日志轮替与大小限制
请注意,在修改任何系统级别配置之前,请务必备份相应得原始档案并理解每项变更可能带来得影响。
272 2
|
4月前
|
存储
WGLOG日志管理系统可以采集网络设备的日志吗
WGLOG日志审计系统提供开放接口,支持外部获取日志内容后发送至该接口,实现日志的存储与分析。详情请访问:https://www.wgstart.com/wglog/docs9.html
|
7月前
|
安全 搜索推荐 Android开发
Android系统SELinux安全机制详解
如此看来,SELinux对于大家来说,就像那位不眠不休,严阵以待的港口管理员,守护我们安卓系统的平安,维护这片海港的和谐生态。SELinux就这样,默默无闻,却卫士如山,给予Android系统一份厚重的安全保障。
260 18
|
8月前
|
存储 消息中间件 缓存
MiniMax GenAI 可观测性分析 :基于阿里云 SelectDB 构建 PB 级别日志系统
基于阿里云SelectDB,MiniMax构建了覆盖国内及海外业务的日志可观测中台,总体数据规模超过数PB,日均新增日志写入量达数百TB。系统在P95分位查询场景下的响应时间小于3秒,峰值时刻实现了超过10GB/s的读写吞吐。通过存算分离、高压缩比算法和单副本热缓存等技术手段,MiniMax在优化性能的同时显著降低了建设成本,计算资源用量降低40%,热数据存储用量降低50%,为未来业务的高速发展和技术演进奠定了坚实基础。
356 1
MiniMax GenAI 可观测性分析 :基于阿里云 SelectDB 构建 PB 级别日志系统
|
8月前
|
监控 Shell Linux
Android调试终极指南:ADB安装+多设备连接+ANR日志抓取全流程解析,覆盖环境变量配置/多设备调试/ANR日志分析全流程,附Win/Mac/Linux三平台解决方案
ADB(Android Debug Bridge)是安卓开发中的重要工具,用于连接电脑与安卓设备,实现文件传输、应用管理、日志抓取等功能。本文介绍了 ADB 的基本概念、安装配置及常用命令。包括:1) 基本命令如 `adb version` 和 `adb devices`;2) 权限操作如 `adb root` 和 `adb shell`;3) APK 操作如安装、卸载应用;4) 文件传输如 `adb push` 和 `adb pull`;5) 日志记录如 `adb logcat`;6) 系统信息获取如屏幕截图和录屏。通过这些功能,用户可高效调试和管理安卓设备。

热门文章

最新文章