无法切换到打ze模式 [英] Can not switch to Doze mode

查看:128
本文介绍了无法切换到打ze模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在按照 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模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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