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

前端 未结 6 2091
野性不改
野性不改 2020-12-08 22:05

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 opti

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-08 22:38

    OK, I found a way:

    adb shell am start -S com.android.settings/.Settings\$DevelopmentSettingsActivity
    

    I used this : https://github.com/android/platform_packages_apps_settings/blob/master/AndroidManifest.xml

    to find the name of the Activity I needed.

    Now I have to figure out how to choose the stay awake option by createing a touch event or something...

提交回复
热议问题