Phin Tech docs Rabbit Ears Manager in the store →

An Android TV box for Dad

Drafted 2026-10-19. Speculative: nothing agreed or built. The wider version of this plan (Android phones, a Swift core on Android, everything shared) is in git at eb585f0. This is the narrow one: a single Android TV box at Dad's, his profile, watching only. If we go ahead, the decisions become ADR 0005, amending ADR 0004 (which assumes an Apple TV there).

Goal #

Dad turns on the TV and gets the station: the same numbers, the guide, his group and sport channels, live IPTV that fails over between logins, and On Demand with his place kept. He changes nothing and manages nothing. We change things from our Manager and his box follows.

The box #

Proposed decisions #

  1. A thin client in plain Kotlin. Compose for TV for the screens, Media3 (ExoPlayer) for playback with live captions. No Swift on Android, no shared code: for one box, the Swift SDK for Android and moving the player's logic into a package (the wider plan) cost more than the box is worth.

  2. The thinking stays on the Mac: the control room writes Dad's box a dial sheet. The box shouldn't decode Xtream, sort sport folders or match guides. Copied into Kotlin, each would drift from the Swift. So the Manager running the event jobs (EventRefresher.isControlRoom, ADR 0002 decision 8) also writes a dial sheet per profile with a box that needs one, sent to the tower like any change:

    • the channels in dial order: number, name, logo, theme colours;
    • each channel's entries, each with its playable URLs in failover order (login and stream already resolved), and whether it needs Strong's redirect resolved first;
    • groups with their members, sport channels with their current games (from EventGames, which the Manager already sorts) and their URLs;
    • catch-up URL templates where the provider has them.

    Changing the lineup, a sport's rules or a feed rewrites the sheet, so the box follows without knowing why.

  3. The guide comes from the guide relay (docs/guide-relay.md, not built yet): one finished guide per lineup, which the box only shows. Until that exists, the dial sheet carries now and next for each channel, and the box shows a two-slot guide.

  4. It reaches the tower over Tailscale, R2 when it can't (ADR 0004 decisions 2, 5). The dial sheet and guide are sealed objects in R2 like the settings (screen/<profile>, guide/<lineup>), so with the tunnel down the box still gets changes and plays straight from the providers. It keeps the last sheet it had and never empties it (ADR 0001 decision 4).

  5. It writes almost nothing. Dad's profile isn't a manager (ADR 0001 decision 12), and the box has no channel search, no adding channels and no settings. It sends what's playing, its errors, its check-ins and his On Demand history (to the tower, or its outbox, or the updates Worker). It never sends a setting, so it needs no merge.

  6. It joins at setup, in person. We're there anyway to log in to Tailscale (ADR 0004 decision 3). From the laptop, adb opens the invite on the box (am start -d 'rabbitears://join?…'). That needs no QR code and no RemoteControl listener on Android. ADR 0004's scan stays for Apple TVs.

  7. Updates: Google TV through the Play Console's internal testing track, with Dad's Google account as a tester. Fire TV by adb install over the tailnet, with the policy letting our own devices reach tag:tv on 5555 (ADR 0004 decision 3 lets the box reach only the tower; this is the other direction).

  8. What's shared is formats, checked by test files: the dial sheet's JSON (written by Swift, read by Kotlin, one example file both test), AES-GCM test vectors for Sealed (javax.crypto opens the same bytes), the invite, the outbox's signing, the Worker's messages, the On Demand routes' answers, and a profile's history.

  9. On Demand is the tower's, over Tailscale. The catalog already lives on the tower and is served as routes (api/README.md; historical notes in history/vod-relay.md: rows, shelves, search, shows, plots, posters, extras), so the box is only a browser and a player for them, like dial sheets for live TV:

    • Browsing: the home rows (New, Top Rated), shelves, search (the Google TV keyboard and its voice input), a show's seasons and episodes, Continue Watching from his history. English-only as the Apple apps are. Posters from the tower's poster route.
    • Playing, best first: the title's Plex copy if it has one (kept titles, history/vod-fetch.md); else straight from the provider over Dad's own connection; else a job on the Mac mini (POST /v1/vod/jobs), the file coming over Tailscale at our upload speed. The tower answers which, with a playable address, from a new small route (GET /v1/vod/copies/<id>/play), so the box never builds a provider URL itself.
    • The player: ExoPlayer plays MP4, MKV and AVI over HTTP ranges by itself, so the box needs no read-ahead of its own. Media3's FFmpeg extension decodes the audio the box can't (DTS, TrueHD), and libVLC is there for files ExoPlayer refuses.
    • Subtitles: the tower's (SubtitleLookup's files), as side-loaded SRT.
    • His place: saved every few seconds and on stop, to the tower's history/<key> (ADR 0001), or his outbox when it can't be reached, so it's the same history the Apple apps keep for his profile.
    • With the tunnel down, On Demand says it needs the connection home. Live TV still plays.

Fit with the ADRs #

Stages #

0. Try first #

1. The dial sheet #

2. The app watches #

3. Guide, groups and sports #

4. At Dad's #

5. On Demand #

6. Later, if he'd use it #

Not doing #

Considered options #

Open #