Skip to content
KernelSU Modules

Auto USB

Immutable release Synced

Plug in to automatically turn on USB Automatically turns off when unplugged

Description

Auto USB

简体中文

Works on Magisk / KernelSU / APatch Plug in a data cable and adb turns on automatically, unplug and it turns off

License: GPL-3.0-or-later. See LICENSE for the full text.

Install

Download from Releases, flash it in your manager, reboot

Open the module in a WebUI and pick a mode: MTP / PTP / USB Ethernet / MIDI / Charge only

Manager Minimum version
Magisk 20.4+
KernelSU 0.9.0+
APatch 10.7+

WebUI

Manager How to open it
KernelSU / KernelSU Next Module card → WebUI
APatch Module card → WebUI
Magisk Install MMRL and allow the Advanced KernelSU API

Build

python3 build.py

Releases

1.1.0

Latest Auto USB v1.1.0

Version code 10100 1.1.0

Download

Auto USB v1.1.0

Changelog

  • Rewrote the WebUI
  • Fixed several logic issues in the original implementation

Features

  • Five modes with one-tap locking

  • ADB turns on when the cable is plugged in and off when it is unplugged

  • MIUIX-style WebUI with light/dark themes

Support

Item Requirement
Manager Magisk / KernelSU / APatch
Android 8.0 (API 26) and above
Architecture Any — pure shell + front-end

Install

  1. Download from Releases
  2. Flash it in your manager
  3. Reboot
  4. Open the WebUI and pick a mode

Command reference

su -c autousbctl status
su -c autousbctl lock on ptp
su -c autousbctl lock off
su -c autousbctl log 60

Auto USB v1.1.0

本次更新日志如下

  • 重写webui
  • 纠正原本逻辑上的一些问题

功能

  • 五种模式一键锁定

  • 插线自动开启 adb,拔线关闭

  • MIUIX 风格 WebUI,支持深浅色切换

支持

项目 要求
管理器 Magisk / KernelSU / APatch
Android 8.0 (API 26) 及以上
架构 不限,纯 shell + 前端

安装

  1. 从Releases下载
  2. 在管理器里刷入
  3. 重启
  4. 打开 WebUI 选模式

命令速查

su -c autousbctl status
su -c autousbctl lock on ptp
su -c autousbctl lock off
su -c autousbctl log 60

Assets 1

autousb-1.1.0.zip 212.4 KiB

SHA-256 31ccb2afb930f864f27c167da4a7d3ba342433d4a3eed8c1c7647c2f0dd1793b · Attestations

Transparency

Repository
Shuos118/Auto-USB
Tag
1.1.0 Immutable release
Tag commit
f5442873729d
Content commit
e72397614515
SHA-256
31ccb2afb930f864f27c167da4a7d3ba342433d4a3eed8c1c7647c2f0dd1793b
Last change synced

Verify it yourself

KernelSU Modules does not sign or audit modules. The SHA-256 only proves the download matches this index. Verify the release yourself with the GitHub CLI:

gh release verify 1.1.0 -R Shuos118/Auto-USB
gh release verify-asset 1.1.0 autousb-1.1.0.zip -R Shuos118/Auto-USB