跳到主要内容
KernelSU 模块

Enable MIUI ADB

不可变 Release 已同步

Enable "adb install" on MIUI / HyperOS without Xiaomi account login and SIM card

介绍

icon

enable-miui-adb

Enable "adb install" for MIUI / HyperOS without Xiaomi account login and SIM card.

Requires ROOT permission.

What it does:

  1. Enable USB debugging (Security settings) — persist.security.adbinput=1
  2. Enable Fastboot — persist.fastboot.enable=1
  3. Enable "Install via USB" — security_adb_install_enable=true in Security Center preferences
  4. Disable the install intercept — permcenter_install_intercept_enabled=false

Usage

KernelSU manager (one-shot script)

This is a one-shot script entry in KernelSU Modules. Open it in the manager's module store and tap Run: the script runs once, nothing is installed and no reboot is needed.

Options:

  • Also enable fastboot (ENABLE_FASTBOOT, default on): also set persist.fastboot.enable=1.

Older KernelSU managers / Magisk

  1. Install the ZIP from the module store or from Releases.
  2. Tap the Action button of the module in the manager. No reboot is needed. The module can be uninstalled afterwards.

Shell

curl https://raw.githubusercontent.com/Ylarod/enable-miui-adb/main/module/action.sh > /data/local/tmp/enable_miui_adb.sh
su -c sh /data/local/tmp/enable_miui_adb.sh
# Skip fastboot: su -c 'KSU_PARAM_ENABLE_FASTBOOT=false sh /data/local/tmp/enable_miui_adb.sh'
rm /data/local/tmp/enable_miui_adb.sh

Releasing a new version

  1. Bump version and versionCode in module/module.prop (versionCode must increase).
  2. Commit, then tag and push: git tag v1.0.1 && git push origin v1.0.1

The release workflow zips module/ and publishes an immutable release, which KernelSU Modules picks up automatically.

Thanks

https://www.leadroyal.cn/p/1189/

License

MIT

历史版本

透明度

Tag
v1.0.0 不可变 Release
Tag commit
330971689451
内容 commit
892619db24a8
SHA-256
2e5476c7d1f1c3e82eee688ee8e3b40105b71e8a6f4dbb7fcf5260c0c2211d21
最近同步到变更

自行复核

KernelSU 模块不对模块签名,也不审计模块代码。SHA-256 只证明下载内容与本索引一致。可使用 GitHub CLI 自行复核:

gh release verify v1.0.0 -R Ylarod/enable-miui-adb
gh release verify-asset v1.0.0 enable_miui_adb-100-v1.0.0.zip -R Ylarod/enable-miui-adb