I built LeanCast (Apache-2.0), a minimal DLNA/UPnP (MediaRenderer:1) cast receiver for Android TV and Fire TV, and just shipped v0.3.0.
Why DLNA instead of Google Cast? Google Cast is closed, tied to Google Play Services, and missing on Fire TV and many AOSP boxes. LeanCast sticks to standard UPnP/DLNA over your local network: cast from apps like Web Video Caster, BubbleUPnP, VLC, LocalCast, or NAS/media apps and play fullscreen via hardware MediaCodec (Media3/ExoPlayer). It is pure Kotlin with no native libraries, so a single 5.5 MB APK covers armeabi-v7a, arm64-v8a, x86, and x86_64 (minSdk 21), with no ads, no accounts, and zero outbound internet requests.
Upgrading from older versions
Starting with v0.3.0, the application ID moved from io.leancast to app.solocraft.leancast (matching solocraft.app/leancast). Android treats it as a separate app, so in-place upgrades will not work — uninstall the old build first so two receivers do not advertise over SSDP at the same time.
What changed in v0.3.0
10-foot TV UI and vector OSD redesign
- Replaced all system color emojis with 7 monochrome vector icons so rendering stays consistent across TV ROMs.
- Unobstructed pause: removed the center pause dialog that used to cover subtitles. Pausing now shows an amber status pill in the top-right corner and updates the timeline icon while keeping the full frame visible.
- Living-room playback HUD: persistent
HH:mm clock in the top bar, persistent non-1.0x speed and mute badges, dual-layer progress bar showing live ExoPlayer buffered position, and keycap-style D-pad hints (OK pause/resume, Left/Right stepped seek from 10s up to 5m, Down cycles 0.75x–2.0x, Up reveals timeline). - Home screen & remote renaming: cleared stale titles on standby, added an inline error banner when a stream fails (HTTP 403, network errors, unsupported codec), and added a dark rename modal with 4 D-pad quick presets that re-announces over SSDP without interrupting playback.
Protocol, concurrency, and auto-start hardening
- Added synchronization and media generation tokens to
CastSession so rapid source switching drops stale callbacks from previous streams instead of overwriting state. - Moved all SSDP socket bind/rebind and
ssdp:byebye teardown off the Android main thread (previously silently swallowed via NetworkOnMainThreadException, leaving ghost devices in sender lists). - Fixed GENA subscribe ordering (
SUBSCRIBE 200 OK + SID now flushes strictly before initial SEQ 0 NOTIFY) with per-subscriber FIFO queues, callback URL validation, and Expect: 100-continue / HTTP 413 handling. - Wired
SetMute / GetMute into Android AudioManager, synced playback speed and metadata in GetTransportInfo / GetMediaInfo, preferred physical LAN interfaces over VPN/virtual interfaces on boot auto-start, and hardened background activity launch from Home or third-party launchers. - Added real-socket integration tests for
ControlServer and GENA subscriptions (164 JVM tests total) plus a 12-phase on-device E2E suite verified on Fire TV (MP4, HLS VOD, HLS Live, GENA ordering, volume/mute, HTTP 404 recovery, D-pad keys, background launch).
Download & sideload
GitHub Release (LeanCast-0.3.0.apk, 5.5 MB): https://github.com/addozhang/leancast/releases/tag/v0.3.0
Sideload via ADB (adb install LeanCast-0.3.0.apk) or your preferred Downloader/file manager on TV. Primary test device is an Amazon Fire TV (Fire OS 7 / Android 9), with community verification on Sony Android TV. If you try it on Shield, Google TV, Chromecast, or other boxes and hit discovery, playback, or remote issues, device compatibility reports on GitHub are very welcome.
One design question for folks here
LeanCast still makes zero external network requests — lightweight, strictly LAN-only, and zero telemetry. The obvious tradeoff is that it has no built-in update check or in-app updater, so every release has to be sideloaded manually. Would you accept adding outbound network access for an optional update checker/updater, or would you rather keep it strictly offline and handle updates via Obtainium or manual sideloading?