Enable Stay Awake¶
The Stay Awake feature keeps the screen on while the device is charging, which is essential for automated testing to prevent the screen from locking during test execution.
Steps¶
- Open Settings.
- Go to System.
- Tap on Developer options.
- Find the Stay awake option.
- Toggle it to the ON position.
When enabled, this setting prevents the device screen from turning off while connected to a charger. This is particularly important during automated testing as it ensures continuous interaction with the device without interruptions from screen timeouts.