I'm trying to find a way to enable the Developer options -> Stay awake option via ADB. The solution that I found was to find a way to open developers option menu and then enable stay awake option using setevent command in ADB.
Now I'm trying to find the command that will open the developers options. I found the command that opens display options:
adb shell am start -n com.android.settings/.DisplaySettings
So I think that a similar command that opens developers options exists.
I will also be glad to hear about another way to enable stay awake option via ADB if there is any.
Enable adb debugging on your device To make it visible, go to Settings > About phone and tap Build number seven times. Return to the previous screen to find Developer options at the bottom. On some devices, the Developer options screen might be located or named differently. You can now connect your device with USB.
Android Debug Bridge (adb) is a command line tool that allows for communication between a computer and a connected Android device. It facilitates a variety of device actions, such as installing and debugging apps, and it provides access to commands that are not traditionally available to a connected device.
Android tablets will allow you to prevent the display from going to sleep during the day with a "Stay Awake" mode. This mode will also help with dimming in the evening to conserve battery.
adb shell am start -n com.android.settings/.DevelopmentSettings
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