Skip to content

Introduction

What Holtdroid is, who it is for, and how a session looks from the user's side.

Holtdroid is a self-hosted web portal that launches Android devices on demand for testing APKs. It is built for teams whose builds land in a chat channel and whose apps lean on WebViews: QA engineers, web developers working on hybrid apps, support engineers reproducing a customer bug.

I’m a frontend engineer, and I build Holtdroid for my own use first. Most users of the products I’ve worked on open them inside an app’s embedded WebView or in Chrome, and a fair share of them do it on old potato phones 🥔 with cursed combinations of Android and WebView versions. Their bugs only reproduce on exactly those combinations.

I’m also very lazy, and debugging over ADB through Chrome DevTools is flaky and awkward enough to drain whatever motivation was left. So instead of fighting it I wrote a tool that starts the WebView I need and then digs into what the page actually does: the network requests on the critical loading path, how well Cloudflare caches the assets, and more.

Maybe I’m the only weirdo out there who rewrites SVG filters by hand and loses sleep over cache hit rates so that people on a bad connection get a page that loads fast and doesn’t cook their phone. Just in case I’m not, I made it public ^.^ If something should be fixed or added, I’d be glad to hear it: open an issue.

The portal’s navigation is a dock floating at the bottom of every page. From left to right: the sections (Apps, and App data, Pixel perfect, Recordings and Computers when they are enabled); a chip for each device you are running, with a status dot (green: ready, blue: starting, amber: the idle stop or the lifetime ends within 5 minutes, red: failed) and a hover card with the device, its Android version, location, the idle countdown, Open and Stop; + to launch an app; the admin pages (Inventory, Users, Usage, Audit log); search; the documentation; the theme switch; and your account menu. On smaller screens the admin pages, documentation and theme fold into a More menu, and on narrow ones the sections too.

⌘K (Ctrl+K on Windows and Linux) anywhere in the portal opens a search over your running devices (open or stop one), the apps (picking one opens its launch dialog), recordings and pages, plus actions: upload an APK, switch the theme, open the documentation. The documentation link carries the page you were on in its address (#returnUrl=), so the documentation’s own dock shows Open the portal, which brings you back there, for as long as that tab stays open.

  1. Open the portal. The Apps page shows one row per app (package name) found in your configured sources (a folder or bucket that CI or a Slack sync job fills, plus your own uploads): its latest version, how many builds there are, which sources they come from and how many devices run it now; tabs filter by source and / jumps to the search. Launch on a row starts the latest build; the arrow at the end opens its builds (version, build number, branch, who posted it, size, age) with a launch button and a menu (download, origin, visibility, delete) each, and the app’s name opens a page with every build’s note and changelog. Builds of one version for different processors (x86 and ARM) share a row, and a launch takes the one the chosen device runs natively. Anyone signed in can give an app a description (what it is for, how to test it): it shows above the builds and, shortened, in the app’s row. Pin the apps you test most: they come first in the list for everyone. Next to the list, the Devices card shows each provider’s slots as a bar of ticks (running, starting, about to stop, free) and the running sessions, yours first; Recent recordings lists the newest recordings when recording is on.

  2. Press Launch. The launch dialog puts the device together on the left: where it runs (a virtual device or a physical phone, each with how many are free, the virtual one preselected when the build runs on it), the Android version (versions below the app’s minSdk are greyed out), the screen (favourites first, All devices opens a searchable picker), the WebView, the VPN location and app data. The right column previews the chosen phone with its size and cutout, sums up the choices and holds Record from start and Launch. A physical provider lists its phones instead, Any available by default. A fresh Android device boots (about a minute) while a progress card shows each real start stage and the time since launch. The ⚡ button next to Launch skips the dialog and launches with the provider and location you used last time (or the defaults). When every device is busy, or the one you picked, the launch waits in line and starts as soon as one frees up.

  3. The APK is installed as-is and started with WebView debugging enabled at runtime.

  4. The session page has a header, the Device panel on the left, the device’s screen in the middle and the tools on the right: Chrome DevTools with a picker for the inspected target (any WebView page, iframe or worker in any process), Logcat, DNS, Routes, Files, Terminal, Deep link and Pixel perfect, with WebSockets and Cache under More. The header shows the app and its build (click the name to switch to another build) with the device, Android, WebView and VPN location under it; the time left, Extend and Stop sit on its right. By default the screen’s side follows the screen: it grows or shrinks until the screen fills its height or the side reaches 70% of the page. A landscape screen splits the page top and bottom instead, the screen above the tools. Dragging the divider sizes it by hand; the button on the divider turns following back on.

    The screen sits in a frame with a toolbar beside it (under it in landscape): Back, Home, Recent apps, the notifications and quick settings, Rotate (click turns left, shift-click right), Screenshot, the keyboard mode, Volume (the volume keys, the media volume slider and a tile that mutes Android itself), Power (locks the device or turns its screen off, with Wake and unlock and the key’s mode in its panel) and Restart app. Rotate, Volume and Power open their panel on hover, on a right-click, a long press or the context-menu key; a panel stays open once you click inside it, until you click elsewhere or press Esc. When the device vibrates, the page shows a notification and plays a buzz.

    The Device panel holds the device’s controls as rows in three tabs: Environment (Network, Location, Battery, Language, Time, Clipboard, Display), Media (Stream, Microphone, Camera, Recording) and App (App, Device, SSH). Each row shows a summary and its chevron opens it in place; the search button filters the rows of all tabs by name. A row whose settings differ from the defaults is marked Changed, its tab gets a dot, and the open row has a reset button.

    The Network row shows the VPN location, the external IP and the network conditions, with Wi-Fi, mobile data and airplane mode tiles, the VPN locations and a link to the network picker. On emulators with VPN locations the picker holds the emulated network conditions: slow or lossy networks and scenarios such as a subway ride, each with its description, and regions such as Bangladesh that add the round trips to CDN edges and to your servers there. The DNS tab lists every name the device looks up and rewrites names to your own addresses, with a TTL limit and saved sets of rewrites (see DNS log and rewrites), and Routes shows where every connection goes: each server’s country and network, the location it left through, and far servers or connections that aren’t reused (see Routes).

    The Stream row picks the video codec (H.264, the lightest for the server, by default; H.265 or AV1 where the browser decodes them), quality (the device’s own up to 1080p, then 720p, 480p and 360p; a sharper screen is streamed at 1080p), frame rate (45 fps by default, up to the device’s own and never above 60) and bitrate, switches the device audio (it plays in your browser by default, from your first click on the page unless the browser allows autoplay for the portal; until then the row says “Click anywhere for sound” and the Media tab gets a dot), shows the frames, bitrate and dropped frames the browser decodes right now, and switches the keyboard between text input and a virtual USB keyboard that types in any alphabet with the layout set on the device. The codec, the bitrate and a frame rate below 45 fps are remembered in the browser; quality and faster frame rates last for one session.

    The Clipboard row turns sync on or off with a click (both ways by default, or one direction) and keeps the last 10 synced texts, shown with · for spaces and ↵ for line breaks, each with buttons to copy it or save it as a text file. The Time row shows the device’s clock and is marked while the clock is shifted, not in real time or in a time zone picked by hand; it has real-time sync, shifting the clock back or forward by any amount, an exact moment entered in your own time zone, and the time zone, which follows the VPN location unless you pick another one for the session. The Battery row shows the charge (65% and on battery at start) and has battery saver, charging and the charge level with presets. The Display row has a brightness slider and adaptive brightness (for this session only; the stream itself doesn’t get darker, the device and its apps see the setting), the dark theme (light, dark or matching the portal’s theme, which a device launched in that mode already has when the app first opens), Android’s system navigation on emulators (gestures by default, or the back, home and recent apps buttons), the font size with a preview and the display size, Android’s setting that scales buttons, icons and text by changing the density (the screen picked at launch keeps its resolution); rotation is there too. The Language row picks the system language and the keyboard layouts from a grid of flags: a click on a layout adds or removes it (up to 7, remembered in your browser and guessed from your keyboard where the browser allows). When SSH is on, the SSH row says whether a computer is connected to this device and lists the ADB clients and the ports your computers publish on the device, the adb command for this device on each connected computer, or the command that connects a computer. The App row restarts and reinstalls the app and saves its data; recording has its own row (recordings).

    On devices that can fake it, the Location row follows the VPN location until you tap the map, drag the dot, paste coordinates or use the locate button on the map for your own position. Under the map, Route walks, runs or drives the device through stops you tap on the map, along roads (or in straight lines) and optionally in a loop, speeding up, slowing for turns and drifting around the chosen pace; it keeps going until you stop it, even with the tab closed. Apps see the position move but no speed or bearing.

  5. Walk away. After the idle timeout (30 minutes by default) the device is deleted and the slot frees up. The home page shows every active session, its owner and how long it has left.

  • Not a device farm for automated test runs (yet). The contracts allow it, but the first goal is interactive debugging.
  • Not a way to modify or re-sign APKs. Anything that needs repackaging is out of scope on purpose.
  • Not a Play Store environment: sessions run redroid, a rooted AOSP userdebug build without Google services.
  • Either a Docker Engine 25+ host with Docker Compose (Linux x86_64 or arm64, or Apple Silicon macOS via Lima — see Docker Compose), or a Kubernetes cluster (1.31+) with x86_64 or arm64 nodes (Pod Security level privileged and containerd 2.0+ with NRI — see Installation).
  • Host kernel with Android binderfs (CONFIG_ANDROID_BINDERFS) and optionally a Mesa GPU (/dev/dri/renderD128; hosts without one fall back to software rendering). Dedicated to sessions; each session takes about 1 GB of memory idle and a core while its screen streams.
  • Sign-in is built in (anonymous, password, oidc, header forward-auth, users with passkeys, or none for local setups).
  • For builds from Slack, S3 or GitHub: a small sync job (holtdroid-sync) copies them into a source, or upload APKs directly in the browser.