Nexus 5 will not work in dosage mode using ADB

I have a Nexus 5 that won't go into Doze / IDLE mode using ADB commands from Windows. It is connected by adb using a USB cable and works for all other ADB commands. The screen is off.

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 
+5
source share
2 answers

First you need to run this command:

 > adb shell dumpsys battery unplug 

Then turn off the screen (this step is critical), otherwise the device remains in the ACTIVE state.

After that, run this command until the device status changes to 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 
+7
source

There may be a condition that prevents the phone from switching to IDLE, for example, a scheduled alarm. Make sure there are no alarm apps that need to be turned off in less than an hour when you try to get the phone to go into standby mode.

+1
source

Source: https://habr.com/ru/post/1247746/


All Articles