Skip to content

Recordings

Sessions recorded on the server with logcat, the WebViews' network, console and WebSockets, device, network and load next to the screen, to watch, download or share.

With recordings turned on, the server records sessions while they run. A recording keeps more than the picture:

  • the screen, as the device encoded it;
  • logcat of the whole device, every line stamped with the time since the recording started;
  • the app’s WebViews, as DevTools would show them: every request with its headers, body, response and timing, console messages and uncaught exceptions with their objects, and WebSocket and event-stream messages (see Network, console and WebSockets);
  • the device: model, Android, build, the WebView version, screen size and density, language, theme, battery;
  • the network: the VPN location with its external IP and country, the emulated network conditions (throttling: added delay, bandwidth, loss, scenarios; a region with what it adds to CDN and server round trips) and which links are on;
  • the DNS log: every query with its answers and TTLs, and when rewrites, the TTL limit or the cache changed (see DNS log and rewrites);
  • the connections: every server the device talked to, through which location, with its bytes (see Routes);
  • the time: real time next to the device clock, with its time zone and how far it was set off real time;
  • the load every two seconds: device and app CPU, memory, frames and jank, traffic, the container’s CPU and throttling, temperatures;
  • whether the app was running, and when another build was installed;
  • whether the display was awake, off or locked, however it happened: the power button in the portal, the screen timing out or the app turning it off;
  • what the person at the screen did: taps, long presses and swipes, and the buttons of the phone beside the screen (Back, Home, Recents, volume, rotate, the notification shade and so on). Only what was done in the portal is seen; input from adb over SSH or from the app itself isn’t. Typed text and other keys are never recorded.

Nothing is rendered on the server: the agent copies the video the device already encodes and writes the rest as small text files next to it. The portal draws the page from that data: cards on the left for the moment, the network, the device and the load, the phone in the middle, tools on the right (findings, logcat and the WebViews’ network, console and WebSockets), and under them a timeline: one track with the markers above it and, along it, where the screen, the app and the network changed and what happened.

What gets recorded is set by recordings.mode:

  • always (the default): every session is recorded from the moment it is ready, and a recording can’t be stopped. There is no switch in the launch dialog and no Stop button.
  • auto: sessions are recorded unless you untick Record from start in the launch dialog (the choice is remembered in the browser and used by the quick launch button). A recording can be stopped from the session page.
  • manual: sessions are recorded only when you tick Record from start at launch or start it from the session page.

On the session page the header has Record (unless the mode is always). While a recording runs the button shows the elapsed time instead, and a click on it pins a marker on the recording’s timeline at that moment; Share next to it makes a link and copies it, and the … menu adds a marker, opens the recording, stops sharing or stops recording. The Recording row of the Device panel (tab Media) has the same marker click and, opened, the rest: how long it has run, its size and how much of your space is used; Keep forever, which exempts the recording from the retention period; Share, which makes a link and copies it (sharing keeps the recording too); a button to open the recording; and, unless the mode is always, to stop or start recording. Stopping and starting again makes a new recording. A recording ends when the session stops; the last few seconds are uploaded before the device goes away.

The screen is taken from what a viewer of the session already streams in H.264, so watching and recording cost one encoder on the device. When nobody watches, or the viewer picked H.265 or AV1, the agent runs a stream of its own for the recording: H.264, at most 1280 pixels on the long side, 30 fps, 2 Mbit/s. A static screen costs next to nothing either way.

The sound is taken the same way: the stream of a viewer who listens, or a capture of its own for the recording when nobody does (phones capture sound all session long anyway). It is written as a separate track, 10 seconds a segment, 40 to 60 MB an hour, as Opus, or as AAC on Android 11, whose Opus encoder doesn’t start. A device that can’t capture sound is asked once and then left alone: its recordings are silent. When the device is silent, the recording is too.

Recordings in the dock (the clapperboard) lists your recordings, newest first, one row each: a preview, the app’s icon and the recording’s name, its version, how many markers it has, Shared or Kept, when it was made, its length and size, and when retention deletes it. The preview is the screen just before the touch nearest to the fifth second of the recording, so it shows what someone was about to tap, or the screen at the fifth second when nobody touched it. A recording still in progress is marked and can be watched while it grows.

The buttons on a row keep the recording past the retention period (or let it expire again), make and copy a share link, stop sharing, rename it, delete it and open it. The Storage card beside the list shows how much of your space is used and the server’s rules: how long recordings are kept, the shortest one that is kept and whether share links are allowed. Open a file plays a .holtdroid file from your disk (see Recording file).

A recording opens on a page of its own:

  • the header: back to the list, the app’s icon, the recording’s name (with the pencil to rename it), its version, the screen it was recorded on, the VPN location, who recorded it, when, how long it is and its size. On the right: when retention deletes it (or Kept, Shared, kept), Keep, Link at 04:09, Share (see Sharing), stop sharing, and Export (see Downloads);
  • cards on the left with the state at the playhead: At 04:09 (real time, the device clock with how far it was set off, its time zone, the screen, whether the app runs, the battery), Network (the VPN exit and IP, the emulated network, the region and the traffic, with bars for the last minute), Device (the package, version, model, Android, WebView, screen and the quick settings that were on) and Load (CPU, memory, the app, frames, the container and temperatures). They change as the video plays;
  • the phone in the middle, playing the screen, with taps and swipes drawn over it. Above it a badge says what the screen showed and since when (Landscape since 03:52, Off since 01:14), next to the button that hides taps and swipes and full screen. Marker (or M) sits in the corner on your own recordings;
  • the tools on the right: Findings, Logcat, and, when the app had WebViews, Network, Console, WebSockets and Cache, plus DNS and Routes when the session had them, and Pixel perfect. The tabs that don’t fit in the column’s width go under More, the open one always stays in view. Every tab shows what had happened up to the moment you are at.

Everything beside the phone is ordinary page text, so you can select and copy it.

Findings collects what went wrong up to the playhead, newest first: requests that failed or answered 4xx or 5xx, console errors and uncaught exceptions in the WebViews, the app’s crashes and ANRs found in logcat (FATAL EXCEPTION, tombstones, ANR in), and the app closing without a crash. The last one before the playhead is highlighted. Click one to jump there; a request offers Open in Network and Copy as cURL, a console error Open in Console. The tab’s counter turns red when there are errors.

The card under the phone starts with five seconds back, play and pause, five seconds forward, the time, the speed (0.5×, 1×, 2×, 4×), the sound, and Jump to Error, Marker or Tap, each going to the next one after the playhead.

Under them, one track shows the whole recording, with the time under it:

On the track Shows
flags above it the markers, with their note (see Markers); near the end they open to the left
round icons where something changed: the screen (portrait, landscape, off, locked, no video), the app (running, closed, starting), the network (the emulated network, region or VPN exit; amber when throttled, red when offline) and DNS rewrites, TTL or a cleared cache (violet)
red and amber icons crashes (a bug) and ANRs (an hourglass)
short ticks taps and swipes (grey), errors (red) and closes and 4xx answers (amber)

The part already played is shaded, and a line marks the playhead. Hover the track to see the time under the pointer, what changed or happened there and what the screen, the app and the network were doing; click or drag to go there. With the keyboard, focus the track: the arrows move five seconds, Page Up / Page Down a tenth of the recording (at least thirty seconds), Home / End to either end, and the same readout follows the playhead.

Key Does
Space or K play or pause
← / → five seconds back / forward
M pin a marker here (your own recordings)

Taps and swipes show on the phone as green circles with a fading trail, and the navigation keys as a label at the bottom. The pointer button hides them (it only appears when something was touched); the downloaded video always has them.

When a recording has sound, a speaker button next to the speed turns it on or off. It plays at 1× only, since at other speeds it would change its pitch; at 0.5×, 2× and 4× the player is silent. The downloaded video carries the sound (AAC, or Opus where the browser has no AAC encoder) and so does the .holtdroid file.

A marker is a pin on the timeline with an icon (pin, bug, flag, star, warning or done) and a short note. Click the elapsed time in the session header (or the Recording row) while it records, or press Marker (or M) in the player: the marker lands at that moment and a small field opens over the phone to say what happened. Enter saves it, Esc leaves it unnamed. Click a pin to jump there, rename it, change its icon or delete it. Anyone with a share link sees the markers but can’t change them. The downloaded video shows each marker as a label over the phone for a few seconds, and a recording with a marker is never deleted for being too short.

The Logcat tab has the whole device’s logcat, each line with its time in the recording:

  • the level menu hides quieter lines (for example Warnings and above) and the filter box searches tags and messages;
  • click a line’s time to jump to it in the recording;
  • while you hold a selection the panel stops following the video, so the text doesn’t scroll away; click elsewhere to follow again;
  • the copy button puts the lines on screen on the clipboard.

The live tab is described in Logcat.

The agent watches the app’s WebViews over a DevTools connection of its own, whether or not anyone has DevTools open: every tab, every iframe (nested ones too) and every worker and service worker, from their very first request. It follows them for the whole session, so a socket the app opened before the recording started is still recorded from then on, with its address. The tabs next to Logcat show what it saw up to the moment you are at; when there is more than one tab, iframe or worker, a menu narrows Network and Console to one of them, and lines from iframes and workers say where they came from. Android’s WebView runs an iframe in its page’s process, even one from another site, so it is not a context of its own: its requests, console and sockets are recorded with the page’s. In a live session’s DevTools you reach it the same way, through the page: pick it in the Console’s context menu (top ▾), or find it in Elements and Sources. Counters on the tabs turn red when requests failed or the page logged errors.

In sessions with the MITM traffic proxy, requests, sockets and frames come from the proxy instead, for the whole device and not only its WebViews, under Device traffic in that menu; the WebViews’ pages and console still come from DevTools. HTTPS that wasn’t decrypted is a CONNECT line with its host and times.

  • Network lists requests as they were sent: status (pending until the response is complete at that moment), method, name, host, size and time. Filter by URL, by type (Fetch/XHR, Doc, JS and so on) or to errors only. Click a request for its headers, query string and body (Payload), the Response and its Timing, or copy it as cURL or as a fetch() call. Timing splits the request’s time into Queued, stalled, DNS, Connect (TLS included), Send, Waiting (TTFB) and Download, so you can tell a slow server from a slow network or a queue in the app. Bodies are kept up to 1 MB; images, media and fonts are recorded without theirs.
  • Console has console.* calls, uncaught exceptions with their stack and the WebView’s own messages (failed loads, violations, deprecations), with level filters and search. Click a message to open the objects it logged and its stack.
  • WebSockets lists the sockets and event streams; pick one for its frames, sent ↑ and received ↓, and click a frame for its contents. A socket that carries video or another media stream (its frames look like H.264, MP4, WebM, JPEG and the like, or it moves a steady flow of data) is marked media stream: from then on its frames are counted but not recorded.
  • Cache checks how the requests up to that moment use the WebView’s cache and a CDN in front of the server (see Cache).

JSON is shown as a tree you can open and close, also when it sits in a string field. Messages and bodies in common framings are split into their parts, each a tree: Socket.IO and Engine.IO packets (the event name as a label, 2/3 as ping and pong), SignalR and Engine.IO polling records separated by \x1e, Server-Sent Events and JSON Lines. Frames show their label and a one-line preview in the list; a binary frame is marked bin, and one that holds UTF-8 text shows that text (and parses it) rather than base64. Forms are name and value pairs, binary payloads a hex dump. Pretty and Raw switch between the parsed view and the text as it was sent, and the copy button copies it. HTML, CSS, JavaScript and XML are highlighted, and Pretty unminifies them.

Values that look like a point in time get two chips: the first (a clock with an arrow back) says how far they were from the device clock when the line was recorded, the second how far they are from it at the player’s position (“now”, “3.2 s ago”, “in 1 h”), so a timestamp that was “now” when it arrived keeps “now” in the first chip and reads “3 s ago” in the second three seconds of video later. The live WebSockets tab of a session shows the same two chips, the second against the clock right now. Times are found in Unix time in seconds, milliseconds, microseconds or nanoseconds, ISO 8601 and HTTP dates. Hover it for its distance from the device clock both now and when it was recorded, the same moment in UTC, in the device’s time zone and in yours, as Unix seconds and milliseconds (click one to copy), and, when the device clock was set off real time, how it compares with real time. When that moment lies within the recording, Go to 00:12 jumps there, back or ahead. A value without a time zone is read as UTC. Plain numbers count as seconds only when the field’s name says it is a time (expiresAt, created_at, exp, ts…) or they fall within five years of the recording.

The Cache tab runs the same checks as in a live session, on what was recorded up to the moment you are at. It reads the recorded requests’ headers and says where caching goes wrong: the request time in the URL, parameters that change on every request, the same file downloaded again, CDN misses and hits that shouldn’t be, and weak headers. See Cache.

In a finding, a request’s time seeks there and Open in Network shows it on the Network tab.

The Pixel perfect tab holds the comparisons saved with Save to recording on a session’s Pixel perfect tab while it recorded, as a stack of cards, or says there are none. Opening one seeks to its moment and shows the screenshot with the reference over it, its padding and marked areas; the opacity, the blend and the loupe work as in a session, but nothing can be moved. Save as image exports the same large picture as the session’s Export (see Pixel perfect). The owner can delete a frame. Share links and downloaded .holtdroid files carry them too.

DNS lists the names the device looked up up to that moment, with their answers, and Routes where the connections went, as in a session (see DNS log and rewrites and Routes).

Export in the player’s header offers:

Item What you get Who has it
Video (.mp4) the screen with the device’s cards beside it, rendered in your browser your own recordings, once they have ended
Recording file (.holtdroid) everything in one file, to watch again without the server your own and shared recordings
Network (.har) the WebViews’ requests with their bodies and the WebSocket messages when the app had WebViews
Logcat, colored (.log) the whole logcat with levels and colours as ANSI codes everyone
Logcat, plain text (.txt) the same lines without colour codes everyone

The HAR file opens in Chrome DevTools’ Network panel (drop it there), and in Charles, Fiddler or HAR viewers.

In both logcat files each line starts with its time in the recording, followed by the usual threadtime line. The colored one keeps the level letter in bold and colours tags and the lines of warnings and errors, so it reads well with less -R, bat, lnav or an editor with ANSI support.

Export → Video (.mp4) renders the recording into an MP4 file in your browser, frame by frame, with the Holtdroid logo on top (the text is part of the picture, so it can’t be selected). It opens with a three-second card about the app (name, version, package) and the device (model, Android, WebView, screen), when it was recorded and how long it is; then the phone plays with a narrow column beside it for what changes: the device clock and the recording time, whether the app runs, the battery, quick settings, the network and the load. Logcat and the WebViews’ tabs stay on the page, where they can be read and searched. It is 1296 pixels tall and 30 fps: 1262×1296 for a phone held upright. If the screen turned sideways in the recording or it is a tablet, the phone’s column is made wider and so is the video (up to about 2160 pixels), so the picture stays readable; the phone’s frame turns smoothly when the device does. A progress bar over the recording’s timeline shows how far it got, how fast it goes and how long is left; keep the tab open until it finishes.

The video is never held in memory. In Chrome and Edge you first pick where to save it and it is written straight into that file as it renders; cancelling removes the half-written file. Other browsers collect it in their private storage as they go and download it at the end. It needs a browser with WebCodecs (Chrome, Edge, Safari 17+, Firefox 130+) that can encode a video this size.

This saves everything in one file: the video segments, the events (device state, network, load, taps), the logcat, the WebViews’ requests, console and WebSockets, the markers, the preview and the app’s icon. It is an ordinary ZIP archive whose video and logs are stored as they are, so any archiver opens it. It points back at nothing on the server.

Open it again, on any machine and without signing in, on the Open page (Recordings → Open a file, or /open): drop the file on the page or pick it. It plays exactly like a recording on the server, with the logcat, panels, taps, markers and the video download, and nothing is uploaded. The browser reads only the pieces it plays (the segment under the playhead, the logcat around it) from your disk, so the file never sits in memory whole, however big it is. Keep, sharing and editing markers are only for recordings on the server.

In the archive: holtdroid.json (the format, the recording’s details and its markers), manifest.json, init-N.mp4 and seg-N.m4s (the video, as fragmented MP4), ainit-N.mp4 and aseg-N.m4s (the sound, as Opus or AAC in fragmented MP4), events-N.jsonl.gz (one JSON event per line), logcat-N.log.gz, devtools-N.jsonl.gz (one JSON line per request, console message, socket change or frame), thumb.jpg and icon.png. To get a plain video of a recording without a new epoch (the screen didn’t turn or restart), join an init file and its segments in order: cat init-0.mp4 seg-1.m4s seg-2.m4s … > video.mp4.

A recording is named after its app. The pencil next to the name, on a recording’s card and on its page, gives it a name of your own (up to 120 characters); leaving it empty goes back to the app’s. The name shows to anyone with the share link, in the .holtdroid file and in the video’s header.

Share in the player’s header (or the link button on a row in the list) makes a link that opens the recording without signing in, and copies it. Once shared, the button reads Copy share link and gives the same link, at the moment you are at; Stop sharing turns it off. A shared recording is kept, so the link doesn’t die after recordings.maxAge; it stays kept when you stop sharing, until you let it expire yourself. People with the link can watch and download the logcat, but the page has no video download. The shared page shows the recording’s name and who recorded it (their display name).

The link you copy carries the moment you are at, like a video link with a time: #t=46.2&tab=network&request=… opens the recording there, on the same tab (Findings, Logcat, Network, Console, WebSockets, DNS, Routes or Cache), with the request, console message, socket frame, name or finding you had open opened and scrolled to. t also takes 1m20s. Link at 00:46 copies such a link for the page you are on: for your own recording that is the portal’s page, which only signed-in people can open, and it doesn’t share anything. Someone signed in to the portal who opens a share link sees it inside the portal, with its dock and menus.

A recording that ends in under recordings.minDuration (20 seconds by default) is deleted as soon as it ends: a session stopped at once or one that failed to start leaves nothing to watch. A recording you kept or shared, or one with a marker on it, stays.

Recordings are deleted recordings.maxAge after they were made unless you Keep them. Each user has recordings.quota bytes: when a new recording doesn’t fit, the oldest recordings that aren’t kept are deleted first; when only kept ones are left, new sessions start without a recording and a running one stops. Kept recordings count against the quota too.

As a rough guide, a recording takes 0.2 to 2 GB per hour of an app in use (the viewer’s stream quality decides), less for mostly static screens; logcat and the device data add a few megabytes per hour, and the WebViews’ traffic as much as its bodies weigh (a page busy with JSON APIs can add tens of megabytes).

recordings:
enabled: true
mode: always # always: every session, can't be stopped; auto: unless the launch says no; manual: only on request
maxAge: 168h # deleted this long after recording unless kept; 0 = never
minDuration: 20s # a finished recording shorter than this is deleted unless kept or marked; 0 = keep all
quota: 50GiB # per user; 0 = no limit
share: true # allow share links
maxFileSize: 64MiB # largest file an agent may upload
sweepInterval: 10m # how often retention runs
storage: # optional: where recordings go; default is the shared storage under recordings/
type: s3
s3:
endpoint: https://s3.example.com
bucket: holtdroid
prefix: recordings
accessKey: env:S3_ACCESS_KEY
secretKey: env:S3_SECRET_KEY

Agents upload to the api’s internal listener (internalURL), so session Pods need to reach it, as they already do for APKs. Each upload URL carries a secret only that session’s agent knows.