android-bridge lets a Droidspaces
container reach the phone it runs on. Root inside the container gets a shell on Android,
the same one adb shell gives you, with no cable and no ADB.
On a homelab phone nobody touches, that is how a container reboots the phone, runs pm,
cmd or dumpsys, or manages Droidspaces itself. reboot inside a container only
reboots the container.
- adb shell, from inside the container.
android-bridgeopens an interactive shell on the phone,android-bridge rebootruns one command. Pipes, terminals and exit codes pass through. - Files both ways.
android-bridge pushandpullcopy a file with a progress bar, likeadb pushandadb pull. - Root when you allow it. The shell is never root. Run
suin it, and your root manager decides, the same as over ADB. - Only root gets in. A normal user in the container is refused, and so is root inside a user namespace, such as rootless podman.
- Ready at boot. The module starts the bridge before Droidspaces boots any container, so a container that starts at boot can use it straight away.
- One small binary. The same static binary is the bridge on the phone and the client in the container, for arm64, arm, x86_64, x86 and riscv64.
- A rooted phone with KernelSU, Magisk or APatch.
- Droidspaces and a container that should reach the phone.
- For
suinside the bridge shell, a root manager that grants su to Shell.
-
Flash
android-bridge-module-v*.zipfrom the latest release in your root manager and reboot. -
In Droidspaces, give the container a read-only bind mount from
/dev/android-bridgeto/run/android-bridge, then restart it. The installation guide shows where that is in the app. -
Copy the client into the container, see copy the client.
-
Inside the container, as root:
android-bridge # a shell on the phone, like adb shell android-bridge reboot # reboot the phone android-bridge dumpsys battery
Everything else the client does is in usage.
Warning
android-bridge gives root in a container a shell on the phone.
Every container you give the bind mount to can open one, so do not give it to a container that runs code you do not trust as root.
If your root manager grants su to Shell, the bridge shell is one su away from root
on the phone.
| Page | What it covers |
|---|---|
| Installation | The module, the bind mount in Droidspaces, the client, building from source. |
| Usage | Every option, quoting, exit codes and the log. |
| How it works | Who can connect, the shell you get, and what was tested. |
| Troubleshooting | Each error message, what it means and the fix. |
GNU General Public License v3.0. Copyright (C) 2026 ravindu644.