如何在打盹模式(安卓preVIEW M /棉花糖)移动设备? [英] How to shift device in Doze Mode (Android Preview M / Marshmallow)?
问题描述
我也跟着在这里描述的步骤:
I followed steps described here:
https://developer.android.com/preVIEW /测试/ guide.html#打盹待机
情况:
-
安卓调试桥1.0.32版本
Android Debug Bridge version 1.0.32
的Nexus 9 preVIEW中号
Nexus 9 with Preview M
外壳:
$ adb shell dumpsys battery unplug
=>工作,设备拔掉
=> worked, device unplugged
$ adb shell dumpsys deviceidle step
=>输出:走到:ACTIVE
=> Output: Stepped to: ACTIVE
$ adb shell dumpsys deviceidle -h
=>行不通=>输出:
=> does not work => Output:
Device idle controller (deviceidle) dump options:
[-h] [CMD]
-h: print this help text.
Commands:
step
disable
enable
whitelist
我试过跟:
adb shell dumpsys deviceidle enable
但没有奏效。
But it didn't work.
所以我的问题,如上面提到的,如何将设备在打盹模式转变? 我是怎么做了?
So my question, as mentioned above, how to shift the device in Doze-Mode? What did i make wrong?
推荐答案
好吧,我知道了。诀窍是要关闭屏幕!之后,
Ok, i got it. The trick was to turn the screen off! After that
$亚行外壳dumpsys deviceidle一步 输出:
$ adb shell dumpsys deviceidle step outputs:
IDLE_PENDING
IDLE_PENDING
然后
传感
然后
IDLE
然后
IDLE_MAINTENANCE
IDLE_MAINTENANCE
然后
IDLE
然后
IDLE_MAINTENANCE
IDLE_MAINTENANCE
等等...
非常感谢这个网站:
<一个href="https://newcircle.com/s/post/1739/2015/06/12/diving-into-android-m-doze">https://newcircle.com/s/post/1739/2015/06/12/diving-into-android-m-doze
这篇关于如何在打盹模式(安卓preVIEW M /棉花糖)移动设备?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!