我正在按照 Android页面上的说明进行操作要将android切换到doz模式以测试我的应用,我已经使用了真实的设备以及模拟器.但是在两种情况下,当我一次或多次给出第二条命令时,就是
I am following instructions on this android page to switch android to doz mode to test my app, I have used a real device as well as emulator. But in both cases when I give the second command once or several times, which is
adb shell dympsys deviceidle step它仅显示已步进":ACTIVE 在发出命令之前,我也关闭/锁定了设备,但没有用.我想知道我的应用在打ze模式下的行为,但似乎什么也没用,
it only says Stepped: ACTIVE Before giving the commands I turned off/locked the device as well but no use. I wanted how my app behaves in doze mode but nothing seems to work,
我也尝试过
adb shell dumpsys deviceidle force-idle但这给了我下面的信息.
but this gives me the message below.
Unable to go idle; not enabled请告知.我使用的是Motorola Moto G第二代android 6.0,还使用了模拟器x86_64位图和android studio版本1.5.1
Please advise. I am using motorola Moto G 2nd generation android 6.0 and also used emulator x86_64 bit image with android studio version 1.5.1
推荐答案尝试使用
adb shell dumpsys deviceidle enable
应启用深度和轻度空闲模式,然后使用
that should enable the deep and light idle modes, then use
adb shell dumpsys deviceidle force-idle更多推荐
无法切换到打ze模式
发布评论