Action - Set USB Debugging State

The action Set USB Debugging State enables or disables the USB debugging setting.

Warning: This function requires root access, is not officially supported by Android and might not work on all devices.
Note: adb can be used on some versions of Android to grant the permissions to execute the action without root:

  1. Install adb on a computer (search internet on how to install adb)
  2. enable USB Debugging in System settings -> Developer options on your Android device
  3. connect your Android device to the computer
  4. execute following command in a terminal: adb shell pm grant ch.gridvision.ppam.androidautomagic android.permission.WRITE_SECURE_SETTINGS

Example:
  • Enable USB debugging at work and at home but disable USB debugging elsewhere.
Settings
USB Debugging
Whether to turn USB debugging on or off.