我有一个Nexus 5,它不会使用来自Windows的亚行命令进入Doze/空闲模式。它是亚行连接使用USB电缆,它正在为所有其他亚行命令工作。屏幕关机了。
C:\>adb shell dumpsys deviceidle force-idle
Unable to go idle; stopped at ACTIVE
C:\>adb shell dumpsys deviceidle enable
C:\>adb shell dumpsys battery unplug
C:\>adb shell dumpsys deviceidle step
Stepped to: ACTIVE
C:\>adb shell dumpsys deviceidle step
Stepped to: ACTIVE
C:\>adb shell dumpsys deviceidle step
Stepped to: ACTIVE
C:\>adb shell dumpsys deviceidle enable
C:\>adb shell dumpsys deviceidle force-idle
Unable to go idle; stopped at ACTIVE发布于 2016-04-23 07:44:44
首先,您需要运行以下命令:
> adb shell dumpsys battery unplug然后关闭屏幕(此步骤至关重要),否则设备仍处于ACTIVE状态。
之后,运行此命令,直到设备状态更改为IDLE。
> adb shell dumpsys deviceidle step
Stepped to: IDLE_PENDING
> adb shell dumpsys deviceidle step
Stepped to: SENSING
> adb shell dumpsys deviceidle step
Stepped to: LOCATING
> adb shell dumpsys deviceidle step
Stepped to: IDLE发布于 2016-06-22 12:52:35
可能有一种情况可以阻止手机进入空闲状态,例如预定的闹钟。确保没有闹钟应用程序在不到一个小时的时间内启动,你试图迫使手机处于空闲状态。
https://stackoverflow.com/questions/36801473
复制相似问题