圖標

USB Debug Guard

Turn the screen off during long USB debugging sessions while keeping ADB alive
新版本 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.
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.

版本

雖然在下方可選擇下載 APK 檔案,但要留意這樣的安裝方式將不會收到更新通知,是一種較不安全的下載方法。建議您先安裝 F-Droid 用戶端使用。

下載 F-Droid
  • 版本 0.1.6 (7) 建議 於 2026 年 10 月 29 日新增

    arm64-v8a armeabi-v7a x86 x86_64

    此版本需要 Android 8.0 或更高的版本。

    此套件包由原開發者建置和簽署,並保證與此原始碼 Tarball 保持一致。

    權限
    • 執行前景服務
      允許應用程式使用前景服務。
    • 搭配「specialUse」類型執行前景服務
      允許應用程式搭配「specialUse」類型使用前景服務
    • 顯示通知
      允許應用程式顯示通知
    • 啟動時執行
      允許應用程式在系統完成開機程序後立刻自行啟動。這會增加手機的開機時間,而且會因為系統一直執行該應用程式導致手機的整體運作速度變慢。
    • 防止手機休眠
      允許應用程式防止手機進入休眠狀態。
    • io.github.nongfsq.usbdebugguard.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION

    下載 APK 1 MiB PGP 簽章 | 建置紀錄

  • 新版本 0.1.5
    Much smaller download: the APK drops from about 12.6 MB to 1.1 MB. Guard behavior and Root safety are unchanged.
  • 版本 0.1.5 (6) - 於 2026 年 10 月 27 日新增

    arm64-v8a armeabi-v7a x86 x86_64

    此版本需要 Android 8.0 或更高的版本。

    此套件包由原開發者建置和簽署,並保證與此原始碼 Tarball 保持一致。

    權限
    • 執行前景服務
      允許應用程式使用前景服務。
    • 搭配「specialUse」類型執行前景服務
      允許應用程式搭配「specialUse」類型使用前景服務
    • 擁有完整的網路存取權
      允許應用程式建立網路通訊端及使用自訂網路通訊協定。瀏覽器和其他應用程式會提供將資料傳輸到網際網路的方法,因此不需要這項權限也能將資料傳輸到網際網路。
    • 顯示通知
      允許應用程式顯示通知
    • 啟動時執行
      允許應用程式在系統完成開機程序後立刻自行啟動。這會增加手機的開機時間,而且會因為系統一直執行該應用程式導致手機的整體運作速度變慢。
    • 防止手機休眠
      允許應用程式防止手機進入休眠狀態。
    • io.github.nongfsq.usbdebugguard.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION

    下載 APK 1 MiB PGP 簽章 | 建置紀錄