在Genymotion中测试打ze功能(Android 6.0棉花糖) [英] Testing Doze feature (Android 6.0 Marshmallow) in Genymotion

查看:98
本文介绍了在Genymotion中测试打ze功能(Android 6.0棉花糖)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经尝试过Google的命令

I've tried the commands from Google

adb shell dumpsys battery unplug
adb shell dumpsys deviceidle step

Genymotion虚拟设备上的"PREVIEW-Google Nexus 6P-6.0.0-API 23-1440x2560"和"PREVIEW-Google Nexus 5X-6.0.0-API 23-1080x1920"虚拟设备上的

,但遗憾的是无法将任何人置于空闲模式.总是在执行第二条命令后才看到Stepped to: ACTIVE.

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.

然后尝试

adb shell dumpsys deviceidle force-idle

我看到了Unable to go idle; not enabled.这很奇怪,因为Genymotion在发行说明中声明( https://www.genymotion.com/#!/release-notes )(我使用的是2.6.0版),打ze现在可以正常工作了."

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."

有人在Genymotion中设法使用和测试过Doze吗?我应该使用其他命令吗?

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

推荐答案

我是Genymotion团队的成员.

I'm part of the Genymotion team.

发行说明不正确,我们的打Do功能补丁尚未在预览版中发行.对不起,这个错误.

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

我们很快将正式发布棉花糖,它将包括打ze功能.在此将来的版本中,您将需要在每次设备启动时通过运行以下命令来手动启用Doze:

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

更新:发布已完成,Doze现在可在Genymotion设备上使用.

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

这篇关于在Genymotion中测试打ze功能(Android 6.0棉花糖)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆