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
Fold AU13 unit into tcl-43s5k instead of a separate example
Huzaifa649cb3c4bc9f
diff --git a/README.md b/README.mdindex 88bf7bff0..c87d9d1b5 100644--- a/README.md+++ b/README.md@@ -279,8 +279,7 @@ Anker Nebula, BYINTEK, Epson, Formovie, Gadnic, JMGO, Portronics, Stellamore, Wa| TCL 43S5400A (C06, C06_2K_GB, MediaTek MT9221, 1 GB) | Android TV 11 || TCL 43C645 (Smart TV Pro, Realtek RTD2851 / R51MT05, V8-R51MT05-LF1V652); also TCL 60C635 (G03_4K_GB, Realtek rtd288o), Spain | Google TV launcher on Android TV 11 || TCL 43EP660 (Europe, BeyondTV, Realtek rtd285o, V8-R851T02-LF1V378) | Android TV 9 |-| TCL 43S5K (G13, G13_2K_GB, MediaTek MT9221, 1 GB), India | Google TV 14 |-| TCL 40" 2K QHD Google TV (G13, G13_2K_GB, MediaTek mt5867, ~1 GB), India (V5C series) | Google TV 14 |+| TCL 43S5K (G13, G13_2K_GB, MediaTek MT9221, 1 GB), India; also a TCL 40" 2K QHD Google TV (V5C series), same product, firmware AU13 | Google TV 14 || TCL 50C725K (Smart TV Pro, BeyondTV4/BeyondTV6, RTD2851M, Realtek rtd288o, 2 GB), AR10 build | Android TV 11 || TCL 50P735 (BeyondTV4, Smart TV Pro) | Google TV 11 || TCL 50DP660 (Europe, "Percee TV", MediaTek MT5658 / board mt5891, V8-T658T01-LF1V602) | Android TV 8.0 |diff --git a/examples/README.md b/examples/README.mdindex 81f840e7b..78a175e19 100644--- a/examples/README.md+++ b/examples/README.md@@ -158,8 +158,7 @@ on that firmware, grouped and commented. These are starting points: comment out| `tcl-43ep660/` | TCL 43EP660 (Europe, BeyondTV, Realtek rtd285o, V8-R851T02-LF1V378) | Android TV 9 | TCL BI analytics, user center, TCL Channel, message box, stickers, TV Guard, T-Cast, app store, USB players; voice and Miracast off by choice, Chromecast and updaters kept; stock launcher has HOME priority 2, so it must be disabled; setupwraith owns the setup Wi-Fi and does not claim HOME, so it stays; `StartandroidService` kept (device authentication) || `tcl-43p615/` | TCL 43P615 (Europe, BeyondTV, Realtek RTD2851, AR06) | Android TV 11 | Sibling of the BeyondTV2 Android 11 above (AR05); same TCL set plus dashboard, useragreement, copydatatotv and notereminder; **`com.google.android.videos` re-enables on every boot** (and YouTube came back via a Play update), `usercenter` stays off unlike the Android 9 RTD2851 sets; 2 HDMI + AV through TvInputManager, Inputs pill works, setupwraith does not claim HOME; voice, Miracast/MagiConnect, stock screensaver and TCL Dashboard off by choice, Chromecast, OTA and phone remote kept; launcher installed and reboot-checked, TV Bro replaces a Play-installed white-label browser || `tcl-43s450f-ca/` | TCL 43S450F-CA (S4 Fire TV Edition, AFTDEC012E, ginza, MediaTek), Canada | Fire OS 8.1.8.5 / Android 11 | First TCL Fire TV Edition list, from the Stick 4K 2023 and Hisense Fire OS 8 lists: Amazon telemetry, ACR, ad bidding and sponsored rows, Fire TV Channels, Shopping, demo content, popups, Photos/Kids/miniTV/Silk, tutorials, other-device setup, Matter controller, screensaver; Crave, Paramount+, Max and Apple TV off by choice; seven protected packages noted; Alexa, Prime Video, Music, Luna, casting, OTA, Live TV and tuner kept; AdGuard Private DNS works; debloat only, stock launcher protected; reboot-checked; notes in README.md |-| `tcl-43s5k/` | TCL 43S5K (G13, G13_2K_GB, MediaTek MT9221, 1 GB), India | Google TV 14 | TCL analytics and the firmware updater are one app (ttvs, kept on for updates), log upload, promo rows, Google partner auto-installs and tracking; Assistant and TCL browser off by choice; Live TV and HDMI are MediaTek's `wwtv.tvcenter`, not `com.tcl.tv`; the Wi-Fi saved during setup belongs to setupwraith, so re-join it before setupwraith goes; launcherx, setupwraith and dreamx off for launcher/; the remote's gear sends keycode 83 (`settings_key_keycodes`) |-| `tcl-g13-google-tv/` | TCL 40" 2K QHD Google TV (G13, G13_2K_GB, MediaTek mt5867, ~1 GB), India (V5C series) | Google TV 14 | Same device/product as `tcl-43s5k/` one firmware sub-build newer (AU13 vs AU10): TCL log capture, EULA screen, promos, duplicate browser and factory/demo apps off, reboot-checked, storage 66%→53%; the launcher half that works on AU10 fails here even with the exact proven sequence (new launcher started and screenshot-verified first, stock launcher disabled, preference set after) — Home still falls to setupwraith's RecoveryActivity; debloat only |+| `tcl-43s5k/` | TCL 43S5K (G13, G13_2K_GB, MediaTek MT9221, 1 GB), India; also a TCL 40" 2K QHD Google TV (V5C series), same product, firmware AU13 | Google TV 14 | TCL analytics and the firmware updater are one app (ttvs, kept on for updates), log upload, promo rows, Google partner auto-installs and tracking; Assistant and TCL browser off by choice; Live TV and HDMI are MediaTek's `wwtv.tvcenter`, not `com.tcl.tv`; the Wi-Fi saved during setup belongs to setupwraith, so re-join it before setupwraith goes; launcherx, setupwraith and dreamx off for launcher/; the remote's gear sends keycode 83 (`settings_key_keycodes`); on the AU13 unit the same packages applied cleanly (plus MtkDemo) but the launcher handover wasn't retried with setupwraith disabled yet || `tcl-50c725k/` | TCL 50C725K (Smart TV Pro, BeyondTV4/BeyondTV6, RTD2851M, Realtek rtd288o, 2 GB), AR10 build | Android TV 11 | Same BeyondTV4 family as `tcl-65c725/` and `tcl-55c725/`, with the older `tvlauncher` (replaced by `launcher/`); TCL home-content push, TCL Channel, promos, analytics, messagebox, dashboard, browser, gallery, auto-installs and Google feedback/partner setup; Google voice (katniss, ~175 MB RAM), TalkBack/TTS and Netflix/Stan/Play Games off by choice; TCL account, firmware updater, Chromecast, Miracast and screensaver kept; Live TV `com.tcl.tv` and inputs `com.tcl.tvinput` kept; reboot-checked || `tcl-50dp660/` | TCL 50DP660 (Europe, "Percee TV", MediaTek MT5658 / board mt5891, V8-T658T01-LF1V602) | Android TV 8.0 | TCL content tiles (T-Channel), MagiConnect, Alexa bridge, OTA updater, USB players, Rakuten preload and ODM test apps; Assistant and speech recognition off (no microphone), Cast kept; stock launcher has HOME priority 2 and must be disabled; three PERSISTENT `android.uid.system` packages survive `disable-user`; factory menu from the remote via Picture > Advanced Settings > Brightness > Contrast > `1950` with network ADB on 5555; an NVM reset needs a factory reset and a USB reflash afterwards or the Wi-Fi MAC, Widevine keybox and Netflix ESN stay wiped; [compatibility notes](../docs/devices/tcl-50dp660.txt) || `tcl-50ep680/` | TCL 50EP680 (Europe, BeyondTV, Realtek rtd285o) | Android TV 11 | TCL analytics + content feed, giftbox dashboard, partner customizer, preloaded games/news; UK Freeview apps already off at the factory; voice off by choice; launcher works (stock `com.google.android.tvlauncher`, Live TV `com.tcl.tv`) |diff --git a/examples/tcl-43s5k/debloat.txt b/examples/tcl-43s5k/debloat.txtindex 90f1a2b71..044e8a83d 100644--- a/examples/tcl-43s5k/debloat.txt+++ b/examples/tcl-43s5k/debloat.txt@@ -3,10 +3,18 @@# about 1 GB RAM (954 MB, low_ram=true), 32-bit only (armeabi-v7a).# Unlike the G08 TCL Google TVs, Live TV and HDMI are MediaTek's com.mediatek.wwtv.tvcenter, not com.tcl.tv.#-# Same device/product on a newer firmware sub-build (UKN2.241110.001 AU13): the launcher half that-# works here failed on that unit even with the exact sequence below, landing on setupwraith instead --# see examples/tcl-g13-google-tv/README.md before assuming this list's launcher steps are solid on-# every AU-revision of this build.+# Same device/product on a newer firmware sub-build (UKN2.241110.001 AU13, security patch+# 2026-06-01): the debloat packages below all applied cleanly and reboot-checked (storage 66%->53%+# after also running `cmd package trim-caches`). com.mediatek.MtkDemo (MediaTek's demo app, not in+# this unit's build) was also disabled there with no issue.+#+# The launcher half was NOT confirmed working on that AU13 unit - but setupwraith was never disabled+# in either attempt, so this is not yet a fair test of the same procedure as this list's. Both times,+# `launcher/build-and-install.sh`'s exact sequence (new launcher started and screenshot-verified first,+# launcherx disabled, home preference set after) still landed on setupwraith's RecoveryActivity instead+# of the new launcher, same as what Batch 3 below says happens whenever launcherx goes while setupwraith+# stays. Retrying with setupwraith disabled too (Wi-Fi forgotten/re-joined first, as below) is the next+# thing to try on that unit before concluding AU13 is any different from AU10 here.## Apply: TV_HOST=<tv ip> tools/disable.sh examples/tcl-43s5k/debloat.txt# Undo: TV_HOST=<tv ip> tools/restore.sh examples/tcl-43s5k/debloat.txt com.google.android.apps.tv.launcherx@@ -51,6 +59,7 @@ com.google.android.play.gamescom.google.android.feedbackcom.android.tv.feedbackconsentcom.google.android.katniss # Google Assistant voice (mic button), about 63 MB in two processes; off by choice+com.mediatek.MtkDemo # MediaTek demo app; not present on the AU10 unit above, seen on AU13# Batch 3: setup wizard. It claims HOME (RecoveryActivity, priority 1) once launcherx is gone.# Disabled while launcherx still owned Home, and only after the Wi-Fi network was forgotten and re-joineddiff --git a/examples/tcl-g13-google-tv/README.md b/examples/tcl-g13-google-tv/README.mddeleted file mode 100644index 6abc1331b..000000000--- a/examples/tcl-g13-google-tv/README.md+++ /dev/null@@ -1,59 +0,0 @@-# TCL 40" Google TV (G13, Google TV 14), India--TCL `G13` set, product `G13_2K_GB`, device `G13`, MediaTek mt5867, ~1 GB RAM. Google TV 14 (SDK 34),-build `TCL/G13_2K_GB/G13:14/UKN2.241110.001/AU13:user/release-keys`, security patch 2026-06-01.-Retail listing: TCL 101 cm (40 inch) 2K QHD Google TV, V5C series, India.--| File | What it is |-|---|---|-| `debloat.txt` | The 7 packages disabled on this set, grouped and commented |--**How much testing is behind it:** one set, 23 October 2026. All 7 packages are disabled on the live-set (`pm list packages -d` verified) and the TV boots and plays normally; storage use dropped from 66%-to 53% after also running `cmd package trim-caches`.--**Not done here: the launcher half fails on this firmware build, unlike a near-identical unit.**-`examples/tcl-43s5k/` is the *same* device/product (`G13`/`G13_2K_GB`, `ro.board.platform mt5867`,-Google TV 14) just one firmware sub-build older (`UKN2.241110.001 AU10` there vs `AU13` here,-security patch 2025-12-01 vs 2026-06-01) and `launcher/build-and-install.sh` worked on it, surviving-reboots. On this AU13 unit it fails even when their exact documented sequence is followed precisely-(this was tried first with the wrong order, see below, then redone correctly with the same result):--1. Install the APK, then `am start -W -a android.intent.action.MAIN -c android.intent.category.HOME- -n com.gathin.tvhome/.MainActivity` — returns `Status: ok`, and the launcher actually renders- correctly (screenshot-verified: dock, clock, ambient glow all present).-2. `pm disable-user --user 0 com.google.android.apps.tv.launcherx` (stock launcher disabled only- *after* step 1 confirmed the new launcher runs, per `build-and-install.sh`'s own comment: "Android- drops the preference whenever the set of HOME apps changes").-3. `cmd package set-home-activity --user 0 com.gathin.tvhome/.MainActivity` (set *after* disabling,- also per that script).-4. `cmd package resolve-activity --brief -a android.intent.action.MAIN -c android.intent.category.HOME`- still returns `com.google.android.tungsten.setupwraith/.RecoveryActivity`, not the new launcher.--The RoleManager HOME role is correctly granted throughout (`cmd role get-role-holders-android.app.role.HOME` returns `com.gathin.tvhome`), so this isn't a missed grant — something in this-build's Home-routing still prefers `setupwraith` over the role holder once `launcherx` is gone. An-earlier, less careful attempt (preference set *before* disabling, no explicit `am start` first) showed-a likely mechanism: `logcat` at that moment showed a `BootModeAppToForeground` log line (from the-certified Google TV `com.android.libraries.tv.tvsystem` library, bundled in `launcherx`) explicitly-re-launching `com.google.android.apps.tv.launcherx` **by package name** — a different code path from-RoleManager entirely. Whether that specific path is still what blocks the *correctly-ordered* attempt-above is unconfirmed; what's confirmed is that both orderings land on `setupwraith`, not the new-launcher, on this build.--Given two attempts with the proven sequence both failed the same way, further retries weren't-attempted on this unit — each one carries the reboot/boot-splash risk below. Worth trying: a firmware-update if TCL ships one past AU13, or comparing notes with another AU13 (or later) unit to see if-it's this sub-build specifically rather than this one set.--**Recovery, if you hit this too:** disabling `launcherx` here does not immediately break anything-visible — but the next *reboot* gets stuck on the "Google TV" boot splash forever, because nothing can-satisfy Home during boot. This looked alarming (stuck splash, no ADB reachable over the TLS wireless-debugging-transport that was open before the reboot) but was not a brick: `sys.boot_completed` was already `1`,-and ADB was reachable again on **plain TCP port 5555** without needing a new wireless-debugging pairing.-`pm enable com.google.android.apps.tv.launcherx` followed by `input keyevent KEYCODE_HOME` resolved it-immediately. If this happens to you: don't wipe or re-flash anything, just get ADB back (try port 5555-first) and re-enable the stock launcher.--Apply: `TV_HOST=<tv ip> tools/disable.sh examples/tcl-g13-google-tv/debloat.txt`-Undo: `TV_HOST=<tv ip> tools/restore.sh examples/tcl-g13-google-tv/debloat.txt`diff --git a/examples/tcl-g13-google-tv/debloat.txt b/examples/tcl-g13-google-tv/debloat.txtdeleted file mode 100644index 9d32a6907..000000000--- a/examples/tcl-g13-google-tv/debloat.txt+++ /dev/null@@ -1,33 +0,0 @@-# TCL 40" Google TV, India (device G13, product G13_2K_GB, MediaTek mt5867, ~1 GB RAM)-# Google TV 14 (SDK 34), build TCL/G13_2K_GB/G13:14/UKN2.241110.001/AU13:user/release-keys,-# security patch 2026-06-01. ro.adb.secure=1.-# Retail listing: TCL 101 cm (40 inch) 2K QHD Google TV, V5C series.-#-# Apply: TV_HOST=<tv ip> tools/disable.sh examples/tcl-g13-google-tv/debloat.txt-# Undo: TV_HOST=<tv ip> tools/restore.sh examples/tcl-g13-google-tv/debloat.txt-# Everything is DISABLED, not uninstalled. Comment out any line you want to keep.-#-# Stock launcher: com.google.android.apps.tv.launcherx. Live TV / tuner: com.mediatek.wwtv.tvcenter.-# Keep com.tcl.suspension (source/standby), com.mediatek.tv.service and com.mediatek.tvinput (HDMI/tuner).-#-# Not done here: no custom launcher. See README.md in this folder — on this exact board the stock-# launcher is force-relaunched by a hardcoded platform service (BootModeAppToForeground, from the-# com.android.libraries.tv.tvsystem shared library) that bypasses RoleManager's HOME role entirely,-# unlike the G08 board (also Google TV 14, same debloat approach) where the launcher swap works.-#-# All 7 packages below were disabled and reboot-checked (pm list packages -d persisted, TV booted-# normally, Home resolved to the stock launcher as expected) on 23 October 2026.--# TCL telemetry, factory tools and duplicate apps-com.tcl.logkit # log capture and upload-com.tcl.useragreement # EULA/privacy screens, one-time setup only-com.tcl.messagebox # TCL pushed messages and promos-com.tcl.browser # duplicate TV browser, redundant with any installed one-com.tcl.factory.view # factory test UI-mediatek.factorymenu.ui # MediaTek factory test menu-com.mediatek.MtkDemo # MediaTek demo app--# Untested here, but present on this board and documented as safe analytics/promo bloat on the-# same-family G07/G08/G09/G10 boards (see their debloat.txt headers) - worth trying on this model too:-# com.tcl.guard # TGuard: device-use tracking, memory cleaner-# com.tcl.partnercustomizer # TCL tweaks to Google TV home rows