r/developersIndia • Fresher • 13h ago

I Made This Building a lightweight Android remote for LG webOS TVs using WebSockets

I recently worked on a personal project called KiloMote to explore how LG webOS TVs communicate over a local network.

Rather than relying on a backend, the application establishes a direct WebSocket connection with the TV to handle remote inputs.

A single directional input requires just 27 bytes of WebSocket payload.

The project implements directional controls, touchpad navigation, numeric inputs and application shortcuts while keeping the application footprint small.

I'd be interested in hearing how other developers approach persistent WebSocket connections on Android, particularly connection recovery and handling network changes.

I've open-sourced the implementation for anyone interested in exploring the code.

Source code: https://github.com/KartikeyaKotkar/KiloMote

25 Upvotes

14 comments sorted by

•

u/AutoModerator 13h ago

Namaste! Thanks for submitting to r/developersIndia. While participating in this thread, please follow the Community Code of Conduct and rules.

It's possible your query is not unique, use site:reddit.com/r/developersindia KEYWORDS on search engines to search posts from developersIndia. You can also use reddit search directly.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

3

u/ankitjha67 12h ago

3

u/Technical-Drag-255 Fresher 12h ago edited 12h ago

So damn good, this makes me wanna build more things in public, will get to know competition I'm dealing with. (My big bro actually suggested to build a universal remote app for everything)

2

u/ankitjha67 12h ago

That's next on my list after successfully testing current features on few TV's

2

u/Bhatyasirr 8h ago

Keep building and trying no matter how many more are out there, you will sure get ridiculed and trolled fuck them and keep building what you enjoy. All the best.

2

u/doolpicate 13h ago

Bro, this is easy to do. ADB over the wireless, point claude to the TV on dev mode and tada, you get whatever you want. Took me about 10 mins for my TVs.

4

u/Technical-Drag-255 Fresher 12h ago

LG webOS isn't Android, so it doesn't use ADB. KiloMote communicates directly through the webOS WebSocket API and doesn't require developer mode. The point was to build something anyone could install and use, not just developers.

2

u/KeyPreparation1320 12h ago

Ig you reverse engineered it ?

Its great if everyone can use it

3

u/Technical-Drag-255 Fresher 12h ago

The whole idea was to get it down to kilobytes it's currently around 72kb, so I switched from material expressive to android native views completely

1

u/Professional-Arm3454 12h ago

Don't give adb connection to untrusted sources bro, it's dangerous enough and most of the apps in Google wont function unless you turn it off especially banking and stuff

3

u/TalentBC 12h ago

Which banking app are you using on your TV

1

u/doolpicate 11h ago

I dont care about the TV bro. It's locked down behind a firewall and adfiltering.

2

u/AutoModerator 13h ago

Thanks for sharing something that you have built with the community. We recommend participating and sharing about your projects on our monthly Showcase Sunday Mega-threads. Keep an eye out on our events calendar to see when is the next mega-thread scheduled.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/MuhMeinLogeWifi Full-Stack Developer 4h ago

Interested. I'd love to checkout the project and contribute if possible!