# Android app guide The app has three tabs along the bottom, **Home**, **Containers** and **Panel**, and a gear icon in the top right for **Settings**. This page goes through them in that order. If you have not installed a container yet, start with the [installation guide](Installation-Android.md). ## Home

The state of the backend and the device at a glance. Pull down to refresh. - **Status card**: **Backend: Installed** with the backend version and a **DAEMON** or **DIRECT** pill for how the backend runs. **Backend: Update available** appears after an app update: tap the card to install the new backend, and running containers keep running. **Backend: Action required** means the backend or its boot module is missing: tap the card to install it. - **Containers** and **Running**: how many containers are installed and how many run. Tap one to open that tab. - **Kernel**, **SELinux Status**, **Android Version**, **Architecture** and **Supported ABIs**: the device's details. - **New to Droidspaces?**: opens the installation guide. ## Containers

Every installed container, with the buttons to run it. A card shows the name, **RUNNING** or **STOPPED**, the PID while it runs, the hostname, network mode, image size and resource limits, and the options that are turned on. - **Start**, **Stop** and **Restart**: run the operation and open a log window with the backend's output live. Close it once the operation finishes. **Restart** shows only while the container runs. - **View logs**, the page icon next to the state: opens the output of the last operation again. - **Tap a running card**: opens its [details](#container-details). Tap a stopped card, or press and hold any card, for its menu. - **+**: adds a container, from the **Repository** or **Install from file**. The menu. Migrate, Resize, Export and Uninstall stop a running container first. - **Edit Container Configuration**: the same form as at install time. Every setting on it is explained in [container settings](Features.md). Changes apply at the next start. - **Migrate to a sparse image**: converts a directory container to an ext4 image file. - **Resize the sparse image**: changes the ceiling of an image container. It replaces Migrate on image containers. - **Export container as tarball**: packs the rootfs and its settings into a `.tar.gz` you can install on another phone. A container with environment variables gets a dialog first: leave **Include environment variables** off for archives you share, since they often hold secrets. - **Uninstall Container**: deletes the container and all its data. You type the name to confirm. See [uninstallation](Uninstallation.md) for what stays behind. ### Repository

A list of distributions built for Droidspaces, filtered to your device's architecture. Search by name. **Download** fetches the tarball into your Downloads folder and shows progress on the card; a notification tells you when it is done, and the button turns into **Install**. A download that fails gets a **Retry** button, and a tarball downloaded earlier is recognised the next time you open the sheet. **Manage Repositories** in the sheet's header lets you subscribe to other feeds that publish a `rootfs.json`. The Linux Containers mirror is the one worth adding, for distributions and versions the official repository does not build: ``` https://raw.githubusercontent.com/Droidspaces/linuxcontainers-mirror/refs/heads/main/rootfs.json ``` ### Install from file Picks a `.tar.xz` or `.tar.gz` rootfs archive from the phone's storage. A container exported from Droidspaces carries its settings and they are filled into the wizard, with a warning page first so you can review them. Any other rootfs tarball works too, as long as it has an init system. ### The setup wizard

Name and hostname, then the configuration form, then storage, then a summary. The [installation guide](Installation-Android.md#the-setup-wizard) walks through it, and [container settings](Features.md) explains every toggle. ## Panel

Live stats for the containers that are running: distribution, uptime, IP address, CPU and RAM. With a memory or CPU limit set, usage is shown against the limit. - **Terminal**: opens a shell in the container. It reads **Restore** when sessions are already open. - **Anland** or **Termux:X11**: shows only for a container booted with that display. Tap it to open the container's desktop in the Anland app, or to open Termux:X11. If the app is not installed, a message says so. - **Tap anywhere else on the card**: opens the container's details. ### Container details The cards below, top to bottom. - **Container Info**: distribution, hostname, uptime, IP address, and CPU and RAM while it runs. - **Disk Usage**: image containers only. Space used out of the image's size. - **Available Users**: the user accounts in the rootfs. Pick one and tap **Copy login** to get a `droidspaces enter` command for that user on the clipboard, for use in Termux or any other terminal app. - **Terminal**: **Open** for a shell. When sessions are already running, the card says so and **Restore** brings them back. - **Anland** and **Termux:X11**: show only for a container booted with that display. **Launch** opens it, the same as the Panel button. - **Systemd**, **OpenWrt**, **OpenRC** or **runit**: the init system found in the container. Tap **Manage** to control its services. **Not Available** means none of the four was found. ### Managing services

The services in the container, filterable and searchable. Systemd has the filters **Running**, **Enabled**, **Disabled**, **Abnormal**, **Static**, **Masked** and **All**; swipe to move between them. The other init systems have fewer. - **Start** or **Stop**: starts or stops the service. A masked systemd unit shows **Unmask** instead. - **Enable** or **Disable**: whether it starts with the container. Static systemd units have no such button. - **Menu**: the actions below, which depend on the init system. Systemd's menu: - **Restart service**: while it runs. - **Mask service**: stops it from being started at all, until you unmask it. - **Inspect unit**: the unit's properties, dependencies and `systemctl status` output. - **View logs**: the unit's journal. Pick how many lines. - **Edit override**: writes a drop-in for the unit, so you can change a service's settings from the phone without a text editor in the container. Restart the unit to apply it. On **OpenRC** the menu has **Restart service** while it runs. **OpenWrt** has **Restart service** and **Reload service**. **runit** has **Restart service** while it runs and **Toggle run-at-boot**, which adds or removes the service's `down` file. ## Terminal

A shell in the container, in tabs. - **Tabs**: labelled `user@hostname`. Opening the terminal, or the **+** tab for another session, asks which user to enter as, unless root is the only one. - **Notification**: sessions run in a foreground service, so they survive leaving the screen, switching apps and the screen turning off. **EXIT** ends every session, and tapping **Wake lock: OFF** turns it **ON**, which keeps the CPU running while the screen is off. - **Pinch**: zooms the text of that session. - **Tap**: opens the keyboard. With **Open Keyboard On Tap** turned off, a tap only moves the cursor and a keyboard button opens and closes the keyboard. **Settings**, **Terminal** holds the terminal's own settings: - **Font family**: the font, including a custom one you import. - **Font size**: the starting text size for new sessions. - **Terminal Dark Mode**: dark colours for the terminal page only. - **Confirm Before Closing**: asks before a tab closes. - **Open Keyboard On Tap**: turn it off when you work in an editor. - **Keyboard Button On The Left**: moves the keyboard button to the bottom left. Shows only while **Open Keyboard On Tap** is off. ## Settings

**Backend** - **Reinstall Backend**: writes the binaries and the boot module again. Your containers and their settings are kept. - **Daemon Mode**: on by default. The backend runs as a system daemon started at boot, outside the root shell, which gets past the seccomp filter Magisk and APatch put on root shells. Leave it on; changing it needs a reboot. - **Integrate Droidspaces to the system path**: puts `droidspaces` on the `PATH` of every root shell through the boot module, so you can type `droidspaces` instead of `/data/local/Droidspaces/bin/droidspaces`. Needs a reboot. Read the warning on the toggle: on OverlayFS-based module systems it causes a boot loop. - **Auto Boot Priority**: the order in which containers with **Run at Boot** start, top to bottom. Drag to reorder. A gateway container goes above the containers that route through it. - **Requirements**: lists the kernel options Droidspaces needs, with **Copy** for kernel builders, and **Check Requirements** runs every probe against the running kernel. **Appearance** - **Language**: the app's language. - **Follow System Theme**, **Dark Theme** and **AMOLED Mode**: light or dark, and pure black for OLED screens. **Dark Theme** shows only when **Follow System Theme** is off. - **Apply System's Default Color Palette**: Android 12 and newer. With it off, you pick an accent colour. - **Terminal**: the terminal settings above. **Updates**: **Check for app updates** looks for a new release on GitHub when the app opens, and shows it on Home. **Debugging**: **Generate a bug report** collects logs and device information into one file to attach to an issue. **Experimental**: **Use the 64-bit backend** appears only when the OS is 32-bit on a 64-bit kernel, and switches to the 64-bit backend and 64-bit rootfs images. **About**: **About Droidspaces** shows the version, the developer, links to the source and the Telegram channel, and the contributors. ## Where the data is Everything the backend creates is under `/data/local/Droidspaces`: the binaries in `bin/`, each container's `container.config`, and its rootfs or image unless you chose another folder at install, in `Containers//`, and logs in `Logs/`. The app only reads and writes there; uninstalling the app does not touch it, and the daemon keeps running. ## If something goes wrong - **Reinstall Backend** in **Settings** is safe to try first. Your containers stay. - **View logs** on a container's card shows the output of its last start or stop. The backend's full log for it is `/data/local/Droidspaces/Logs//log`, and the daemon's is `Logs/droidspacesd.log`. - [Troubleshooting](Troubleshooting.md) goes from the error you see to the fix. --- Previous: [Linux installation](Installation-Linux.md) | Next: [Kernel configuration](Kernel-Configuration.md)