Testing Doze feature (Android 6.0 Marshmallow) in Genymotion

本秂侑毒 提交于 2019-12-06 06:18:51

问题


I've tried the commands from Google

adb shell dumpsys battery unplug
adb shell dumpsys deviceidle step

on both "PREVIEW - Google Nexus 6P - 6.0.0 - API 23 - 1440x2560" and "PREVIEW - Google Nexus 5X - 6.0.0 - API 23 - 1080x1920" virtual devices from Genymotion but unfortunately cannot put anyone to idle mode. Always after second command I see Stepped to: ACTIVE.

Then trying

adb shell dumpsys deviceidle force-idle

I see Unable to go idle; not enabled. This is strange because Genymotion states in release note (https://www.genymotion.com/#!/release-notes) for version 2.6.0, which I use, that "Doze now works properly."

Is there anyone who managed to use and test Doze in Genymotion? Should I use some other commands?


回答1:


I'm part of the Genymotion team.

The release note is not correct and our patch for Doze feature has not been released on the preview. Sorry for this mistake.

We will soon release Marshmallow officially and it will include Doze feature. On this future release you will need to enable Doze manually, at each device startup, by running the following command:

adb shell dumpsys deviceidle enable

Then, all the usual commands will work perfectly:

adb shell dumpsys battery unplug
adb shell dumpsys deviceidle step

UPDATE: The release has been done, Doze is available now on Genymotion devices.



来源:https://stackoverflow.com/questions/34777245/testing-doze-feature-android-6-0-marshmallow-in-genymotion

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!