本文主要是介绍Doze模式时序调研,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Doze模式
机型 | Light idle | Deep idle 时序 | 定制白名单 | AppStandby | BLE Scanning管控 |
华为P20 Pro | 开启 | 64.5分钟进入deep idle | 有 | 开启 | 禁止BLE scanning |
OPPO F11 Pro | 开启 | 30分钟进入deep idle | 有 | 开启 | 允许BLE scanning |
小米 MI 8 Pro | 开启 | 64.5分钟进入deep idle | 有 | 开启 | 允许BLE scanning |
FADI ROM | 20190703 ROM2.0,ROM3.0,FADI才开启 | 44.5分钟进入deep idle | 20190703 ROM2.0,ROM3.0,FADI才配置社交应用白名单 | 20190703 ROM2.0,ROM3.0,FADI才开启 | 允许BLE scanning |
上述:
- ROM 的doze 模式,时序可以参考 OPPO进行调整,加快进入doze的时间;
- Doze 模式下,参考华为,doze模式禁止蓝牙扫描;
- 关于SyncManager, OPPO新增了禁止app 自动同步策略
SyncManager: dispatchSyncOperation: pkg{com.ss.android.article.lite} is not allow to do sync automatically, skip sync!!!
备注:20190703文才进行了 ROM2.0,ROM3.0,FADI 项目doze优化,其他项目的Light idle、App Standby默认为关闭,且无doze定制白名单
1 华为P20 pro
-
- Light idle
Bugreport.zip 日志: mLightEnabled=true mDeepEnabled=true
DUMP OF SERVICE deviceidle:
Settings:
light_after_inactive_to=+3m0s0ms
light_pre_idle_to=+3m0s0ms
light_idle_to=+5m0s0ms
light_idle_factor=2.0
light_max_idle_to=+15m0s0ms
light_idle_maintenance_min_budget=+1m0s0ms
light_idle_maintenance_max_budget=+5m0s0ms
-
- Deep idle 时序
Bugreport.zip 日志,具体配置如下
inactive_to=+30m0s0ms
sensing_to=+4m0s0ms
locating_to=+30s0ms
location_accuracy=20.0m
motion_inactive_to=+10m0s0ms
idle_after_inactive_to=+30m0s0ms
| | 30分 | 30分 | 4分 | 30秒 | 1小时 | 5分钟 | 1*2小时|5*2分钟 |……ACTIVE INACTIVE IDLE_PENDIN SENSING LOCATING IDLE MAINTENANCE IDLE MAINTENANCE
Bugreport.zip 日志,具体配置如下
inactive_to=+30m0s0ms
sensing_to=+4m0s0ms
locating_to=+30s0ms
location_accuracy=20.0m
motion_inactive_to=+10m0s0ms
idle_after_inactive_to=+30m0s0ms
通过Battery Historian 中查看,与预设deep idle时序一致
-
- 定制白名单
Adb shell dumpsys deviceidle 日志中查看:配置华为服务、应用、社交应用等
-
- App Standby
Bugreport.zip 日志:
Settings:
mCheckIdleIntervalMillis=+3h0m0s0ms
mAppIdleParoleIntervalMillis=+1d0h0m0s0ms
mAppIdleParoleWindowMillis=+2h0m0s0ms
mAppIdleParoleDurationMillis=+10m0s0ms
mExemptedSyncScheduledNonDozeTimeoutMillis=+10m0s0ms
mExemptedSyncScheduledDozeTimeoutMillis=+4h0m0s0ms
mExemptedSyncStartTimeoutMillis=+10m0s0ms
mAppIdleEnabled=true
-
- BLE Scanning管控
BugReport 可知 Doze 模式下禁止 BLE scanning
- OPPO F11 Pro
2.1 Light idle
Bugreport.zip 日志: mLightEnabled=true mDeepEnabled=true
DUMP OF SERVICE deviceidle:
Settings:
light_after_inactive_to=+3m0s0ms
light_pre_idle_to=+3m0s0ms
light_idle_to=+5m0s0ms
light_idle_factor=2.0
light_max_idle_to=+15m0s0ms
light_idle_maintenance_min_budget=+1m0s0ms
light_idle_maintenance_max_budget=+5m0s0ms
min_light_maintenance_time=+5s0ms
2.2 Deep idle 时序
Bugreport.zip 日志,具体配置如下
inactive_to=+13m45s0ms
sensing_to=+2m0s0ms
locating_to=+30s0ms
location_accuracy=20.0m
motion_inactive_to=+13m45s0ms
idle_after_inactive_to=+13m45s0ms
| 13分45秒 | 13分45秒 | 2分 | 30秒 | 1小时 | 5分钟 | 1*2小时|5*2分钟 |……ACTIVE INACTIVE IDLE_PENDIN SENSING LOCATING IDLE MAINTENANCE IDLE MAINTENANCE
通过Battery Historian 中查看及moble日志查看,与预设deep idle时序一致
Line 149153: 07-14 19:33:09.080493 1288 1288 I device_idle: [1,no activity]
Line 149508: 07-14 19:48:10.218910 1288 1309 I device_idle: [2,s:alarm]
Line 149803: 07-14 20:03:10.191984 1288 1309 I device_idle: [3,s:alarm]
Line 149818: 07-14 20:03:20.260258 1288 1288 I device_idle: [4,s:stationary]
Line 149819: 07-14 20:03:20.271997 1288 1288 I device_idle: [5,s:stationary]
Line 150305: 07-14 20:49:02.541147 1288 1309 I device_idle: [6,s:alarm]
2.3 定制白名单
Adb shell dumpsys deviceidle 日志中查看:配置OPPO服务、应用、社交应用等
2.4 App Standby
Bugreport.zip 日志:
Settings:
mCheckIdleIntervalMillis=+3h0m0s0ms
mAppIdleParoleIntervalMillis=+1d0h0m0s0ms
mAppIdleParoleWindowMillis=+2h0m0s0ms
mAppIdleParoleDurationMillis=+10m0s0ms
mExemptedSyncScheduledNonDozeTimeoutMillis=+10m0s0ms
mExemptedSyncScheduledDozeTimeoutMillis=+4h0m0s0ms
mExemptedSyncStartTimeoutMillis=+10m0s0ms
mRusAutoPowerSaveEnable=true
mAppIdleEnabled=true
-
- SyncManager
会对第三方应用进行禁止自更新
07-12 22:15:51.412729 1288 1807 D SyncManager: dispatchSyncOperation: pkg{com.ss.android.article.lite} is not allow to do sync automatically, skip sync!!!
-
- BLE Scanning管控
- BLE Scanning管控
BugReport 可知 Doze 模式下允许 BLE scanning,即不管控
- 小米海外版 MI 8 Pro
- Light idle
Bugreport.zip 日志: mLightEnabled=true mDeepEnabled=true
DUMP OF SERVICE deviceidle:
Settings:
light_after_inactive_to=+3m0s0ms
light_pre_idle_to=+3m0s0ms
light_idle_to=+5m0s0ms
light_idle_factor=2.0
light_max_idle_to=+15m0s0ms
light_idle_maintenance_min_budget=+1m0s0ms
light_idle_maintenance_max_budget=+5m0s0ms
-
- Deep idle 时序
Bugreport.zip 日志,具体配置如下
inactive_to=+30m0s0ms
sensing_to=+4m0s0ms
locating_to=+30s0ms
location_accuracy=20.0m
motion_inactive_to=+10m0s0ms
idle_after_inactive_to=+30m0s0ms
idle_pending_to=+5m0s0ms
max_idle_pending_to=+10m0s0ms
| | 30分 | 30分 | 4分 | 30秒 | 1小时 | 5分钟 | 1*2小时|5*2分钟 |……ACTIVE INACTIVE IDLE_PENDIN SENSING LOCATING IDLE MAINTENANCE IDLE MAINTENANCE
Bugreport.zip 日志,具体配置如下
inactive_to=+30m0s0ms
sensing_to=+4m0s0ms
locating_to=+30s0ms
location_accuracy=20.0m
motion_inactive_to=+10m0s0ms
idle_after_inactive_to=+30m0s0ms
-
- 定制白名单
Adb shell dumpsys deviceidle 日志中查看:配置华为服务、应用、社交应用等
-
- App Standby
Bugreport.zip 日志:
Settings:
mCheckIdleIntervalMillis=+3h0m0s0ms
mAppIdleParoleIntervalMillis=+1d0h0m0s0ms
mAppIdleParoleWindowMillis=+2h0m0s0ms
mAppIdleParoleDurationMillis=+10m0s0ms
mExemptedSyncScheduledNonDozeTimeoutMillis=+10m0s0ms
mExemptedSyncScheduledDozeTimeoutMillis=+4h0m0s0ms
mExemptedSyncStartTimeoutMillis=+10m0s0ms
mAppIdleEnabled=true
这篇关于Doze模式时序调研的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!