Skip to content

Getting Started

Four steps, once. After that, it is plug in the cable and open the app.

  • GNOME 46 or newer on Wayland: Extraspace relies on mutter-specific D-Bus APIs and is not portable to X11, KDE, Sway, or other compositors. GNOME 50+ pins the virtual monitor mode directly over D-Bus; GNOME 46–49 pins it via PipeWire caps negotiation.
  • An Android 11+ tablet (API 30): Supports MediaCodec low-latency decoding; OMX decoders without KEY_LOW_LATENCY are also supported via zero-reorder SPS VUI rewriting.
  • A data-capable USB cable with USB debugging enabled on the tablet (or the same Wi-Fi / LAN after initial APK install if you enable experimental TCP fallback).
  • Any GPU: Hardware H.264 encoding and webcam decoding via VA-API (vah264enc, vah264lpenc, vah264dec from gst-plugin-va on AMD and Intel) are used automatically when available; otherwise encoding falls back to the CPU (x264enc or openh264enc) and needs roughly one core.
  1. This is the step most people miss, and why most first runs fail:

    1. Open Settings → About tablet → tap Build number seven times.
    2. Open Settings → System → Developer options → turn on USB debugging.
    3. Plug in the USB cable. Accept the Allow USB debugging? prompt, ticking Always allow from this computer.

    If you skip authorization, Extraspace will report the exact unauthorized device rather than failing cryptically.

  2. Clone the repository and run the setup script:

    终端窗口
    git clone https://github.com/zjhcx/extraspace
    cd extraspace
    ./scripts/setup.sh

    This is the only step that requires sudo. It installs the required GStreamer and GTK4 / libadwaita packages, creates a persistent /dev/video10 virtual webcam via v4l2loopback, and checks whether your tablet is visible.

  3. Download extraspace.apk from the latest release (or build it locally via cd android && ./gradlew assembleRelease), then point Extraspace at it once:

    终端窗口
    EXTRASPACE_APK=~/Downloads/extraspace.apk cargo run --release

    The host installs the app over USB automatically — you never need to sideload manually. From then on, the host checks the installed versionCode on every USB connect and upgrades it silently. You can drop the environment variable on subsequent runs:

    终端窗口
    cargo build --release
    ./target/release/extraspace
  4. Install the binary, icon, and desktop entry under ~/.local:

    终端窗口
    ./scripts/install.sh

    Extraspace will appear in your GNOME app grid and be runnable from any terminal as extraspace. No root needed — unlike setup.sh, this touches nothing system-wide. Undo it cleanly with:

    终端窗口
    ./scripts/install.sh --uninstall
  5. Open Extraspace and toggle Extra Display on. Within about a second, the tablet switches to your desktop and a new monitor appears in Settings → Displays that you can arrange like any physical screen.