Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable Stay awake in the developer options using ADB?

Tags:

android

adb

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.

like image 355
MiSo Avatar asked Aug 16 '13 09:08

MiSo


People also ask

How do I enable ADB in Developer settings?

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.

What is ADB in Developer options?

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.

What is stay awake on Android?

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.


1 Answers

adb shell am start -n com.android.settings/.DevelopmentSettings
like image 168
3h3 Avatar answered Nov 05 '22 02:11

3h3