Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.
Python adbadblockandroid-tvandroid-tv-launcherapple-tvbloatware-removalclaude-codedebloatfire-tvgoogle-tvlauncherprivacysmart-tvsony-braviatclvibe-codingxiaomi
examples: motorola-mt4310 disable-only, per review
Guillermo Asernitzky099b2bb60abc
diff --git a/examples/README.md b/examples/README.mdindex 8201cef74..c759b1a2d 100644--- a/examples/README.md+++ b/examples/README.md@@ -51,7 +51,7 @@ on that firmware, grouped and commented. These are starting points: comment out| `kalley-r10g/` | Kalley R10G (device R10G, product ACER_FFM, MOKA, Realtek RTD2875P), Latin America | Google TV 14 | Same hardware family as `prismplus-q65-ultra-r10g/` with different preloads: Claro, Kick, JioTV, CBS, Apple TV, Prime Video, karaoke, Play Movies; launcherx + setupwraith off for a custom launcher (Wi-Fi survived; voice untested); Input key is KEYCODE_TV_INPUT (RC860G) and needs InputKeyService; keep Realtek dtv/atv for inputs and OTA || `karbonn-swtv-20ae/` | Karbonn SWTV-20AE (Skyworth OEM, SW4H, MediaTek), India | Android TV 10 | Same SW4H platform as Panasonic 4KTV-0SU; Skyworth ACR, ad-row injector, ePop demo, e-manual, Airtel Xstream, Facebook and India-specific preloads; Google feedback and recommendation rows; 1.68 GB RAM, 32-bit armeabi-v7a; com.sky.market is a protected package (SecurityException); animation scales halved + background_process_limit 2 for extra performance on low RAM; Live TV is com.smartdevice.livetv || `kogan-gtvu65kg/` | Kogan Google TV (Changhong CHiQ AI PONT, GTVU65KG, dangni, MediaTek mt5867), Australia | Google TV 14 | Same board as chiq-gtvu65 on UKN3 firmware; Google ad services and auto-installs, feedback, Homwee store/help; Homwee screenshare packages are the AirPlay receiver (keep for iPhones); Chromecast, voice, OTA kept; AdGuard DNS validates; debloat only; reboot-checked |-| `motorola-mt4310/` | Motorola MT4310 (Newsan; Hisense board, hayward, MediaTek), Argentina | Android TV 11 | Hisense silent auto-installs, store demo and disclaimer, feedback and partner setup, recommendation rows and MediaTek partnercustomizer, printing and calendar; Play Movies, Play Games and TalkBack/TTS off by choice; the factory manager re-enables katniss and tvrecommendations at every boot, so they are removed for user 0 instead; 0.9 GB, 720p UI; tvlauncher off for a custom launcher, setupwraith left on (no HOME claim); remote app and Input keys survive the swap; Live TV is `com.mediatek.wwtv.tvcenter` |+| `motorola-mt4310/` | Motorola MT4310 (Newsan; Hisense board, hayward, MediaTek), Argentina | Android TV 11 | Hisense silent auto-installs, store demo and disclaimer, feedback and partner setup, recommendation rows and MediaTek partnercustomizer, printing and calendar; Play Movies, Play Games and TalkBack/TTS off by choice; the factory manager re-enables katniss and tvrecommendations at every boot, so they stay on; 0.9 GB, 720p UI; tvlauncher off for a custom launcher, setupwraith left on (no HOME claim); remote app and Input keys survive the swap; Live TV is `com.mediatek.wwtv.tvcenter` || `motorola-swtv-24ae-fhd/` | Motorola SWTV-24AE-FHD (Skyworth OEM, beomil, MediaTek), India/Global | Google TV 14 | Skyworth after-sale/activation trackers, recommendation rows and partner customizer, TV Guard (dailymanage), Daily Key (myapp), e-manual; Google Play Games and feedback; launcherx + setupwraith off; setupwraith owned Wi-Fi saved at setup; remote Settings button emits keycode 83 (KEYCODE_NOTIFICATION) on scancode 240, needs HomeKeyService; Live TV is `com.cltv.hybrid` || `mtc-uk-2k-android-tv/` | MTC UK 2K Android TV (tabata, MediaTek m5621; JVC-family firmware, `android.autoinstalls.config.JVC` present), UK | Android TV 11 | Google recommendation rows, partner customizer, feedback, ambient mode (katniss + backdrop), retail demo, MStar disclaimer popups, calendar leftovers; UK Freeview suite ships disabled at the factory (re-disabling throws SecurityException, harmless); dumpsys crippled on this firmware ("hung system process"), verify with `pm list packages -d` and screenshots; stock launcher `com.google.android.tvlauncher`, so `restore.sh` needs no launcher argument || `noblex-shinjuku/` | Noblex NoblexTV (Skyworth-built, shinjuku, MediaTek m5621), Argentina | Android TV 11 | Panasonic TH-40HS550K list on the same Skyworth firmware family: Skyworth auto-installs, shop demo and Demo Now, e-manual, MediaTek PQ test tool, Google feedback and smartconnect, recommendation rows and Skyworth's launcher customizer, Assistant, Backdrop; unused apps off by choice; Chromecast kept; 0.9 GB, streaming apps that start on their own at boot are the real RAM cost (appops note); keep `com.mediatek.*` |diff --git a/examples/motorola-mt4310/README.md b/examples/motorola-mt4310/README.mdindex 1c04d9be1..e8283d0ac 100644--- a/examples/motorola-mt4310/README.md+++ b/examples/motorola-mt4310/README.md@@ -8,13 +8,11 @@ on Windows; replace `<tv ip>` with your TV's address.- **Disabled, not uninstalled:** every package in [debloat.txt](debloat.txt) (store demo, Hisense silentinstalls, telemetry, partner promo rows, calendar and printing, Play Movies, Play Games, TalkBack/TTS,Arkiv) plus the stock launcher `com.google.android.tvlauncher`.-- **Removed for your user only (your choice):** voice search `com.google.android.katniss` and- `com.google.android.tvrecommendations`. The TV's factory manager re-enabled them at every boot, and- together they took about 63 MB of RAM. The APKs stay on the system partition, so nothing is lost.+- **Not in the list:** voice search `com.google.android.katniss` and `com.google.android.tvrecommendations`.+ The TV's factory manager turns them back on at every boot, so disabling them doesn't stick (see the notes+ below).- **New Home:** the launcher in `launcher/` (`com.gathin.tvhome`), with this TV's dock in[theme/config.json](theme/config.json): Netflix, YouTube, Disney+, Magis TV.-- **Ad-blocking DNS:** Private DNS set to `dns.adguard-dns.com`. It blocks ad and tracking domains in- apps, **not YouTube ads**.- **Left alone:** Netflix, Prime Video, YouTube, YouTube Music, Chromecast built-in, BrowseHere, theambient screensaver, your own apps, and everything the TV needs (Live TV, HDMI, remote keys, Bluetooth,keyboard, Play Store, Play services).@@ -41,13 +39,6 @@ tools\venv\Scripts\python.exe -I tools\tv.py 'pm enable --user 0 com.google.andrSwap in the package name from `debloat.txt`. To keep an app on for good, put `#` in front of its linein `debloat.txt`.-The two removed for your user come back with `install-existing` instead:--```powershell-tools\venv\Scripts\python.exe -I tools\tv.py 'cmd package install-existing com.google.android.katniss'-tools\venv\Scripts\python.exe -I tools\tv.py 'cmd package install-existing com.google.android.tvrecommendations'-```-`katniss` is voice search; the mic button also needs the remote paired over Bluetooth (the pairing screenthe mic button opens).@@ -57,12 +48,8 @@ the mic button opens).examples\motorola-mt4310\restore.ps1 -TvHost <tv ip>```-It reinstalls `katniss` and `tvrecommendations` for your user, re-enables everything the list disabled,-re-enables the stock launcher and makes it Home again, and sets Private DNS back to automatic. To undo only the DNS:--```powershell-tools\venv\Scripts\python.exe -I tools\tv.py 'settings put global private_dns_mode opportunistic'-```+It re-enables everything the list disabled, re-enables the stock launcher and makes it Home again, and+resets the voice search and notification-listener settings changed while testing.`backup/motorola-mt4310/restore-all.ps1` is a blunter safety net: it enables every package that isdisabled now but wasn't in the backup.@@ -101,10 +88,9 @@ as Home, disables the stock launcher and pushes the dock theme.- At every boot `com.at.factory.factorymanager` re-enables `katniss` and `tvrecommendations` (and TalkBackcomes back too, but never runs). Disabling them, clearing the voice and notification-listener settings- and background restrictions were all undone at boot; removing the two for user 0 is what held. Never- open or disable the factory manager itself.-- Memory after a reboot: about 315 MB available with those two running, about 349 MB without them- (of 934 MB). There is no reading from before the debloat started.+ and background restrictions were all undone at boot, so the list leaves both on. Together they take+ about 63 MB of RAM (about 315 MB available after a reboot with them running, about 349 MB without, of+ 934 MB). Never open or disable the factory manager itself.- The screen goes to sleep after 5 minutes without a key press (the factory setting) and Wi-Fi dropswith it. If the TV is unreachable a few minutes after a reboot, it is asleep: press Power.diff --git a/examples/motorola-mt4310/debloat.txt b/examples/motorola-mt4310/debloat.txtindex c5c90941b..c7ea2129e 100644--- a/examples/motorola-mt4310/debloat.txt+++ b/examples/motorola-mt4310/debloat.txt@@ -3,24 +3,20 @@# Same platform as examples/polytron-2k-hayward. Classic Android TV home: com.google.android.tvlauncher.## Apply: TV_HOST=<tv ip> tools/disable.sh examples/motorola-mt4310/debloat.txt-# Undo: TV_HOST=<tv ip> examples/motorola-mt4310/restore.sh (also re-enables tvlauncher and resets DNS)+# Undo: TV_HOST=<tv ip> examples/motorola-mt4310/restore.sh (also re-enables tvlauncher)# Launcher: TV_HOST=<tv ip> examples/motorola-mt4310/install-launcher.sh (dock theme in theme/config.json)# Everything is DISABLED, not uninstalled. Comment out any line you want to keep.## Status: disabled in batches on one TV on 2026-10-21 with a Home screenshot after each, then launcher/ installed-# as Home, a reboot, Live TV/HDMI switching and the real remote's buttons checked. Hours of use, not days.+# as Home, a reboot, Live TV/HDMI switching and the real remote's buttons checked. Still working after a day of use, not days yet.## RE-ENABLED AT EVERY BOOT: com.at.factory.factorymanager (CommonManager.enableApp, on BOOT_COMPLETED) turns# com.google.android.katniss and com.google.android.tvrecommendations back on, and Android then rebinds katniss# as the voice interaction service and tvrecommendations as a notification listener (~63 MB PSS together).# Cleared voice settings, a revoked listener, RUN_ANY_IN_BACKGROUND ignore and the restricted bucket are all-# reset at boot, and shell may not disable single components on Android 11. What held across reboots on the-# tested set (owner's choice, an exception to "never uninstall"): removing both for user 0, one per call:-# pm uninstall --user 0 com.google.android.tvrecommendations-# pm uninstall --user 0 com.google.android.katniss-# The factory manager then skips them and its boot routine finishes normally; MemAvailable after boot went from-# ~315 MB to ~349 MB. Undo: cmd package install-existing <pkg> (restore.sh does it). Both stay commented out-# below. com.google.android.marvin.talkback also comes back enabled after a reboot but never runs.+# reset at boot, and shell may not disable single components on Android 11, so both stay commented out below.+# Without them MemAvailable after boot would be ~349 MB instead of ~315 MB.+# com.google.android.marvin.talkback also comes back enabled after a reboot but never runs.# The screen sleeps after 5 minutes idle (screen_off_timeout=300000, factory value) and Wi-Fi drops with it:# a TV that "vanishes" a few minutes after a reboot is asleep, not broken; press Power.#@@ -47,7 +43,7 @@ com.google.android.feedbackcom.google.android.partnersetup # partner referral tracking (RLZ ping)# --- Batch 2: recommendation and promo rows-# com.google.android.tvrecommendations # removed for user 0 instead (header); fed the stock rows+# com.google.android.tvrecommendations # re-enabled at every boot (header); fed the stock rowscom.mediatek.android.leanbacklauncher.partnercustomizer # partner promo rows (and the stock top-bar icons)# --- Batch 3: unused system services@@ -56,7 +52,7 @@ com.android.providers.calendarcom.google.android.syncadapters.calendar# --- Batch 4: off by choice on the tested set (keep what you use)-# com.google.android.katniss # removed for user 0 instead (header); voice search / Assistant+# com.google.android.katniss # re-enabled at every boot (header); voice search / Assistantcom.google.android.videos # Google TV / Play Moviescom.google.android.play.gamescom.google.android.marvin.talkback # screen readerdiff --git a/examples/motorola-mt4310/restore.ps1 b/examples/motorola-mt4310/restore.ps1index 5f19e9ba7..d48a5216f 100644--- a/examples/motorola-mt4310/restore.ps1+++ b/examples/motorola-mt4310/restore.ps1@@ -1,6 +1,5 @@# Put the Motorola MT4310 back: re-enable everything debloat.txt disabled (including the stock launcher),-# give Home back to it, switch Private DNS back to automatic and let voice search and-# tvrecommendations bind again.+# give Home back to it and let voice search and tvrecommendations bind again.# Usage (from the repo root): examples\motorola-mt4310\restore.ps1 -TvHost <tv ip>param([string]$TvHost = $env:TV_HOST)$ErrorActionPreference = 'Stop'@@ -9,13 +8,9 @@ $env:TV_HOST = $TvHost$root = Resolve-Path (Join-Path $PSScriptRoot '..\..')$py = Join-Path $root 'tools\venv\Scripts\python.exe'$tv = Join-Path $root 'tools\tv.py'-# katniss and tvrecommendations were removed for user 0 (debloat.txt header); bring them back first-& $py -I $tv 'cmd package install-existing com.google.android.katniss'-& $py -I $tv 'cmd package install-existing com.google.android.tvrecommendations'& (Join-Path $root 'tools\restore.ps1') -TvHost $TvHost (Join-Path $PSScriptRoot 'debloat.txt')& $py -I $tv 'pm enable --user 0 com.google.android.tvlauncher'& $py -I $tv 'cmd package set-home-activity --user 0 com.google.android.tvlauncher/.MainActivity'-& $py -I $tv 'settings put global private_dns_mode opportunistic'# Undo the earlier unbinding attempts, so voice search and the listener work as before& $py -I $tv 'cmd appops set com.google.android.katniss RUN_ANY_IN_BACKGROUND allow'& $py -I $tv 'cmd appops set com.google.android.tvrecommendations RUN_ANY_IN_BACKGROUND allow'diff --git a/examples/motorola-mt4310/restore.sh b/examples/motorola-mt4310/restore.shindex 136a3ffa2..635f73602 100644--- a/examples/motorola-mt4310/restore.sh+++ b/examples/motorola-mt4310/restore.sh@@ -1,20 +1,15 @@#!/usr/bin/env bash# Put the Motorola MT4310 back: re-enable everything debloat.txt disabled (including the stock launcher),-# give Home back to it, switch Private DNS back to automatic and let voice search and-# tvrecommendations bind again.+# give Home back to it and let voice search and tvrecommendations bind again.# Usage (from the repo root): TV_HOST=<tv ip> examples/motorola-mt4310/restore.shset -euo pipefail: "${TV_HOST:?set TV_HOST to the TV IP}"HERE="$(cd "$(dirname "$0")" && pwd)"ROOT="$HERE/../.."PY="$ROOT/tools/venv/bin/python"; [ -x "$PY" ] || PY="$ROOT/tools/venv/Scripts/python.exe"-# katniss and tvrecommendations were removed for user 0 (debloat.txt header); bring them back first-"$PY" -I "$ROOT/tools/tv.py" 'cmd package install-existing com.google.android.katniss'-"$PY" -I "$ROOT/tools/tv.py" 'cmd package install-existing com.google.android.tvrecommendations'"$ROOT/tools/restore.sh" "$HERE/debloat.txt""$PY" -I "$ROOT/tools/tv.py" 'pm enable --user 0 com.google.android.tvlauncher'"$PY" -I "$ROOT/tools/tv.py" 'cmd package set-home-activity --user 0 com.google.android.tvlauncher/.MainActivity'-"$PY" -I "$ROOT/tools/tv.py" 'settings put global private_dns_mode opportunistic'# Undo the earlier unbinding attempts, so voice search and the listener work as before"$PY" -I "$ROOT/tools/tv.py" 'cmd appops set com.google.android.katniss RUN_ANY_IN_BACKGROUND allow'"$PY" -I "$ROOT/tools/tv.py" 'cmd appops set com.google.android.tvrecommendations RUN_ANY_IN_BACKGROUND allow'