DatabasesInfo

CREATE TABLE activation (
id INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
code varchar(20) NOT NULL,
puid varchar(20) NOT NULL,
current varchar(10) NOT NULL,
createTime datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
updateTime datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

CREATE UNIQUE INDEX index_code_activation ON activation (code);
CREATE INDEX index_puid_activation ON activation (puid);

select * from activation;
+—-+—————–+—————–+———+———————+———————+
| id | code | puid | current | createTime | updateTime |
+—-+—————–+—————–+———+———————+———————+
| 8 | 111111111111 | QS5509-FOTATEST | v1A73 | 2018-11-30 15:08:24 | 2018-11-30 15:08:24 |
| 12 | 123456789012345 | QS5509A | v1A74 | 2018-11-30 15:08:24 | 2018-11-30 15:08:24 |
| 13 | 123456789123456 | QS5509A | v1A73 | 2018-11-30 15:08:24 | 2018-11-30 15:08:24 |
| 14 | 144444444444449 | QS5509A | v1A73 | 2018-11-30 15:08:24 | 2018-11-30 15:08:24 |
+—-+—————–+—————–+———+———————+———————+

备份

st=>start: 开始
e1=>end: 其他问题
e2=>end: 分区问题
e3=>end: 其他问题
op1=>operation: 恢复出厂设置
cond1=>condition: 可以开机?
op2=>operation: 写入大量数据
cond2=>condition: 能否复现?

st->op1->cond1->op2->cond2
cond1(yes)->op2
cond1(no)->e1
cond2(yes)->e2
cond2(no)->e3

title: 序列图(示例)
participant A
participant B
participant C

note left of A: A左侧说明
note over B: 覆盖B的说明
note right of C: C右侧说明

A->A:自己到自己
A->B:实线实箭头
A-->C:虚线实箭头
B->>C:实线虚箭头
B-->>A:虚线虚箭头
title: Fota序列图
participant Device
participant Device Manager
participant 业务逻辑
participant 数据库

note left of Device: 手机端
note over Device Manager: Web服务端
note right of C: C右侧说明

Device->Device:自己到自己
Device->Device Manager:实线实箭头
Device-->C:虚线实箭头
Device Manager->>C:实线虚箭头
Device Manager-->>Device:虚线虚箭头

Whatsapp 来电启动慢的问题

现象描述

  • 手机按POWER_OFF之后,被Whatsapp呼入,唤醒手机的时间长达10-40秒,目前有疑问:
android@NSGWD180021:/data/workspace/temp/0329/whatsapp_wechat_log_videos/hipadLogs/logs/adb$ grep -ri 'Displayed com.whatsapp\|setPowerMode\|Set power mode=\|setTransactionState timed out waiting for previous animation frame' main_log_20180329_100741.log
03-29 10:06:35.996 D/SurfaceFlinger( 307): Set power mode=0, type=0 flinger=0xacaa8000
03-29 10:06:35.997 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 0 on display: 0
03-29 10:06:36.388 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 0 on display 0
03-29 10:07:08.331 D/SurfaceFlinger( 307): Set power mode=2, type=0 flinger=0xacaa8000
03-29 10:07:08.331 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 2 on display: 0
03-29 10:07:08.660 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 2 on display 0
03-29 10:07:42.621 D/SurfaceFlinger( 307): Set power mode=0, type=0 flinger=0xacaa8000
03-29 10:07:42.622 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 0 on display: 0
03-29 10:07:43.008 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 0 on display 0
03-29 10:07:43.013 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 392ms
03-29 10:07:49.282 D/SurfaceFlinger( 307): Set power mode=1, type=0 flinger=0xacaa8000
03-29 10:07:49.282 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 1 on display: 0
03-29 10:07:49.487 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 1 on display 0
03-29 10:07:49.494 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 211ms
03-29 10:07:49.711 D/SurfaceFlinger( 307): Set power mode=0, type=0 flinger=0xacaa8000
03-29 10:07:49.713 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 0 on display: 0
03-29 10:07:50.088 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 0 on display 0
03-29 10:07:50.088 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 377ms
03-29 10:07:50.256 I/ActivityManager( 2374): Displayed com.whatsapp/.voipcalling.VoipActivityV2: +1s390ms (total +1s400ms)
03-29 10:07:50.308 D/SurfaceFlinger( 307): Set power mode=2, type=0 flinger=0xacaa8000
03-29 10:07:50.308 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 2 on display: 0
03-29 10:07:50.656 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 2 on display 0
03-29 10:07:50.657 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 349ms
03-29 10:07:56.754 D/SurfaceFlinger( 307): Set power mode=0, type=0 flinger=0xacaa8000
03-29 10:07:56.760 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 0 on display: 0
03-29 10:07:57.144 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 0 on display 0
03-29 10:07:57.144 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 393ms
03-29 10:08:01.174 D/SurfaceFlinger( 307): Set power mode=1, type=0 flinger=0xacaa8000
03-29 10:08:01.174 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 1 on display: 0
03-29 10:08:01.373 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 1 on display 0
03-29 10:08:01.374 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 199ms
03-29 10:08:01.400 D/SurfaceFlinger( 307): Set power mode=0, type=0 flinger=0xacaa8000
03-29 10:08:01.483 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 0 on display: 0
03-29 10:08:01.848 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 0 on display 0
03-29 10:08:01.849 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 448ms
03-29 10:08:02.151 I/ActivityManager( 2374): Displayed com.whatsapp/.voipcalling.VoipActivityV2: +1s286ms (total +1s297ms)
03-29 10:08:02.200 D/SurfaceFlinger( 307): Set power mode=2, type=0 flinger=0xacaa8000
03-29 10:08:02.200 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 2 on display: 0
03-29 10:08:02.548 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 2 on display 0
03-29 10:08:02.554 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 353ms
03-29 10:08:08.811 D/SurfaceFlinger( 307): Set power mode=0, type=0 flinger=0xacaa8000
03-29 10:08:08.820 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 0 on display: 0
03-29 10:08:09.202 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 0 on display 0
03-29 10:08:09.206 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 395ms
03-29 10:08:12.920 D/SurfaceFlinger( 307): Set power mode=1, type=0 flinger=0xacaa8000
03-29 10:08:12.920 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 1 on display: 0
03-29 10:08:13.120 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 1 on display 0
03-29 10:08:13.122 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 203ms
03-29 10:08:13.283 D/SurfaceFlinger( 307): Set power mode=0, type=0 flinger=0xacaa8000
03-29 10:08:13.286 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 0 on display: 0
03-29 10:08:13.668 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 0 on display 0
03-29 10:08:13.668 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 385ms
03-29 10:08:13.719 I/ActivityManager( 2374): Displayed com.whatsapp/.voipcalling.VoipActivityV2: +1s112ms (total +1s125ms)
03-29 10:08:13.800 D/SurfaceFlinger( 307): Set power mode=2, type=0 flinger=0xacaa8000
03-29 10:08:13.800 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 2 on display: 0
03-29 10:08:14.229 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 2 on display 0
03-29 10:08:14.231 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 431ms
03-29 10:08:33.799 D/SurfaceFlinger( 307): Set power mode=0, type=0 flinger=0xacaa8000
03-29 10:08:33.807 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 0 on display: 0
03-29 10:08:34.219 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 0 on display 0
03-29 10:08:34.220 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 428ms
03-29 10:09:30.210 D/SurfaceFlinger( 307): Set power mode=1, type=0 flinger=0xacaa8000
03-29 10:09:30.210 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 1 on display: 0
03-29 10:09:30.420 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 1 on display 0
03-29 10:09:30.423 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 213ms
03-29 10:09:31.580 D/SurfaceFlinger( 307): Set power mode=0, type=0 flinger=0xacaa8000
03-29 10:09:31.583 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 0 on display: 0
03-29 10:09:32.004 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 0 on display 0
03-29 10:09:32.006 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 425ms
03-29 10:09:32.051 I/ActivityManager( 2374): Displayed com.whatsapp/.voipcalling.VoipActivityV2: +1s687ms (total +1s707ms)
03-29 10:09:32.133 D/SurfaceFlinger( 307): Set power mode=2, type=0 flinger=0xacaa8000
03-29 10:09:32.133 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 2 on display: 0
03-29 10:09:32.528 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 2 on display 0
03-29 10:09:32.529 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 396ms
03-29 10:09:39.985 D/SurfaceFlinger( 307): Set power mode=0, type=0 flinger=0xacaa8000
03-29 10:09:39.985 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 0 on display: 0
03-29 10:09:40.407 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 0 on display 0
03-29 10:09:40.408 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 423ms
03-29 10:09:46.933 D/SurfaceFlinger( 307): Set power mode=1, type=0 flinger=0xacaa8000
03-29 10:09:46.933 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 1 on display: 0
03-29 10:09:47.138 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 1 on display 0
03-29 10:09:47.141 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 210ms
03-29 10:09:47.253 D/SurfaceFlinger( 307): Set power mode=0, type=0 flinger=0xacaa8000
03-29 10:09:47.257 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 0 on display: 0
03-29 10:09:47.623 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 0 on display 0
03-29 10:09:47.624 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 384ms
03-29 10:09:48.046 I/ActivityManager( 2374): Displayed com.whatsapp/.voipcalling.VoipActivityV2: +1s495ms (total +1s507ms)
03-29 10:09:48.113 D/SurfaceFlinger( 307): Set power mode=2, type=0 flinger=0xacaa8000
03-29 10:09:48.113 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 2 on display: 0
03-29 10:09:48.482 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 2 on display 0
03-29 10:09:48.491 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 378ms
03-29 10:09:58.077 D/SurfaceFlinger( 307): Set power mode=0, type=0 flinger=0xacaa8000
03-29 10:09:58.084 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 0 on display: 0
03-29 10:09:58.463 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 0 on display 0
03-29 10:09:58.463 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 387ms
03-29 10:10:04.380 I/ActivityManager( 2374): Displayed com.whatsapp/.voipcalling.VoipActivityV2: +700ms (total +713ms)
03-29 10:10:04.445 D/SurfaceFlinger( 307): Set power mode=2, type=0 flinger=0xacaa8000
03-29 10:10:04.445 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 2 on display: 0
03-29 10:10:04.786 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 2 on display 0
03-29 10:10:04.786 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 342ms
03-29 10:11:32.899 D/SurfaceFlinger( 307): Set power mode=0, type=0 flinger=0xacaa8000
03-29 10:11:32.909 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 0 on display: 0
03-29 10:11:33.286 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 0 on display 0
03-29 10:11:33.290 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 391ms
03-29 10:11:46.826 D/SurfaceFlinger( 307): Set power mode=1, type=0 flinger=0xacaa8000
03-29 10:11:46.826 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 1 on display: 0
03-29 10:11:47.024 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 1 on display 0
03-29 10:11:47.025 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 199ms
03-29 10:11:47.140 D/SurfaceFlinger( 307): Set power mode=0, type=0 flinger=0xacaa8000
03-29 10:11:47.141 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 0 on display: 0
03-29 10:11:47.508 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 0 on display 0
03-29 10:11:47.509 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 418ms
03-29 10:11:47.841 I/ActivityManager( 2374): Displayed com.whatsapp/.voipcalling.VoipActivityV2: +1s353ms (total +1s365ms)
03-29 10:11:47.912 D/SurfaceFlinger( 307): Set power mode=2, type=0 flinger=0xacaa8000
03-29 10:11:47.912 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 2 on display: 0
03-29 10:11:48.243 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 2 on display 0
03-29 10:11:48.243 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 332ms
03-29 10:11:54.559 D/SurfaceFlinger( 307): Set power mode=0, type=0 flinger=0xacaa8000
03-29 10:11:54.561 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 0 on display: 0
03-29 10:11:54.944 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 0 on display 0
03-29 10:11:54.947 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 393ms
03-29 10:12:00.247 D/SurfaceFlinger( 307): Set power mode=1, type=0 flinger=0xacaa8000
03-29 10:12:00.248 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 1 on display: 0
03-29 10:12:00.447 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 1 on display 0
03-29 10:12:00.448 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 201ms
03-29 10:12:00.604 D/SurfaceFlinger( 307): Set power mode=0, type=0 flinger=0xacaa8000
03-29 10:12:00.607 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 0 on display: 0
03-29 10:12:00.989 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 0 on display 0
03-29 10:12:00.989 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 389ms
03-29 10:12:01.057 I/ActivityManager( 2374): Displayed com.whatsapp/.voipcalling.VoipActivityV2: +1s110ms (total +1s123ms)
03-29 10:12:01.120 D/SurfaceFlinger( 307): Set power mode=2, type=0 flinger=0xacaa8000
03-29 10:12:01.120 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 2 on display: 0
03-29 10:12:01.459 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 2 on display 0
03-29 10:12:01.461 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 342ms
03-29 10:12:07.794 D/SurfaceFlinger( 307): Set power mode=0, type=0 flinger=0xacaa8000
03-29 10:12:07.799 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 0 on display: 0
03-29 10:12:08.182 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 0 on display 0
03-29 10:12:08.183 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 389ms
03-29 10:12:11.794 D/SurfaceFlinger( 307): Set power mode=1, type=0 flinger=0xacaa8000
03-29 10:12:11.794 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 1 on display: 0
03-29 10:12:11.995 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 1 on display 0
03-29 10:12:11.996 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 202ms
03-29 10:12:12.120 D/SurfaceFlinger( 307): Set power mode=0, type=0 flinger=0xacaa8000
03-29 10:12:12.121 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 0 on display: 0
03-29 10:12:12.497 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 0 on display 0
03-29 10:12:12.498 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 434ms
03-29 10:12:12.578 I/ActivityManager( 2374): Displayed com.whatsapp/.voipcalling.VoipActivityV2: +1s79ms (total +1s91ms)
03-29 10:12:12.650 D/SurfaceFlinger( 307): Set power mode=2, type=0 flinger=0xacaa8000
03-29 10:12:12.650 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 2 on display: 0
03-29 10:12:12.991 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 2 on display 0
03-29 10:12:12.992 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 342ms
03-29 10:12:19.242 D/SurfaceFlinger( 307): Set power mode=0, type=0 flinger=0xacaa8000
03-29 10:12:19.242 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 0 on display: 0
03-29 10:12:19.625 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 0 on display 0
03-29 10:12:19.627 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 392ms
03-29 10:12:23.276 I/ActivityManager( 2374): Displayed com.whatsapp/.voipcalling.VoipActivityV2: +651ms (total +661ms)
03-29 10:12:23.354 D/SurfaceFlinger( 307): Set power mode=2, type=0 flinger=0xacaa8000
03-29 10:12:23.354 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 2 on display: 0
03-29 10:12:23.710 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 2 on display 0
03-29 10:12:23.710 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 356ms
03-29 10:12:31.077 D/SurfaceFlinger( 307): Set power mode=0, type=0 flinger=0xacaa8000
03-29 10:12:31.086 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 0 on display: 0
03-29 10:12:31.493 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 0 on display 0
03-29 10:12:31.498 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 422ms
03-29 10:12:35.282 D/SurfaceFlinger( 307): Set power mode=1, type=0 flinger=0xacaa8000
03-29 10:12:35.282 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 1 on display: 0
03-29 10:12:35.480 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 1 on display 0
03-29 10:12:35.482 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 200ms
03-29 10:12:35.628 D/SurfaceFlinger( 307): Set power mode=0, type=0 flinger=0xacaa8000
03-29 10:12:35.637 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 0 on display: 0
03-29 10:12:36.014 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 0 on display 0
03-29 10:12:36.014 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 386ms
03-29 10:12:36.081 I/ActivityManager( 2374): Displayed com.whatsapp/.voipcalling.VoipActivityV2: +1s119ms (total +1s135ms)
03-29 10:12:36.168 D/SurfaceFlinger( 307): Set power mode=2, type=0 flinger=0xacaa8000
03-29 10:12:36.168 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 2 on display: 0
03-29 10:12:36.495 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 2 on display 0
03-29 10:12:36.497 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 329ms
03-29 10:13:13.554 D/SurfaceFlinger( 307): Set power mode=0, type=0 flinger=0xacaa8000
03-29 10:13:13.569 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 0 on display: 0
03-29 10:13:13.947 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 0 on display 0
03-29 10:13:13.952 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 399ms
03-29 10:13:29.979 D/SurfaceFlinger( 307): Set power mode=1, type=0 flinger=0xacaa8000
03-29 10:13:29.979 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 1 on display: 0
03-29 10:13:30.179 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 1 on display 0
03-29 10:13:30.187 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 207ms
03-29 10:13:30.312 D/SurfaceFlinger( 307): Set power mode=0, type=0 flinger=0xacaa8000
03-29 10:13:30.315 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 0 on display: 0
03-29 10:13:35.332 W/SurfaceFlinger( 307): setTransactionState timed out waiting for previous animation frame
03-29 10:13:39.744 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 0 on display 0
03-29 10:13:39.746 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 9437ms
03-29 10:13:39.882 I/ActivityManager( 2374): Displayed com.whatsapp/.voipcalling.VoipActivityV2: +10s199ms (total +45s962ms)
03-29 10:13:39.962 D/SurfaceFlinger( 307): Set power mode=2, type=0 flinger=0xacaa8000
03-29 10:13:39.962 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 2 on display: 0
03-29 10:13:40.284 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 2 on display 0
03-29 10:13:40.285 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 323ms
03-29 10:13:47.661 D/SurfaceFlinger( 307): Set power mode=0, type=0 flinger=0xacaa8000
03-29 10:13:47.662 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 0 on display: 0
03-29 10:13:48.075 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 0 on display 0
03-29 10:13:48.079 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 430ms
03-29 10:14:02.664 D/SurfaceFlinger( 307): Set power mode=1, type=0 flinger=0xacaa8000
03-29 10:14:02.664 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 1 on display: 0
03-29 10:14:02.870 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 1 on display 0
03-29 10:14:02.871 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 207ms
03-29 10:14:03.055 D/SurfaceFlinger( 307): Set power mode=0, type=0 flinger=0xacaa8000
03-29 10:14:03.056 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 0 on display: 0
03-29 10:14:08.221 W/SurfaceFlinger( 307): setTransactionState timed out waiting for previous animation frame
03-29 10:14:12.477 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 0 on display 0
03-29 10:14:12.478 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 9423ms
03-29 10:14:12.571 I/ActivityManager( 2374): Displayed com.whatsapp/.voipcalling.VoipActivityV2: +10s214ms (total +10s221ms)
03-29 10:14:12.630 D/SurfaceFlinger( 307): Set power mode=2, type=0 flinger=0xacaa8000
03-29 10:14:12.630 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 2 on display: 0
03-29 10:14:12.960 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 2 on display 0
03-29 10:14:12.961 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 330ms
03-29 10:14:27.596 D/SurfaceFlinger( 307): Set power mode=0, type=0 flinger=0xacaa8000
03-29 10:14:27.610 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 0 on display: 0
03-29 10:14:28.000 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 0 on display 0
03-29 10:14:28.000 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 404ms
03-29 10:14:32.253 D/SurfaceFlinger( 307): Set power mode=1, type=0 flinger=0xacaa8000
03-29 10:14:32.253 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 1 on display: 0
03-29 10:14:32.451 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 1 on display 0
03-29 10:14:32.457 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 204ms
03-29 10:14:32.577 D/SurfaceFlinger( 307): Set power mode=0, type=0 flinger=0xacaa8000
03-29 10:14:32.577 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 0 on display: 0
03-29 10:14:37.500 W/SurfaceFlinger( 307): setTransactionState timed out waiting for previous animation frame
03-29 10:14:41.984 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 0 on display 0
03-29 10:14:41.987 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 9463ms
03-29 10:14:42.113 I/ActivityManager( 2374): Displayed com.whatsapp/.voipcalling.VoipActivityV2: +10s248ms (total +10s272ms)
03-29 10:14:42.166 D/SurfaceFlinger( 307): Set power mode=2, type=0 flinger=0xacaa8000
03-29 10:14:42.166 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 2 on display: 0
03-29 10:14:42.509 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 2 on display 0
03-29 10:14:42.511 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 345ms
03-29 10:14:49.404 D/SurfaceFlinger( 307): Set power mode=0, type=0 flinger=0xacaa8000
03-29 10:14:49.413 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 0 on display: 0
03-29 10:14:49.788 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 0 on display 0
03-29 10:14:49.791 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 387ms
03-29 10:14:53.201 D/SurfaceFlinger( 307): Set power mode=1, type=0 flinger=0xacaa8000
03-29 10:14:53.201 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 1 on display: 0
03-29 10:14:53.403 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 1 on display 0
03-29 10:14:53.406 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 205ms
03-29 10:14:53.517 D/SurfaceFlinger( 307): Set power mode=0, type=0 flinger=0xacaa8000
03-29 10:14:53.517 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 0 on display: 0
03-29 10:14:58.453 W/SurfaceFlinger( 307): setTransactionState timed out waiting for previous animation frame
03-29 10:15:03.002 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 0 on display 0
03-29 10:15:03.019 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 9544ms
03-29 10:15:03.109 I/ActivityManager( 2374): Displayed com.whatsapp/.voipcalling.VoipActivityV2: +10s211ms (total +10s222ms)
03-29 10:15:03.182 D/SurfaceFlinger( 307): Set power mode=2, type=0 flinger=0xacaa8000
03-29 10:15:03.182 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 2 on display: 0
03-29 10:15:03.525 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 2 on display 0
03-29 10:15:03.526 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 344ms
03-29 10:15:12.194 D/SurfaceFlinger( 307): Set power mode=0, type=0 flinger=0xacaa8000
03-29 10:15:12.195 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 0 on display: 0
03-29 10:15:12.586 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 0 on display 0
03-29 10:15:12.591 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 397ms
03-29 10:15:25.813 D/SurfaceFlinger( 307): Set power mode=1, type=0 flinger=0xacaa8000
03-29 10:15:25.813 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 1 on display: 0
03-29 10:15:26.015 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 1 on display 0
03-29 10:15:26.017 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 203ms
03-29 10:15:26.137 D/SurfaceFlinger( 307): Set power mode=0, type=0 flinger=0xacaa8000
03-29 10:15:26.141 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 0 on display: 0
03-29 10:15:31.126 W/SurfaceFlinger( 307): setTransactionState timed out waiting for previous animation frame
03-29 10:15:35.554 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 0 on display 0
03-29 10:15:35.555 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 9458ms
03-29 10:15:35.634 I/ActivityManager( 2374): Displayed com.whatsapp/.voipcalling.VoipActivityV2: +10s121ms (total +10s135ms)
03-29 10:15:35.734 D/SurfaceFlinger( 307): Set power mode=2, type=0 flinger=0xacaa8000
03-29 10:15:35.734 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 2 on display: 0
03-29 10:15:36.073 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 2 on display 0
03-29 10:15:36.073 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 343ms
03-29 10:15:44.412 D/SurfaceFlinger( 307): Set power mode=0, type=0 flinger=0xacaa8000
03-29 10:15:44.416 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 0 on display: 0
03-29 10:15:44.797 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 0 on display 0
03-29 10:15:44.800 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 402ms
03-29 10:15:59.235 D/SurfaceFlinger( 307): Set power mode=1, type=0 flinger=0xacaa8000
03-29 10:15:59.235 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 1 on display: 0
03-29 10:15:59.435 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 1 on display 0
03-29 10:15:59.436 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 201ms
03-29 10:15:59.557 D/SurfaceFlinger( 307): Set power mode=0, type=0 flinger=0xacaa8000
03-29 10:15:59.557 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 0 on display: 0
03-29 10:16:04.485 W/SurfaceFlinger( 307): setTransactionState timed out waiting for previous animation frame
03-29 10:16:08.985 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 0 on display 0
03-29 10:16:08.987 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 9478ms
03-29 10:16:09.346 I/ActivityManager( 2374): Displayed com.whatsapp/.voipcalling.VoipActivityV2: +10s422ms (total +10s429ms)
03-29 10:16:09.403 D/SurfaceFlinger( 307): Set power mode=2, type=0 flinger=0xacaa8000
03-29 10:16:09.403 D/qdhwcomposer( 307): hwc_setPowerMode: Setting mode 2 on display: 0
03-29 10:16:09.770 D/qdhwcomposer( 307): hwc_setPowerMode: Done setting mode 2 on display 0
03-29 10:16:09.772 D/SurfaceControl( 2374): Excessive delay in setPowerMode(): 369ms

Diag 口慢的问题

Diag 口慢的问题

1. 去除earlyprintk

androidboot.bootdevice=7824900.sdhci lpm_levels.sleep_disabled=1 earlyprintk
BOARD_KERNEL_CMDLINE := g_android.luns=1 g_android.removable=1 g_android.cdrom=1 console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom msm_rtb.filter=0x237 ehci-hcd.park=3 androidboot.bootdevice=7824900.sdhci lpm_levels.sleep_disabled=1 earlyprintk
`

2. 重新设置KERNEL_DEFCONFIG

KERNEL_DEFCONFIG := msm8909_defconfig

主要是串口LOG没有关:

CONFIG_SERIAL_MSM_HS=y
CONFIG_SERIAL_MSM_HSL=y
CONFIG_SERIAL_MSM_HSL_CONSOLE=y

3. LK启动异常

adb shell cat /proc/morelog
信息显示LK比对比样机要慢 2 秒左右.

4. 屏蔽了写Property的LOG.

// Don't write properties to disk until after we have read all default
// properties to prevent them from being overwritten by default values.
//LOG(ERROR) << "write_persistent_property: " << name << ",value : " << value;
//modify by weibiao@hipad.com PR165777
if (persistent_properties_loaded && (android::base::StartsWith(name, "persist.")
|| android::base::StartsWith(name, "ro.com.google.clientidbase"))) {
write_persistent_property(name.c_str(), value.c_str());
}

查看更多

闪屏分析

闪屏和不闪屏的区别

闪屏有两个 animation

而不闪屏的只有一个(设置同时设置lock screen和home screen的background image)

不闪屏的:

01-02 02:39:03.159   752  3074 I WindowManager:   SURFACE POS (setPositionInTransaction) @ (0.0,9.0): com.android.phone/com.android.phone.EmergencyDialer
01-02 02:39:03.173 752 3074 I WindowManager: SURFACE POS (setPositionInTransaction) @ (0.0,247.0): com.android.phone/com.android.phone.EmergencyDialer
01-02 02:39:03.229 752 3074 I WindowManager: SURFACE POS (setPositionInTransaction) @ (0.0,484.0): com.android.phone/com.android.phone.EmergencyDialer
01-02 02:39:03.242 752 3074 I WindowManager: SURFACE POS (setPositionInTransaction) @ (0.0,577.0): com.android.phone/com.android.phone.EmergencyDialer
01-02 02:39:03.254 752 3074 I WindowManager: SURFACE POS (setPositionInTransaction) @ (0.0,669.0): com.android.phone/com.android.phone.EmergencyDialer
01-02 02:39:03.268 752 3074 I WindowManager: SURFACE POS (setPositionInTransaction) @ (0.0,771.0): com.android.phone/com.android.phone.EmergencyDialer
01-02 02:39:03.285 752 3074 I WindowManager: SURFACE POS (setPositionInTransaction) @ (0.0,879.0): com.android.phone/com.android.phone.EmergencyDialer
01-02 02:39:03.302 752 3074 I WindowManager: SURFACE POS (setPositionInTransaction) @ (0.0,939.0): com.android.phone/com.android.phone.EmergencyDialer
android@NSGWD180021:/data/workspace/issueAnalysis/systemui/0614$
android@NSGWD180021:/data/workspace/issueAnalysis/systemui/0614$
android@NSGWD180021:/data/workspace/issueAnalysis/systemui/0614$
android@NSGWD180021:/data/workspace/issueAnalysis/systemui/0614$
android@NSGWD180021:/data/workspace/issueAnalysis/systemui/0614$

闪屏的:

android@NSGWD180021:/data/workspace/issueAnalysis/systemui/0614$ grep -i 'SURFACE POS' main003_bad.log 
01-02 02:16:53.380 752 3074 I WindowManager: SURFACE POS (setPositionInTransaction) @ (0.0,9.0): com.android.systemui.ImageWallpaper
01-02 02:16:53.388 752 3074 I WindowManager: SURFACE POS (setPositionInTransaction) @ (0.0,9.0): com.android.phone/com.android.phone.EmergencyDialer
01-02 02:16:53.400 752 3074 I WindowManager: SURFACE POS (setPositionInTransaction) @ (0.0,322.0): com.android.systemui.ImageWallpaper
01-02 02:16:53.408 752 3074 I WindowManager: SURFACE POS (setPositionInTransaction) @ (0.0,322.0): com.android.phone/com.android.phone.EmergencyDialer
01-02 02:16:53.470 752 3074 I WindowManager: SURFACE POS (setPositionInTransaction) @ (0.0,616.0): com.android.systemui.ImageWallpaper
01-02 02:16:53.475 752 3074 I WindowManager: SURFACE POS (setPositionInTransaction) @ (0.0,616.0): com.android.phone/com.android.phone.EmergencyDialer
01-02 02:16:53.539 752 3074 I WindowManager: SURFACE POS (setPositionInTransaction) @ (0.0,777.0): com.android.systemui.ImageWallpaper
01-02 02:16:53.543 752 3074 I WindowManager: SURFACE POS (setPositionInTransaction) @ (0.0,777.0): com.android.phone/com.android.phone.EmergencyDialer
01-02 02:16:53.617 752 3074 I WindowManager: SURFACE POS (setPositionInTransaction) @ (0.0,939.0): com.android.systemui.ImageWallpaper
01-02 02:16:53.622 752 3074 I WindowManager: SURFACE POS (setPositionInTransaction) @ (0.0,939.0): com.android.phone/com.android.phone.EmergencyDialer
01-02 02:16:53.727 752 3074 I WindowManager: SURFACE POS (setPositionInTransaction) @ (0.0,0.0): com.android.systemui.ImageWallpaper

这里调用动画

01-02 03:41:37.199   745  3054 W jackywei: 	at com.android.server.wm.WindowContainer.forAllWindows(WindowContainer.java:633)
01-02 03:41:37.199 745 3054 W jackywei: at com.android.server.wm.DisplayContent.prepareWindowSurfaces(DisplayContent.java:2637)
01-02 03:41:37.199 745 3054 W jackywei: at com.android.server.wm.WindowAnimator.animate(WindowAnimator.java:208)

查看更多