Skip to content

v3.4 - first tagged release

Choose a tag to compare

@MostafaAshry513 MostafaAshry513 released this 26 Nov 11:56
· 30 commits to main since this release
8490239

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 adbd and
    127.0.0.1:6000, so Termux's adb works 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
    adb and 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.1 while 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.