Repository navigation
Auto USB v1.0.0 #3
Shuos118
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Auto USB v1.0.0
Major update
Module refactor
Changelog
Module refactor
Daemon PID path was wrong → always "stopped"
Execution failures were treated as "disabled"; "disabled" was also shown when no host was available
ksu.execcalling convention mismatch (a function passed asopts→ never calls back)KernelSU only returns the last stdout line → state was swallowed; switched to a single-line protocol
statecalledsvc, stalling 2.2 s → binder-free fast pathWebView cached the old
script.js→ timestamped cache-bustingAdded an enable switch
Fixed the "host did not respond" error
Fixed the "uid=0" error
The daemon reset the user-selected composition to
OFF_PROFILEat bootservice.shexiting took the whole process group down → switched tosetsidNo locking around start/stop → double instances; PID reuse could kill an unrelated process
No retry when applying failed; kept rewriting blindly when the composition was unreadable
Uninstall did not restore
usb config/adb_enabledupdate-binarydid not validate the module idupdate-binarypackaging permissionscfg_setbuilt values withsedincorrectly; a corrupt config silently disabled the modulesvc/settingshad no timeout;normdepended onpasteINSECURE_ADBdefault changed from 1 to 0build.pyoutput path, zip permission bits, CRLF issuesFeatures
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
Install
Command reference
Auto USB v1.0.0
重大更新
模块重构
本次更新日志如下
模块重构
守护进程 PID 路径写错 → 永远「已停止」
执行失败被当成「已停用」;无宿主也显示停用
ksu.exec 调用约定不兼容(函数当 opts → 永不回调)
KSU 只回 stdout 最后一行 → 状态被吞,改单行协议
state 调 svc 卡 2.2 秒 → 改无 binder 快路径
WebView 缓存旧 script.js → 加时间戳
新增启用开关
解决 host did not respond 报错
解决 uid=0 报错
开机把用户选的组合改回 OFF_PROFILE
service.sh 退出带走进程组 → 改 setsid
启停无锁会双实例;PID 复用误杀
应用失败不重试;读不到组合还每秒乱改
卸载不还原 usb config / adb_enabled
update-binary 不校验 module id
update-binary 打包权限
cfg_set 用 sed 拼值错误;坏配置会静默关模块
svc/settings 无超时;norm 依赖 paste
INSECURE_ADB 默认 1 → 改 0
build.py 输出路径 zip 权限位 CRLF 问题
功能
五种模式一键锁定
插线自动开启 adb,拔线关闭
MIUIX 风格 WebUI,支持深浅色切换
支持
安装
命令速查
This discussion was created from the release Auto USB v1.0.0.
All reactions