4.5.2 分析方法........................................................................................................................................................219
五、O 项目显示老化问题分析方法介绍.............................................................................................................................222
5.1 Log 分析步骤 ...........................................................................................................................................................222
5.1.1 kernel_log.......................................................................................................................................................222
5.1.2 main_log.........................................................................................................................................................223
5.1.3 tombstone .......................................................................................................................................................225
5.1.4 crash log .........................................................................................................................................................227
5.1.5 NE/JE DB.......................................................................................................................................................228
5.1.6 dropbox...........................................................................................................................................................230
5.1.7 events_log.......................................................................................................................................................231
5.2 Log 分析工具 ...........................................................................................................................................................232
5.2.1 addr2line.........................................................................................................................................................232
5.2.2 解析 DB(MTK) ........................................................................................................................................233
5.2.3 解压 minidump(高通) ..............................................................................................................................234
5.2.4 asan load.........................................................................................................................................................234
5.2.4.1 ASAN 介绍.........................................................................................................................................234
5.2.4.2 ASAN 打开方法.................................................................................................................................234
5.2.5 HWASAN ......................................................................................................................................................235
5.3 典型踩内存 log 举例...............................................................................................................................................235
5.3.1 Asan 版本复现踩内存--(Aging-test Bugs )2961098 double-free ..............................................................235
5.3.1.1 bug 描述..............................................................................................................................................235
5.3.1.2 分析步骤.............................................................................................................................................235
5.3.1.3 分析结论.............................................................................................................................................239
5.3.2 Asan 版本复现踩内存--(Aging-test Bugs ) 2961891 heap-use-after-free .................................................240
5.3.2.1 bug 描述..............................................................................................................................................240
5.3.2.2 分析步骤............................................................................................................................................240
5.3.2.3 分析结论.............................................................................................................................................248
六、O 客户定制功能介绍.....................................................................................................................................................248
6.1 GIFT..........................................................................................................................................................................248
6.2 屏幕色彩模式...........................................................................................................................................................249
6.3 软件圆角...................................................................................................................................................................251
6.3.1 代码目录........................................................................................................................................................251
6.3.2 流程分析........................................................................................................................................................251
6.4 智能刷新率...............................................................................................................................................................252
6.5 O 项目抓取 SF 和 raw 图的方法.............................................................................................................................257
6.5.1 抓取 SurfaceFlinger 信息 .............................................................................................................................257
6.5.2 抓取单次 SF 和 raw 图 ................................................................................................................................257
6.5.3 抓取连续 SF .................................................................................................................................................259
6.5.4 连续抓取 sf 和图层 raw 图的方法...............................................................................................................260
6.6 打印 screenshot 信息...............................................................................................................................................260
6.7 打开 OplusDisplayPerfService log 开关 .................................................................................................................260
6.8 Log 打印 FPS............................................................................................................................................................260
6.9 确认距离 sensor 是否为 enable 状态方法 ..............................................................................................................261
6.10 打开关闭 DisplayBoost .........................................................................................................................................261
6.11 视频采样问题........................................................................................................................................................261
6.12 SF 内存占用分析 ...................................................................................................................................................263