LeanCast is a DLNA/UPnP cast receiver for Android TV that takes cast requests from phone video apps and plays them in full screen with local hardware decoding, ad-free and account-free in a 5 MB APK.
- v0.3.6
- Published at
- 2d ago
- 197
- Stars
- 764
- Download
Latest release
v0.3.6Dec 4, 2026, 01:12 AMREADME
Project Overview
LeanCast is maintained by addozhang as a pure-Kotlin DLNA/UPnP receiver for Android TV, filling the role of turning a television into a standard MediaRenderer on the casting path. Tap the [TV] button in Bilibili, iQIYI, Tencent Video, Youku, Douyu, Huya, Quark and similar phone apps, and SSDP finds the device; ExoPlayer then decodes the stream in full screen using the TV's own MediaCodec. It does not own the content source or touch cloud accounts, it just plays the stream it was handed well.
| Item | Value |
|---|---|
| Platform | Android TV / TV boxes (Android 5.0 and up) |
| Protocol | UPnP AV MediaRenderer:1 with AVTransport, RenderingControl, ConnectionManager |
| Installer | LeanCast-version.apk, about 5 MB, no native libraries |
| Decoding | Media3 / ExoPlayer plus device MediaCodec |
| License | Apache-2.0 |
A 5 MB APK is enough for a TV to appear in the cast list of every mainstream video app.
Key Features
- Standard renderer: implements
MediaRenderer:1with SSDP discovery, SOAP control and GENA events - GENA events: an initial
LastChangeis pushed right after subscription, then once per state change - Hardware playback: HLS (
.m3u8), progressive MP4 and Matroska, with HTTP-FLV handled on a best-effort basis - Redirect following: HTTP-to-HTTPS and back is followed to the end
- On-screen HUD: progress bar, title, seek and speed feedback drawn over the video, in Chinese or English
- Renamable device: defaults to
LeanCast, and the UUID derives from the device identity so it survives reboots and reinstalls - Boot autostart: optional, so the box is ready as soon as it powers on
- Opt-in updates: the online update check is off by default and never polls in the background
Remote Control
| Key | Action |
|---|---|
| OK | Pause / resume |
| Left / Right | Seek back / forward on demand, hold for stepped acceleration (10 seconds to 5 minutes) |
| Down | Cycle speed 1.0x -> 1.25x -> 1.5x -> 2.0x -> 0.75x |
| Up | Show elapsed time and progress without changing playback state |
| Back | Stop and exit playback |
Live streams do not support seeking or speed changes, and every new cast resets to 1.0x.
Device Compatibility
| Tier | Devices | Notes |
|---|---|---|
| Tested | Amazon Fire TV (Fire OS 7.7, 32-bit MediaTek SoC) | The developer's main test device |
| Expected to work | Certified Android TV / Google TV, NVIDIA Shield, Amlogic and Rockchip boxes | Works out of the box |
| Experimental | Chinese Android TVs (MIUI TV, Coocaa, Hisense Android models), Tmall boxes | Requires allowing unknown sources |
| Unsupported | Samsung Tizen, LG webOS, Huawei HarmonyOS screens | No Android runtime; attach a box instead |
Codec support follows the hardware: H.264 is near-universal, HEVC and 4K need a TV from 2016 or later, and AV1 only works on newer boxes.
Install and Enable
- Download the latest
LeanCast-version.apk - Allow unknown sources on the TV or box, install, then open the app
- Put the phone and the TV on the same LAN, tap [TV] in a video app and pick LeanCast
- In settings, rename the device, switch language, and enable boot autostart if wanted
- If the TV never appears, check with a fixed box IP whether multicast is being dropped by the router
Install over ADB
adb connect 192.168.1.20:5555
adb install -r LeanCast-version.apk
adb shell am start -n app.solocraft.leancast/io.leancast.app.MainActivitySystem Requirements
| Item | Requirement |
|---|---|
| OS | Android 5.0 (minSdk 21) and up, targetSdk 28 |
| Architecture | armeabi-v7a, arm64-v8a, x86, x86_64 in a single APK |
| Memory | 63-72 MB PSS idle, about 74 MB while playing 1080p |
| Network | Same LAN as the sender, with multicast and a MulticastLock |
| Build environment | JDK 17+, Android SDK platform 34 |
Notes
- Not screen mirroring: Miracast-style system casting is out of scope; use the [TV] button inside a video app
- AP isolation blocks it: with client isolation on, or devices on different subnets, SSDP advertisements never arrive
- Live streams are limited: no seeking or speed control, playback runs at 1x only
- Formats follow the hardware: decoding goes through MediaCodec, so an old TV simply cannot play HEVC
- No background egress by default: outside the LAN, the only outbound request is a manually triggered update check