我按照这里描述的步骤进行操作:
https://developer.android.com/preview/testing/guide.html#doze-standby
情况:
Android Debug Bridge 版本为 1.0.32
Nexus 9 使用预览版 M
Shell:
$ adb shell dumpsys battery unplug
=> 已工作,设备已拔出
$ adb shell dumpsys deviceidle step
输出:跳转到:激活状态$ adb shell dumpsys deviceidle -h
Device idle controller (deviceidle) dump options:
[-h] [CMD]
-h: print this help text.
Commands:
step
disable
enable
whitelist
我用以下方式尝试:
adb shell dumpsys deviceidle enable
但它没有起作用。
所以,我的问题是如上所述,如何在Doze模式下移动设备?我做错了什么吗?
编辑 - 2016年6月:
新链接:https://developer.android.com/training/monitoring-device-state/doze-standby.html