Skip to content

About

Lets root inside a Droidspaces container run an adb-style shell on the Android phone. Ships as a KernelSU, Magisk or APatch module.

Topics

Resources

Stars

15 stars

Watchers

0 watching

Forks

Latest commit

 

History

32 Commits

Folders and files

Repository files navigation

Latest release License: GPL v3

android-bridge

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.

What you get

  • adb shell, from inside the container. android-bridge opens an interactive shell on the phone, android-bridge reboot runs one command. Pipes, terminals and exit codes pass through.
  • Files both ways. android-bridge push and pull copy a file with a progress bar, like adb push and adb pull.
  • Root when you allow it. The shell is never root. Run su in 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.

Requirements

  • A rooted phone with KernelSU, Magisk or APatch.
  • Droidspaces and a container that should reach the phone.
  • For su inside the bridge shell, a root manager that grants su to Shell.

Get started

  1. Flash android-bridge-module-v*.zip from the latest release in your root manager and reboot.

  2. In Droidspaces, give the container a read-only bind mount from /dev/android-bridge to /run/android-bridge, then restart it. The installation guide shows where that is in the app.

  3. Copy the client into the container, see copy the client.

  4. 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.

Security

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.

Documentation

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.

License

GNU General Public License v3.0. Copyright (C) 2026 ravindu644.

About

Lets root inside a Droidspaces container run an adb-style shell on the Android phone. Ships as a KernelSU, Magisk or APatch module.

Topics

Resources

Stars

15 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages