A simple switch for developers and testers who turn USB debugging on and off all the time.
Put the 1x1 widget on your home screen: it shows the current USB debugging state by color, and one tap changes it.
■ Features
• 1x1 home screen widget — green when on, gray when off
• Turn it on or off with one tap on the card in the app, too
• Turning it on also turns on Developer options (when the permission is granted)
• No root, no sign-up, no login
■ Two ways to use it
1) Without any permission
Tap the widget or the app card and the Developer options screen opens right away. Scroll down and switch USB debugging on or off there.
If Developer options is off, the About phone screen opens (tap Build number 7 times in Software information to turn it on).
2) Instant toggle with one tap (needs a PC once)
Connect your phone to a PC with USB debugging on and run the command below once. After that, the widget switches USB debugging the moment you tap it.
adb shell pm grant mk.usb.switch android.permission.WRITE_SECURE_SETTINGS
The permission stays after a reboot. If you uninstall and reinstall the app, run it once more.
■ Good to know
• Turning off USB debugging disconnects adb from your PC immediately.
• On some phones, the maker's security settings may block the change even with the permission.
• No personal information such as your name or contacts is collected. Only the data needed for crash reports, ads and push notifications is handled. See the privacy policy for details.
Toggle USB debugging on or off with one tap from a home screen widget.