无法切换到打ze模式

编程入门 行业动态 更新时间:2024-10-24 04:37:37
本文介绍了无法切换到打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模式

本文发布于:2023-11-11 23:38:29,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1579860.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:切换到   模式   ze

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!