Repository navigation
v3.4 - first tagged release
First tagged release: the USB relay app that lets the real adb in Termux
control a second Android phone over a USB OTG cable, with no root on the host
phone and no computer involved.
Download: adbotg-bridge-v34.apk (below)
SHA-256: 273031d2431ce71c10d79fcace40f6071717f924abe9984ab76877ae4fd8a85b
What works
- Relays raw ADB packets between the target phone's
adbdand
127.0.0.1:6000, so Termux'sadbworks as usual:shell(with proper
terminal sizing),push,pull,install,logcat,reboot,forward. - The app never holds adb keys; RSA authentication stays between Termux's
adband the target, which shows its normal "Allow USB debugging?" prompt. - Foreground service with automatic reconnect when the cable drops.
- Tested on real hardware by the author: host phone running Termux, target
phone on Android 11 (targetSdk 34, minSdk 21).
Build verification
Built from this source tree with JDK 17 and Android SDK 34. All 13 unit tests
pass (./gradlew :cli:testDebugUnitTest, fake adb target over a local socket).
One timing-sensitive test (garbageBytesCloseSessionWithHexEvidence) failed
once on a slow single-core machine and passed on re-run.
Known caveats
- Tested on one pair of phones; other devices, Android versions, USB hubs and
adapters may behave differently. - One adb client at a time; a new connection replaces the old one.
- The relay is an open adb port on
127.0.0.1while it runs - stop the
service when you are done. - Developed with an AI assistant writing most of the code under the author's
direction, with the author doing the on-device testing. Read the code before
trusting it with a device you care about.
Build from source: see BUILDING.md.