Your TV, minus the ads. Debloat any Android TV or Google TV over Wi-Fi and swap the ad-filled home screen for a clean Apple TV-style launcher. No root, fully reversible.

adbandroid-tvclaude-codedebloatlauncherxiaomiad-freeandroid-tv-launcherbloatware-removalgoogle-tvhisensehome-screen
Crescimento de estrelas
Estrelas
2.4k
Forks
288
Crescimento semanal
—
Issues
12
2.4k
1 de out.7 de out.13 de out.19 de out.
ArtefatosMaven
README

tv-vibehack

Your TV, minus the ads.

Strip the bloatware from any Android TV or Google TV over Wi-Fi, and replace the ad-filled home screen with a clean launcher that looks like an Apple TV.

No root, no cable, nothing uninstalled, and a one-line restore if you change your mind.

Before: stock Google TV home with a sponsored ad. After: the tv-vibehack launcher

It started as an afternoon fixing my parents' Mi TV, which showed them an advert before they could reach Netflix. The whole thing was done with Claude Code talking to the real TV, and the prompt that did it is in this repo so you can do the same with yours. The replies to the tweet below are where most of the TV lists in this repo came from.

The tweet: Vibe coded my parents' TV this afternoon. Before and after screenshots.


Table of contents


How it works

Android TVs have the same debug bridge as Android phones. Once you switch on USB debugging in the TV's developer options, the TV listens on your Wi-Fi and asks you once to allow your computer. After that, everything is standard Android tooling:

  1. Back up the list of installed packages and settings.
  2. Disable the manufacturer's telemetry, ad services, content rows and preloaded junk with pm disable-user. Nothing is uninstalled, so a restore script can undo every step.
  3. Install a small native launcher and make it the default home screen.

The bloat differs by brand, which is why the prompt asks your coding assistant to discover it on your TV and ask you before touching anything you might use.

Quick start

You need a computer on the same Wi-Fi as the TV and a coding assistant with shell access (Claude Code, or anything similar).

1. On the TV Settings → Device Preferences → About → press OK on Build seven times → go back → Developer options → turn on USB debugging. Some TVs also show a Network or ADB debugging toggle; turn it on too. Keep the TV switched on.

2. On your computer Open your assistant, paste the prompt from PROMPT.md, and fill in your TV model.

3. Follow along Accept the "Allow USB debugging?" prompt when it appears on the TV, then answer the checklist questions: which streaming apps you use, which four go in the dock, whether to keep the voice assistant, Chromecast and firmware updates.

That's it. The assistant backs up, debloats, builds and installs the launcher, and checks every step with screenshots pulled from the TV. On a 1 GB Mi TV the whole thing took one afternoon the first time; with this repo as context, people report about fifteen minutes.

What you get

A home screen that is yours again:

  • Pitch-black background and a dock of your four favourite apps at the bottom, in a lighter rounded band, exactly where Apple TV puts it.
  • A top shelf showing the focused app's name in large type, with an ambient glow in a colour taken from the app's own artwork.
  • The rest of your apps in a grid that slides up when you press Down.
  • One floating glass highlight that springs from tile to tile instead of each tile drawing its own border. The focused tile lifts slightly and shows its name.
  • Three frosted buttons: Inputs (a dropdown of HDMI ports, AV and Live TV), Wi-Fi (showing the network you're on) and Settings.
  • A greeting, a large thin clock and the date, set in Outfit.
  • A matching Clock screensaver, optional, that drifts around the screen so nothing burns in.
  • The remote's Input button can keep working. On Google TV the stock launcher handled it; an optional accessibility service maps it (KEYCODE_TV) to the system input switcher in any app. Install with INPUT_KEY_SERVICE=1 to turn it on.

And a TV that stops working against you: no sponsored rows, no "Discover" nags, no analytics phoning home, no apps you never asked for.

Supported TVs

Anything running Android TV or Google TV: Xiaomi and Redmi, TCL, Hisense, Sony, OnePlus, Realme, Nvidia Shield and most others.

Not supported: Samsung (Tizen) and LG (webOS), which run different systems. Amazon Fire TV (Fire OS) takes the debloat half only: Fire OS won't let a third-party launcher take over Home, so the Fire TV lists below are about removing Amazon's ads and telemetry, not the home screen.

Lists that people have tested and contributed live in examples/:

TV OS
BenQ E55-735 (Changhong AI PONT, DVB96BQ) Google TV 14
CHiQ AI PONT (DVB93CQ) Android TV 11
Hisense SmartTV 4K FFM (huangshan, MediaTek) Android TV 10
Insignia 55" F30 4K Fire TV (NS-55F301NA25, AFTDCT31, duckie) Fire OS 7 / Android 9
NVIDIA SHIELD TV Pro 2019 (P2897, mdarcy) Android TV 11
OnePlus TV (D00, Dubai) Google TV 14
RCA AI PONT SA (Changhong, redwood, ISDB92RC) Android 14
SANYO ATV R2 (SCBC, Realtek RTD285O) Android TV 9
Sony BRAVIA 4K UR2 (BRAVIA_UR2_4K, MediaTek) Android TV 10
Sony BRAVIA XBR-65X900E (2017, BRAVIA_ATV2) Android TV 9
TCL 55" 4K Google TV, 2023 (G10, G10_4K_US_NF) Google TV 12
TCL 65C725 (Smart TV Pro, BeyondTV4) Android TV 11
TCL BeyondTV (India) Android TV 9
TCL QM6K Pro, 2025 (G08, MediaTek tcl9618) Google TV 14
Xiaomi Mi Box S (MIBOX4, oneday), streaming box Android TV 9
Xiaomi Mi TV (MiTV-MOOQ0, croods) Android TV 10
Xiaomi Mi TV 4A (MiTV-MOOQ1) Android TV 10
Xiaomi MiTV-AESP0 stick (aquaman, 1 GB) Android TV 9
Xiaomi MiTV-AXSO0 (dangal) Android TV 9
Xiaomi MiTV-MOOR2 (venom, MediaTek) Google TV 11
Xiaomi TV A Pro 75" 2026 (MiTV-MZTU0, river, MediaTek) Google TV 14

Your TV not here? The prompt works regardless, it discovers the bloat itself. If you add your list afterwards, the next person with your model skips that step. See Contributing.

Doing it by hand

Everything the assistant does, you can run yourself. The tools need Python 3 and nothing else.

python3 -m venv tools/venv && tools/venv/bin/pip install -r tools/requirements.txt
export TV_HOST=192.168.1.50                                   # your TV's IP address

tools/venv/bin/python -I tools/tv.py --probe                 # model, Android version, firmware
tools/venv/bin/python -I tools/tv.py 'pm list packages'      # run one shell command on the TV
printf 'cmd1\ncmd2\n' | tools/venv/bin/python -I tools/tv.py --batch   # several, one connection

tools/disable.sh examples/xiaomi-mi-tv-4a/debloat.txt        # apply a debloat list
tools/restore.sh examples/xiaomi-mi-tv-4a/debloat.txt        # undo it and restore the stock launcher
Tool What it does
tools/tv.py A pure-Python ADB client: shell, batch, push, pull. Works where the stock adb binary is blocked.
tools/b64push.py Uploads larger files such as APKs as base64 chunks and verifies the checksum.
tools/disable.sh / tools/restore.sh Apply or undo a debloat list. PowerShell versions sit next to them.

Windows

The PowerShell scripts work without WSL or Git Bash. With Android Studio installed nothing else is needed: the install script uses Android Studio's bundled JDK and the default SDK location.

python -m venv tools\venv; tools\venv\Scripts\python.exe -m pip install -r tools\requirements.txt
powershell -ExecutionPolicy Bypass -File launcher\build-and-install.ps1 -TvHost 192.168.1.50
powershell -ExecutionPolicy Bypass -File tools\disable.ps1 -TvHost 192.168.1.50 examples\xiaomi-mi-tv-4a\debloat.txt
powershell -ExecutionPolicy Bypass -File tools\restore.ps1 -TvHost 192.168.1.50 examples\xiaomi-mi-tv-4a\debloat.txt

The install script stops before touching the stock launcher if the install or the home-screen switch fails. Git Bash also works; the .sh scripts detect a Windows venv and disable MSYS path rewriting themselves.

The launcher

A small native Android TV app (com.gathin.tvhome, about 250 KB installed), written in plain Java with AndroidX RecyclerView and nothing heavier. It is built for sets with 1 GB of RAM: no blur, no video, no network, no background services.

Configure it in launcher/app/src/main/res/values/config.xml: the dock order, apps to hide, your TV's Live TV package, the number of columns, and how many grid rows stay visible under the dock (rows_below_dock). The Inputs button hides itself on sticks and boxes that have no HDMI or tuner.

Language follows the TV: English, German, Spanish, Catalan and Simplified Chinese so far. If your TV doesn't offer yours system-wide, Android 13 and later can set it for the launcher alone, e.g. Catalan: tools/tv.py 'cmd locale set-app-locales com.gathin.tvhome --locales ca'.

Build and install with one command:

TV_HOST=192.168.1.50 launcher/build-and-install.sh

It needs JDK 17 and the Android SDK (platform 34, build-tools 34.0.0). On macOS:

brew install openjdk@17 android-commandlinetools
sdkmanager "platforms;android-34" "build-tools;34.0.0"

Without Homebrew, the script also finds a JDK 17 known to /usr/libexec/java_home and an SDK in ~/Library/Android/sdk, Android Studio's default. The script installs a shrunk release build (about 250 KB instead of 1.6 MB, signed with the debug key so it installs over an older build) and asks the TV to precompile it, so the first launch doesn't wait for the JIT.

Navigation is deliberate: Up and Down move exactly one row, Up from the dock goes to the top buttons, the ends of the button row don't fall through to tiles, and the last focused app is remembered when you come back, even after the app list changes.

Optional: the Clock screensaver

A large thin clock and the date over an ambient glow, in the launcher's style. Every minute the clock drifts to a new spot and the glow shifts colour. The system runs it only while the TV is idle. Turn it on over ADB, or pick "Clock" in the TV's screensaver settings:

tools/venv/bin/python -I tools/tv.py 'settings put secure screensaver_components com.gathin.tvhome/.ClockDream; settings put secure screensaver_enabled 1'

It starts after the TV's "screen off" idle time (settings get system screen_off_timeout).

Changing the default home from the TV

Optional: set show_home_settings_shortcut to true in config.xml and a Default home tile appears at the end of the grid, opening Android's own home-screen picker so you can switch launchers from the sofa. Most Android TV firmware has no such page, and then the tile stays hidden. The stock launcher has to be enabled before it can be picked, see the restore instructions.

Troubleshooting

Things that bit us or contributors, so they don't bite you.

Connecting

  • macOS: adb connect says "No route to host" although the port is open. Recent macOS treats the Google-signed adb as its own app under Local Network privacy and silently blocks it. tools/tv.py avoids the binary entirely.
  • No "wireless debugging" toggle on some TVs, Xiaomi among them. USB debugging alone opens network ADB on port 5555.
  • USB devices go dead while USB debugging is on, seen on the Xiaomi Mi Box S: its firmware switches the USB port to ADB device mode, which cuts the power to a USB speaker or drive. Switch USB debugging off when you're done; the launcher doesn't need it.
  • Windows PowerShell 5.1 adds a byte-order mark to text piped into a program, which turned the first batch command into gibberish. tv.py now strips it, and the .ps1 scripts pipe clean UTF-8.
  • Git Bash rewrites paths like /data/local/tmp into Windows paths. The scripts set MSYS_NO_PATHCONV=1 for you. Set JAVA_HOME and ANDROID_HOME before building there.

Working on the TV

  • Chained pm commands (pm disable a; pm disable b) may silently stop after the first. Run one per shell call; --batch does exactly that.
  • Large pushes hang through the Python client. Use tools/b64push.py for APKs.
  • Screenshots come out empty while Live TV or an HDMI input is on screen, seen on TCL. Press Home before screencap.
  • Disable the stock launcher only after the new one is installed, or the Home button lands on a factory test app.
  • The new launcher still doesn't own Home after the stock one is disabled, seen on Google TV (Xiaomi MiTV-MOOR2). Another system app answers HOME: com.google.android.tungsten.setupwraith, with .MainActivity at intent-filter priority 4 and .RecoveryActivity at priority 1. You cannot outrank it, and the obvious workarounds don't help: Android ignores android:priority on HOME filters for apps that aren't on the system image, cmd package set-home-activity prints Success without changing anything (not even after a reboot), and pm disable-user on one of setupwraith's components is refused with a SecurityException. Disabling the whole com.google.android.tungsten.setupwraith package is what frees the slot. It is the first-run setup wizard, so everyday use is unaffected, but re-enable it before a factory reset - list it in your debloat.txt and tools/restore.sh does that for you.
  • The TV drops off Wi-Fi every minute right after the install, seen on Google TV 14 (Xiaomi MiTV-MZTU0): the same setupwraith .RecoveryActivity took Home and system_server crash-looped on it. The install script now starts the new launcher before disabling the stock one, sets the home preference last (Android drops it whenever the set of HOME apps changes), then checks where Home resolves and re-enables the stock launcher if it is not the new one. Disable setupwraith as above. If you're already in the loop: tools/tv.py 'pm enable --user 0 com.google.android.apps.tv.launcherx'.
  • No on-screen keyboard after switching launchers, seen on Xiaomi: the default input method pointed at a Baidu keyboard that isn't installed. Fix: tools/tv.py 'ime set com.google.android.inputmethod.latin/com.android.inputmethod.latin.LatinIME'
  • Third-party launchers often charge for basics like a custom wallpaper. That's why this repo has its own.
  • Wrong time zone, clock off by 30 or 60 minutes, seen on Xiaomi in Iran: the TV picked a neighbouring zone, and older firmware ships time zone data from before Iran dropped daylight saving in 2022 (on Android 10 and newer, check with tools/tv.py 'cat /apex/com.android.tzdata/etc/tz/tz_version'). Set the zone yourself: tools/tv.py 'settings put global auto_time_zone 0; cmd alarm set-timezone Asia/Tehran'. If the clock then jumps an hour ahead in spring, a fixed offset keeps it right: tools/tv.py 'cmd alarm set-timezone GMT+03:30'. The same applies to any country whose rules changed after the firmware was built.

Questions people ask

Is this safe? Can it brick the TV? No. Nothing is flashed, rooted or deleted. Packages are disabled for the user profile, which lives in the data partition, not in the system image. The firmware is untouched. If something goes wrong, tools/restore.sh puts everything back, and even without the tools you can re-enable apps from the TV's own settings.

What about firmware updates? Most lists disable the manufacturer's update service, so updates only arrive when you re-enable it on purpose. If an update does land, the worst case is that a package comes back enabled and you re-run the script.

Won't the apps break as their APIs change? The streaming apps still update through the Play Store, which is left alone. The launcher doesn't talk to them; it lists what's installed and launches it, using Android launcher intents that have been stable for over a decade.

How did it get access? Isn't that a security hole? Through the Android Debug Bridge, with one explicit "allow this computer" tap on the TV, the same as developing an Android app. The TV only trusts the key you approved. You can switch USB debugging off again afterwards and the launcher keeps working.

Can I just download the launcher APK? Build it yourself with the one-line script above; it takes about a minute and you control what goes on your TV. We don't publish prebuilt binaries.

Contributing

The most useful contribution is your TV's debloat list, so the next person with that model doesn't have to rediscover it. Launcher improvements and sharper prompt wording are welcome too. See CONTRIBUTING.md for the format and the testing we ask for.

Licence

MIT, see LICENSE. The Outfit typeface is under the SIL Open Font License, see launcher/FONT-LICENSE-OFL.txt.