CleanYourTV lets a coding assistant debloat Android TV and Google TV
CleanYourTV (cleanyour.tv) is a project page for a tool that debloats Android TV and Google TV sets and swaps the stock launcher for a clean, Apple TV style home screen. Its pitch: "No root. Nothing uninstalled. One command undoes it." The page is the project's own, and the figures on it are its own too.
The method is a prompt rather than an app. The user switches on debugging in the TV's Developer options, then pastes the prompt (PROMPT.md in the GitHub repo, Gathin23/cleanyourtv) into Claude Code or another coding assistant with shell access, running on a computer on the same Wi-Fi as the TV. The page sums it up in three steps: on the TV, switch on Wi-Fi debugging; on the computer, paste the prompt and let the assistant find the TV on the network; then follow along, approve on the TV and pick a theme. The user puts the TV model on the line that asks for it. If the user has cloned the repo, the assistant can reuse the tools/ and launcher/ folders and only needs to edit launcher/.../values/config.xml.
The prompt works on Android TV and Google TV sets, with Xiaomi, TCL, Hisense, Sony, OnePlus, Realme and Nvidia Shield named, "and most others". It will not work on Samsung Tizen, LG webOS or Fire TV. For Samsung, LG, Roku and other non-Android TVs the page points to cleanyour.tv/not-android, which turns off tracking using the remote.
Before starting, the user opens Settings, Device Preferences, About, presses OK on "Build" 7 times, then goes to Developer options and turns on USB debugging (and Network/ADB debugging if the TV shows it). The assistant connects over ADB on port 5555. If the TV is in another home, the user gives a Tailscale address instead. The prompt covers fallbacks: the Python adb-shell package when macOS Local Network privacy blocks stock adb, a relay script (tools/relay.py) when a sandbox blocks the local network, and Wireless debugging pairing when port 5555 stays closed, as on many Google TV sets.
The prompt then lays down the rules of the job. Before changing anything the assistant must save the package list, the disabled-package list, getprop output and all settings to a backup folder and write a restore script that re-enables everything it disables. It sorts installed packages into manufacturer telemetry, manufacturer content and ad services, unneeded background services, preloaded apps and streaming apps. It disables the first categories with pm disable-user --user 0 and never uninstalls system packages. It disables in small batches with screenshots in between, one pm command per shell call. Before touching streaming apps, the voice assistant, Chromecast, Miracast or the update service, it asks the user which they use. It never disables what the TV needs, such as HDMI and tuner input services, the source menu, remote and Bluetooth services, the keyboard, Google Play Store and Play Services. After the last batch it waits about 15 seconds before rebooting, then reboots once and compares pm list packages -d with what it disabled, because some firmware re-enables packages at boot (TCL Android 9 does this for its user center).
An optional extra is ad-blocking Private DNS (Android 9 and newer), with the warning that it does not block YouTube ads and a question first about whether the user's router already filters by domain. When the job is done, the assistant is told to close network ADB, switch off Wireless debugging, Network/ADB debugging and (unless the user wants it kept) USB debugging, revoke the authorisations, reboot and confirm with tools/adb-closed.py that port 5555 refuses connections. The launcher section of the prompt begins with a check that the TV accepts APKs, since some China-market sets reject every sideload with INSTALL_FAILED_VERIFICATION_FAILURE; the text available here cuts off in that section.
Under "Live from GitHub" and the heading "Six weeks on air, by the numbers", the page shows 63,000+ GitHub stars, 8,300+ forks, 537 TV models tested from 147 brands, and 595 press articles in 58 countries.
Key facts
- CleanYourTV is driven by a prompt (PROMPT.md in the GitHub repo) pasted into Claude Code or another coding assistant with shell access, which finds the TV on the same Wi-Fi and works over ADB on port 5555.
- The page promises no root, nothing uninstalled and one command to undo it; system packages are disabled with pm disable-user, never removed, after a backup and a generated restore script.
- It works on Android TV and Google TV sets (Xiaomi, TCL, Hisense, Sony, OnePlus, Realme, Nvidia Shield and others), not on Samsung Tizen, LG webOS or Fire TV.
- The page's own counters read 63,000+ GitHub stars, 8,300+ forks, 537 TV models from 147 brands tested, and 595 press articles in 58 countries after six weeks.
- Known failures are named in the prompt: a Haier set that restarted in a loop with com.cltv.mal disabled (#1578) and an original Mi TV Stick that never booted again after a list took the first six core packages (#884).
Why it matters
Smart TVs ship with manufacturer telemetry, recommendation rows and ad services, and removing them normally takes a technical user and a lot of package-name guesswork. CleanYourTV turns that into a prompt that a coding assistant executes step by step on the real device, with screenshots as verification. The page's headline numbers, 63,000+ GitHub stars and 8,300+ forks, show how much attention the approach has drawn, though they are the page's own figures. It is also a concrete example of an AI coding assistant being given hands-on control of consumer hardware through a shell.
Who it affects
Owners of Android TV and Google TV sets and boxes, including Xiaomi, TCL, Hisense, Sony, OnePlus, Realme and Nvidia Shield, who are comfortable running a coding assistant on a computer on the same network. Owners of Samsung Tizen, LG webOS, Roku or Fire TV devices are out of scope for the main prompt; for Samsung, LG, Roku and other non-Android TVs the page offers a separate guide at cleanyour.tv/not-android that turns off tracking with the remote.
How to use it
On the TV, go to Settings, Device Preferences, About and press OK on "Build" 7 times, then open Developer options and turn on USB debugging (and Network/ADB debugging if shown). Keep the TV on. On a computer on the same Wi-Fi, paste the prompt from PROMPT.md into Claude Code or another coding assistant with shell access, and fill in your TV model. Accept the "Allow USB debugging?" prompt on the TV when it appears, answer the assistant's questions about USB devices, streaming apps and DNS, and pick a theme. Plan to finish in one sitting, and when the assistant is done, check that network ADB is closed. The page gives no price for the tool.
How solid is it
The material is the project's own page, and its figures (stars, forks, 537 models from 147 brands, 595 press articles in 58 countries) are self-reported counters. The visible text names no author, maintainer or company behind CleanYourTV, and the clone URL shows only that the repo sits under the GitHub account Gathin23. No independent test, security audit or failure rate is given. The page does not say how many packages are disabled on a typical TV or how many ads are removed. The text is cut off mid-prompt in the Launcher section, so the launcher's name, features and install steps are not covered here. The page does not say which AI model or assistant versions were tested, beyond naming Claude Code as an example.
Risks and caveats
The prompt itself documents the dangers. Disabling the TV middleware (com.cltv.mal) made a Haier set restart in a loop (#1578), and an original Mi TV Stick never booted again after a list took the first six core packages (#884); tools/disable.sh refuses such a list. On Haier/CVTE boards, opening a factory-menu package flips a flag that kills the Input key and CEC, and the shell cannot undo the damage. Some boxes cut power to the USB port while USB debugging is on, so a USB speaker, drive or Ethernet adapter on it can drop out. Network ADB on port 5555 is plaintext, and on firmware with ro.adb.secure=0 any device on the LAN can get a shell, so the assistant is told to close it when finished. Some firmware re-enables packages at every boot, and some, like Fire OS 5 on a Fire TV Box, refuse pm disable-user altogether. The optional Private DNS does not block YouTube ads and bypasses router-level filtering.
“No root. Nothing uninstalled. One command undoes it.”
— cleanyour.tv