How to make deep sleep on your Android phone for testing

I am trying to reproduce a bug in a third-party application that seems to happen when my tablet wakes up from several hours of sleep. My understanding is that the "power" button only turns off the screen, but does not activate true sleep until a certain period of time has passed. Is there a way to make a deep sleep besides waiting a few hours?

Although my test device is a tablet, we are most interested in what is happening on the phones.

+6
source share
1 answer

If your device is disconnected from the computer and USB debugging is disabled, pressing the power button will make it sleep.

If you plugged it in by disabling USB debugging and turning off the background image, it will also wake it up as soon as you press the power button.

+1
source

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


All Articles