Stay-Awake on ADB
enable/dissable "Stay Awake" based on ADB connection
com.duck.stayawakeadb
About Stay-Awake on ADB
<p><i>ADB-Stay-Awake</i> is a simple app that has one purpose: Automatically enable/dissable the "Stay Awake" Developer Options setting as you connect/disconnect to ADB.</p><p><b>Important:</b> the <code>android.permission.WRITE_SECURE_SETTINGS</code> 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:</p><p><code>adb shell pm grant com.duck.stayawakeadb android.permission.WRITE_SECURE_SETTINGS</code></p>