跳到主要内容
KernelSU 模块

altdb

不可变 Release 已同步

Alternative adb server over local network

介绍

altdb

A KernelSU module that provides wireless ADB over your local network.

Connect with the standard adb client and manage pairing, ports and permissions through the module WebUI. System adbd and its existing authorizations are left untouched.

Features

  • Six-digit pairing codes and TLS-encrypted connections. Paired computers can reconnect without pairing again.
  • Shell access, file transfers, app installation and removal, logs, reboot, and forward/reverse port forwarding.
  • Wi-Fi, hotspots and Ethernet over IPv4. Cellular and VPN interfaces are excluded.
  • Automatic pause when system USB or wireless debugging is enabled, followed by recovery once debugging is disabled and system adbd has stopped.
  • Session preservation during framework-only soft restarts, while the daemon and network remain alive.
  • A WebUI for status, connection commands, paired computers and diagnostics, available in English and Simplified Chinese.

Requirements

  • Android 11 or later on an ARM64 device.
  • KernelSU v3.2.5 (32525) or later.
  • A computer with adb installed, on a network that can reach the phone.

Getting started

  1. Install the module ZIP in KernelSU Manager and restart the phone.

  2. Turn off system USB debugging and wireless debugging.

  3. Open the module WebUI, wait for the service to start, then select Start pairing.

  4. Run the commands shown in the WebUI on your computer. Enter the six-digit code when prompted:

    adb pair PHONE_IP:PAIRING_PORT
    adb connect PHONE_IP:CONNECTION_PORT
    

Pairing and connection ports are different. The pairing window lasts five minutes and closes after a successful pairing. On later connections, use adb connect directly. Paired computers may also reconnect automatically when network discovery is available.

Settings and permissions

Use the WebUI to configure:

  • Connection port: Random by default, or a fixed port from 1024–65535. An occupied fixed port is reported as an error.
  • Allow adb root: Off by default. When enabled, adb root selects root permissions for new services across all connections; adb unroot selects shell permissions. TLS connections stay open, and running services keep their existing permissions. A service restart restores shell mode.
  • Paired computers: Revoking a computer disconnects it immediately. It must pair again to reconnect.
  • Language: Follows the system by default. A manual language choice is saved on the device.

Connections use shell permissions by default. Shell access to su follows KernelSU's authorization for shell. Changing the adb root setting in the WebUI disconnects existing sessions. Module upgrades preserve settings and pairing records; uninstalling removes the module's own data. CLI messages are in English.

After adb root, new shells append /data/adb/ksu/bin to PATH. Interactive shells load /data/adb/ksu/.ksurc when it exists, matching KernelSU; non-interactive commands such as adb shell command and adb exec-out command do not load it. adb unroot restores the normal environment for new shells.

Scope

altdb provides local-network ADB only. USB transport, JDWP/IDE debugging, incremental installation, remount, verity and recovery sideload are not supported. Some system commands depend on device permissions.

If a connection fails, check the pause reason in the WebUI, confirm that system debugging is off and the network is reachable, then try the manual connection command shown on the page.

历史版本

v0.2.1

最新

版本代码 7 0.2.1

下载
  • Remove independent su permission control
  • Keep TLS connection after adb root switch
  • Prevent local TCP and mDNS detection
  • Fix soft reboot
  • Fix runtime environment - now scrcpy should work
  • Fix Android property report
  • Load KernelSU environment for adb root shells

文件 1

altdb-v0.2.1-arm64.zip 1.3 MiB

SHA-256 e7c36f4711e1c8acae1046177aa00378c26591872a2ab84ae451c739deaddeb7 · Attestation

透明度

仓库
Dr-TSNG/altdb
Tag
0.2.1 不可变 Release
Tag commit
4a894d4ac709
内容 commit
2bfd7c9475c1
SHA-256
e7c36f4711e1c8acae1046177aa00378c26591872a2ab84ae451c739deaddeb7
最近同步到变更

自行复核

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

gh release verify 0.2.1 -R Dr-TSNG/altdb
gh release verify-asset 0.2.1 altdb-v0.2.1-arm64.zip -R Dr-TSNG/altdb