Skip to content

A simple Android app to listen for ADB connection notification and enable/dissable the Developer Options "Stay Awake" setting.

License

Notifications You must be signed in to change notification settings

projectdelta6/ADB-Stay-Awake

Repository files navigation

ADB-Stay-Awake

This is a simple app that has one purpose: Automatically enable/dissable the "Stay Awake" Developer Options setting as you connect/disconnect to ADB.

Project repo

Important

The android.permission.WRITE_SECURE_SETTINGS is a System permission that is not granted to any non-System app. So to get around this, after installing the app, you have to connect the device to an ADB console and run this command to grant the permission:

adb shell pm grant com.duck.stayawakeadb android.permission.WRITE_SECURE_SETTINGS

APK

For those that are not able, or willing, to build this app themselves I have put up a compiled APK in the APK folder.

The APK is also available on IzzyOnDroid

Release

ToDo:

  • check if WRITE_SECURE_SETTINGS permission is granted and, if not, prompt to run command.
  • add Wireless Debugging setting toggle.
  • make it look sexy.

About

A simple Android app to listen for ADB connection notification and enable/dissable the Developer Options "Stay Awake" setting.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages