I'm trying to reproduce a bug in a third-party-developed app that seems to occur when my tablet is awakened from several hours of sleep. My understanding is the "power" button only turns off the screen, but does not activate true sleep until some period of time has passed. Is there a way to force deep sleep other than waiting a few hours?
Although my test device is a tablet, we are most interested in what happens on phones.
go to Settings – Battery saver/Auto-sleep.
Deep sleeping apps: Shows you all apps that will never run in the background. They'll only work when you open them. You can add apps to the list by tapping the + sign, selecting your desired app(s), and then tapping Add. To remove apps, tap More options (the three vertical dots), and then tap Remove apps.
Deep sleep means the app is pretty much completely disabled. It won't even get updates from the Play Store unless you open it first then manually check. It's best used for apps that don't need to do ANYTHING in the background.
If you have the device unplugged from the computer and USB Debugging turned off clicking the power button will force it to sleep.
If you have it plugged in, turning off USB Debugging and disabling Background Data will also force it into sleep mode once you push the power button.
You can use terminal:
adb shell dumpsys deviceidle -h
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