I have a Nexus 5 that won't go into Doze/IDLE mode using ADB commands from Windows. It's adb connected using USB cable and it is working 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
Here your Nexus 5 should be listed as ‘Android Composite ADB Interface’. Step 1. Enable USB Debugging Mode. Step 2. Switch off your phone and boot it in bootloader/fastboot mode. To do this Hold Volume Up Key + Volume Down Key and then press the Power button.
For Bootloader/Fastboot driver Put your Nexus 5 in bootloader/fastboot mode: Power off your device and wait for 5-10 seconds until the device is fully switched off. Press and hold Volume Down + Power button together and release them as soon as you see the bootloader screen.
I had a similar problem with my Nexus 4 (Android version 4.4.2), it wasn't listed in adb devices. Make sure USB debugging is enabled from device, and do the following on your PC: From PC Control Panel, System -> Device manager -> Right click Nexus 4 -> Update driver.
And make sure you connect your Nexus 5 in that particular mode to be able to install drivers for it. Power off your device and wait for 5-10 seconds until the device is fully switched off. Press and hold Volume Down + Power button together and release them as soon as you see the bootloader screen. └ You’ll see an Android robot.
First you need run this command:
> adb shell dumpsys battery unplug
Then turn off the screen (this step is crucial), otherwise the device remains in ACTIVE
state.
After that run this command until the device state 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
There may be a condition which prevents the phone from going into IDLE, such as a scheduled alarm clock. Make sure there are no alarm clock apps set to go off in less than an hour of you trying to force the phone into IDLE.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With