עברית 📰 Blog
← Back to Blog
AI Tools

CleanYourTV: Let Your AI Coding Agent Debloat Your Android TV

Stav Adam
Founder, Masterphub
October 20, 2026

Share this article

CleanYourTV: Let Your AI Coding Agent Debloat Your Android TV
Short answer: CleanYourTV is a free, open source project that removes manufacturer bloat from Android TV and Google TV sets over Wi-Fi and replaces the home screen with a clean, minimal launcher. The interesting part: you do not run the steps yourself. You paste one prompt file into a coding agent like Claude Code, Codex or Gemini CLI, and the agent does the work. It is MIT-licensed, needs no root, uninstalls nothing, and can be undone.

What it does

Many smart TVs ship with ad rows, sponsored content, telemetry services and preloaded apps you never asked for. CleanYourTV turns those off using Android's own pm disable-user command. Nothing is deleted, so every change can be reversed. It then installs a small launcher, about 390 KB, written in plain Java and designed to run on TVs with as little as 1 GB of RAM. The launcher shows a dark home screen with a dock, an app grid, a clock and buttons for inputs, network and settings.

Why agent builders should look at it

This is a neat real-world example of an agent doing a physical task. The repo includes a PROMPT.md file. You paste it into a coding assistant that has shell access, add your TV model, and the agent:

  • finds the TV on your network,
  • backs up the current state of every package and setting,
  • discovers what bloat is installed and asks before touching anything you might use,
  • disables the bloat, builds and installs the launcher,
  • checks each step by taking screenshots from the TV.

The project estimates about fifteen minutes. If you build agents, the prompt is worth reading on its own as a model of a careful, step-by-step task with backups and confirmations built in.

What you need

  • An Android TV or Google TV set with USB debugging turned on in Developer options (and network debugging, if your TV shows that option).
  • A computer on the same Wi-Fi network.
  • A coding assistant with shell access, such as Claude Code, Codex or Gemini CLI.
  • Python 3 for the tools. Building the launcher needs JDK 17 and the Android SDK.

The project lists contributed debloat lists for over 120 TV models from about 40 brands, including TCL, Sony and Xiaomi. It has around 11,000 stars on GitHub.

Who it's for

  • Anyone tired of ads and clutter on their TV home screen.
  • Agent builders looking for a practical, well-structured example of an agent controlling a device.
  • Tech-friendly creators who want to set up a cleaner TV for family members.

What to watch out for

  • Security. Network debugging (ADB) sends commands in plain text on port 5555. When you are done, turn off USB and network debugging, revoke the authorizations and reboot. The README also warns against opening that port on a router.
  • Firmware updates. Most lists disable the update service, so you will not get system updates until you turn it back on.
  • Not every TV is supported. Samsung and LG use different systems. Fire TV only gets the debloat step, and some China-market TCL sets refuse any launcher.
  • Ad blocking is partial. An optional private DNS step can block some ad and tracker domains, but not YouTube ads.
  • Agent costs. The project is free, but the coding agent you use may need a paid plan.
  • Giving an agent shell access to a device on your network is powerful. Read the prompt, watch what it does, and keep the backup that the tools create. A restore script can replay that backup.

Source: CleanYourTV on GitHub

More AI tools and ready prompts at masterphub.io

Share this article