My TV remote died the slow death all remotes die: battery drawer held shut with tape, a D-pad that only registers "down" if you hit it twice, and a mute button that stopped muting sometime in 2024. Buying a replacement felt like admitting defeat. So I built one instead — as an Android app, with no cloud, no subscription, and no "smart hub" in the middle.
What started as "control my LG TV from my phone" turned into reverse-engineering two different remote protocols and writing a fourth fallback path for TVs that don't cooperate with either one. Here's the trip.
The TV landscape is more fragmented than you'd think
"Smart TV" is doing a lot of work hiding how different these things actually are under the hood:
LG TVs run webOS , with their own proprietary control protocol.
Certified Android TV devices (Google TV, Sony, TCL, etc.) expose a protobuf-based remote service that only Google's own apps are supposed to use.
Generic Android TV boxes — the cheap ones flashed with stock AOSP and no Google…