USB Debug Guard
Features
- Detects USB data connections and ADB state through Android system APIs, without routine Root polling.
- Turns the screen off while keeping ADB reachable, or keeps it awake at minimum brightness for devices that lose ADB when the display sleeps.
- Saves and restores the previous display settings.
- Can lock the device after USB disconnects.
- Runs only after you enable its foreground service.
- Stops automatic Root work after a denial, timeout, exception, or process cleanup failure, preventing an endless su retry loop.
- English and Simplified Chinese.
Requirements
- A working Root manager such as Magisk or KernelSU, able to run Android settings and input commands.
- A USB data connection. A charge-only cable or charger does not start protection.
Root behavior varies between devices, OEM firmware, and Root managers. Test the app on a non-critical device before relying on it for unattended sessions.
- Author: Nongfsq
- License: Apache License 2.0
- Issue Tracker
- Source Code
- Changelog
- Build Metadata
- Reproducibility Status
Donate
Versions
Although APK downloads are available below to give you the choice, you should be aware that by installing that way you will not receive update notifications and it's a less secure way to download. We recommend that you install the F-Droid client and use that.
Download F-Droid-
arm64-v8aarmeabi-v7ax86x86_64This version requires Android 8.0 or newer.
It is built and signed by the original developer, and guaranteed to correspond to this source tarball.
Download APK 1 MiB PGP Signature | Build Log
-
arm64-v8aarmeabi-v7ax86x86_64This version requires Android 8.0 or newer.
It is built and signed by the original developer, and guaranteed to correspond to this source tarball.
Download APK 1 MiB PGP Signature | Build Log


