Menu

1 / 4

I Built a Universal Remote for My Smart TV (LG webOS, Android TV, and the Generic Boxes Too)

DEV Community: kotlin·Duvan Jamid Vargas·12 days ago
#k1emlhSf
#devtokotlin#devto#dev#remote#android
Long article (1102 words) — no AI summary yet.
Reading 0:00
15s threshold

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…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.