USB Debug Guard icon

USB Debug Guard APK

by Nongfsq · Development

Turn the screen off during long USB debugging sessions while keeping ADB alive

Download APK v0.1.6 · 1.1 MB
USB Debug Guard screenshot 1USB Debug Guard screenshot 2USB Debug Guard screenshot 3

About USB Debug Guard

USB Debug Guard is a root-only tool for long USB debugging sessions. It protects the display while keeping ADB reachable, then restores the previous display settings when protection stops.

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.

What's new in version 0.1.6

The F-Droid build no longer asks for network access: it has no update check, so it never needed the INTERNET permission. Guard behavior is unchanged.

APK file information

Package nameio.github.nongfsq.usbdebugguard
Version0.1.6 (code 7)
Minimum AndroidAndroid 8.0 · targets Android 16
Architecturesarm64-v8a, armeabi-v7a, x86, x86_64
SHA-2569e67e30de7b60b9baa727ab0d109eebfa20902a95ecf5253c5d97d724eaee832
Signatureafcee14b04b1cb3e32b2f003c12da1b64e0e117d05bc389fcee226c5a9e17e6e
LicenceApache-2.0 — permissive free licence: the source code is public and reusable
Source codegithub.com/Nongfsq/usb-debug-guard

Permissions

  • Run in the background
  • Show notifications
  • Start at boot
  • Keep the device awake

Older versions

How to install USB Debug Guard APK

  1. Tap Download APK above, then open the file once the download has finished.
  2. If Android asks, allow your browser to install unknown apps.
  3. Tap Install. USB Debug Guard then appears with your other apps.

Having trouble? Read our guides how to install an APK on Android and "App not installed": how to fix it.

Frequently asked questions

Is USB Debug Guard free?

Yes. USB Debug Guard is distributed under the Apache-2.0 licence: free, no subscription, and its source code is public.

Is this APK file safe?

The file is the one built and published by the F-Droid repository from the public source code. Its SHA-256 fingerprint is shown above, so you can compare it after downloading. How to check an APK.

Will USB Debug Guard work on my phone?

You need at least Android 8.0. The app also works without Google services, so it runs on recent Huawei phones too.

Similar apps