Skip to content

Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.

examples: fold Vietnam unit into TCL 40S5400A notes

d0nj7c319420349b
diff --git a/examples/tcl-40s5400a/debloat.txt b/examples/tcl-40s5400a/debloat.txt
index 3a471007b..481b8bb82 100644
--- a/examples/tcl-40s5400a/debloat.txt
+++ b/examples/tcl-40s5400a/debloat.txt
@@ -32,6 +32,29 @@
# - Here the saved Wi-Fi network belonged to setupwraith (dumpsys wifi | grep cname=), so it was
# left enabled; disabling it would have dropped Wi-Fi and ADB.
#
+# Vietnam unit, 2026-10-27 (@d0nj): same model "Smart TV", product C06_2K_GB and build
+# AR2101 / AR14, Android TV 11 (SDK 30), security patch 2022-01-05, mt5867, about 918 MB RAM.
+# One session, not a several-day test. Kept setupwraith: dumpsys wifi showed four saved-network
+# entries with cname=com.google.android.tungsten.setupwraith; disabling it would delete those
+# networks and disconnect Wi-Fi and ADB. Chromecast (mediashell), ttvs firmware updates, YouTube,
+# TV360 and VTVgo were kept. Google TTS was left enabled. Stan, Rakuten TV and TCL Alexa were
+# already disabled. The photo screensaver was switched to AOSP Colors before disabling backdrop
+# (command and undo below).
+# - Off by owner choice: voice (katniss), the remote-mic bridge (tv.remote.service), TalkBack and
+# all four TCL USB media apps, as in the labelled block below. The mic button is unused.
+# - Additional packages disabled on this unit are listed as commented choices at the end; they
+# do not change the EU/AP list's defaults. Remote buttons were not physically tested afterwards.
+# - After sync, a wait and one reboot, usercenter alone returned among the disabled packages.
+# Left enabled after that, rather than disabling it again at every boot.
+# - YouTube, Live TV and SmartTube opened; the TV input framework created an HDMI 1 session
+# (HW1413744128). HDMI screenshots were empty. Hardware inventory reported more HDMI IDs than
+# the registered input map, so those IDs are not evidence of extra physical ports.
+# - launcher/ became Home with stock tvlauncher disabled (mFocusedApp confirmed). The final
+# launcher configuration was not reboot-tested, and physical remote buttons remain unverified.
+# - Dock note: four columns, YouTube (com.google.android.youtube.tv), TV360 (com.viettel.tv360.tv),
+# VTVgo (vn.vtv.vtvgotv), SmartTube (org.smarttube.stable), left to right; live_tv_package=com.tcl.tv.
+# These are per-unit config.json/theme values, not shared launcher defaults.
+#
# Known quirks on this firmware:
# - The stock launcher declares HOME priority 2, so `cmd package set-home-activity` alone does not
# take Home while it is enabled (Home still opens it). Disabling it, as build-and-install.sh
@@ -100,3 +123,10 @@ com.tcl.imageplayer
# com.amazon.amazonvideo.livingroom # Prime Video
# tv.wuaki.apptv # Rakuten TV
# com.tcl.smartalexa # TCL Alexa bridge
+
+# Additional choices on the Vietnam unit only; uncomment only if wanted on your TV.
+# com.tcl.copydatatotv # phone data-migration helper
+# com.tcl.t_solo # Bluetooth "listen alone" helper
+# com.tcl.dashboard # TCL HOME; kept on the EU/AP units above
+# com.tcl.suspension # Quick Panel; kept on the EU/AP units above
+# com.google.android.partnersetup # includes an RLZ ping receiver
diff --git a/examples/tcl-c06-us-vietnam/README.md b/examples/tcl-c06-us-vietnam/README.md
deleted file mode 100644
index 4a6c1b7b4..000000000
--- a/examples/tcl-c06-us-vietnam/README.md
+++ /dev/null
@@ -1,111 +0,0 @@
-# TCL C06 "Smart TV", Android TV 11 — debloat + launcher, restore and build notes
-
-Unit: device `C06`, product `C06_2K_GB`, build `AR2101` / `AR14`, MediaTek mt5867 (MT9221), 1 GB RAM,
-1280x720 @ 213 dpi, Vietnam. Stock home: Google TV (`com.google.android.tvlauncher`), which this
-setup disables in favour of `launcher/` (package `com.gathin.tvhome`).
-
-Everything here is reversible. Nothing was uninstalled.
-
-## Re-enable any app
-
-One package at a time (each `pm` call on its own):
-
-```sh
-TV_HOST=<tv ip> tools/tv.py 'pm enable --user 0 com.tcl.guard'
-```
-
-The full undo for the debloat list:
-
-```sh
-TV_HOST=<tv ip> tools/restore.sh examples/tcl-c06-us-vietnam/debloat.txt
-```
-
-`restore.sh` only re-enables what this list disabled; apps that were already disabled when the TV
-arrived (`au.com.stan.and`, `tv.wuaki.apptv`, `com.tcl.smartalexa`) stay as they were. The record it
-reads is in `~/.cleanyourtv/recovery-<tv ip>-<hash>.json`.
-
-To go back to the stock Google TV home:
-
-```sh
-TV_HOST=<tv ip> tools/tv.py 'pm enable --user 0 com.google.android.tvlauncher'
-TV_HOST=<tv ip> tools/tv.py 'cmd package set-home-activity --user 0 com.google.android.tvlauncher/.MainActivity'
-```
-
-## Screensaver
-
-Switched from Google's photo backdrop to the plain AOSP colours before the backdrop was disabled:
-
-```sh
-TV_HOST=<tv ip> tools/tv.py "settings put secure screensaver_components com.android.dreams.basic/.Colors"
-# undo:
-TV_HOST=<tv ip> tools/tv.py "settings put secure screensaver_components com.google.android.backdrop/.Backdrop"
-```
-
-## Change the dock order
-
-Edit `config.json` in this folder:
-
-```json
-"dock_apps": [
- "com.google.android.youtube.tv",
- "com.viettel.tv360.tv",
- "vn.vtv.vtvgotv",
- "org.smarttube.stable"
-]
-```
-
-Order is left to right, four slots, four columns. Add a fifth entry and the dock still shows four;
-change `columns` to match. Missing or disabled packages are skipped and the free slots fill from the
-grid (`fill_dock`).
-
-Apply it without a rebuild — the launcher overlays this `config.json` on its built-in `config.xml`:
-
-```sh
-TV_HOST=<tv ip> tools/theme.sh examples/tcl-c06-us-vietnam # apply
-TV_HOST=<tv ip> tools/theme.sh --reset # back to the defaults
-```
-
-Editing `launcher/app/src/main/res/values/config.xml` instead would change those defaults for every
-TV, which is why this unit keeps its own `config.json`.
-
-`hidden_apps` drops apps from the grid; `app_labels` renames a tile (`package=Name`).
-
-## Build and install
-
-`launcher/build-and-install.ps1 -TvHost <tv ip>` (Windows) or `launcher/build-and-install.sh`
-(POSIX). It builds, pushes, installs, starts the launcher, checks that Home resolves to it, and only
-then disables the stock launcher — rolling back if Home does not follow.
-
-On this machine Gradle's daemon inherits `GRADLE_USER_HOME` from the scoop Gradle install, so the
-script's build can look idle while it is compiling; if the install half never prints, build alone
-with `--no-daemon` and re-run the script (it is idempotent and skips the disable when Home already
-belongs to the launcher).
-
-Needs JDK 17+ (`JAVA_HOME`) and Android SDK platform 34 + build-tools 34.0.0
-(`sdkmanager "platforms;android-34" "build-tools;34.0.0"`). APK size gate: under 589,824 B; this
-build is 544,829 B.
-
-The APK is signed with the debug key, which is enough for a sideloaded launcher and is what the
-repo asks for ("debug build is fine").
-
-## Wallpaper
-
-Pictures go in the launcher's `wallpapers/` folder on the TV, pushed by
-`tools/theme.sh themes/<name>`; `wallpaper` in `config.xml` (or the theme) turns it on,
-`wallpaper_dim` controls its darkness, and `wallpaper_true_color` is for 2 GB sets only.
-
-## Known quirks on this unit
-
-- `com.tcl.usercenter` (TCL account) is switched back on by the firmware at every boot. Left idle;
- not re-disabled after each boot.
-- `com.google.android.tungsten.setupwraith` owns the saved Wi-Fi network, so it stays enabled:
- disabling it deletes the network and takes the TV off Wi-Fi and ADB.
-- Netflix, Prime Video and Play Games are preload **stubs** on this unit (Netflix: 6.6 MB stub in
- `/data/app`, real 83 MB APK in `/product/app/Netflix`). `pm enable` on a stub brings its tile
- back, so the grid can still offer an app whose stub is enabled; hide those tiles in launcher
- Settings (tile menu, needs `app_library`).
-- Live TV and HDMI inputs photograph as empty screenshots (`screencap` returns 0 bytes); check
- `dumpsys activity activities | grep mResumedActivity` or `dumpsys tv_input` instead.
-- Inputs on this TV: 4x HDMI + AV + the tuner, from `com.tcl.tvinput`.
-- Voice is disabled by choice: `com.google.android.katniss` and `com.google.android.tv.remote.service`
- are off, so the mic button does nothing. Re-enable both for voice.
diff --git a/examples/tcl-c06-us-vietnam/config.json b/examples/tcl-c06-us-vietnam/config.json
deleted file mode 100644
index 5e6d2145a..000000000
--- a/examples/tcl-c06-us-vietnam/config.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "dock_apps": [
- "com.google.android.youtube.tv",
- "com.viettel.tv360.tv",
- "vn.vtv.vtvgotv",
- "org.smarttube.stable"
- ],
- "live_tv_package": "com.tcl.tv",
- "app_labels": [
- "com.tcl.tv=Live TV"
- ]
-}
diff --git a/examples/tcl-c06-us-vietnam/debloat.txt b/examples/tcl-c06-us-vietnam/debloat.txt
deleted file mode 100644
index b7dcb611f..000000000
--- a/examples/tcl-c06-us-vietnam/debloat.txt
+++ /dev/null
@@ -1,80 +0,0 @@
-# TCL C06 "Smart TV" (C06_2K_GB), Android TV 11 (SDK 30), build AR2101 / AR14, MediaTek mt5867,
-# security patch Thu Nov 2022 (ro.build.date 2022-11-17), 1 GB RAM (MemTotal ~918 MB), 1280x720 @ 213 dpi,
-# Vietnam unit (persist locale vi), Google TV home. Fingerprint TCL/C06_2K_GB/C06:11/AR2101/AR14:user/release-keys.
-#
-# Derived from examples/tcl-40s5400a (same product C06_2K_GB and build AR2101) and adjusted to this
-# unit's owner choices and its installed packages.
-#
-# Apply: TV_HOST=<tv ip> tools/disable.sh examples/tcl-c06-us-vietnam/debloat.txt
-# Undo: TV_HOST=<tv ip> tools/restore.sh examples/tcl-c06-us-vietnam/debloat.txt
-# Everything is DISABLED, not uninstalled. Comment out any line you want to keep.
-#
-# Stock launcher: com.google.android.tvlauncher (HOME priority 2 on this firmware, so
-# cmd package set-home-activity alone does not take Home while it is enabled; build-and-install.sh
-# disables it after Home has moved). Live TV app: com.tcl.tv, which also plays HDMI and is the only
-# handler of the passthrough VIEW intent the Inputs menu sends. Inputs: com.tcl.tvinput.
-#
-# KEPT ON PURPOSE on this unit:
-# com.google.android.tungsten.setupwraith # it owns every saved Wi-Fi network (dumpsys wifi, four
-# # cname=setupwraith): disabling it deletes the network and
-# # takes the TV off Wi-Fi and ADB.
-# com.tcl.usercenter # the system switches it back on at every boot; left idle. Reported below.
-# com.tcl.ttvs # firmware updater; owner keeps OTA.
-# com.google.android.apps.mediashell # Chromecast; owner casts from a phone.
-# com.google.android.youtube.tv # in use.
-# com.viettel.tv360.tv, vn.vtv.vtvgotv # in use.
-# com.google.android.tvlauncher is disabled by launcher/build-and-install.sh, not by this list.
-# Already disabled before this list: au.com.stan.and, tv.wuaki.apptv, com.tcl.smartalexa.
-#
-# Preload stubs: Netflix, Prime Video, Play Games, TCL HOME (com.tcl.dashboard) and Quick panel
-# (com.tcl.suspension) are placeholder tiles on this unit, not the apps. Netflix sits as a 6.6 MB stub in
-# /data/app while the real 83 MB APK stays in /product/app/Netflix, and `pm enable` on the stub brings
-# its tile back, so a debloated set keeps offering tiles for apps it disabled. TCL HOME and Quick panel
-# are enabled on a stock set and off in this list. The launcher shows the rest until Play installs
-# the real app or the owner hides them (launcher Settings > tile menu, with app_library).
-#
-# Owner choices behind the "off by choice" block: voice disabled, Chromecast kept, USB media suite
-# disabled, Google photo screensaver replaced by the AOSP colours one first:
-# tools/tv.py 'settings put secure screensaver_components com.android.dreams.basic/.Colors'
-#
-# com.tcl.ttvs is not text-to-speech: its activities are versionUpdateApp SystemUpdateActivity and
-# NetworkUpdateActivity. Kept.
-# Known quirk: com.tcl.usercenter comes back at every boot (firmware re-enables it). Noted, not
-# re-disabled after each boot.
-
-# TCL account, promos and content
-com.tcl.usercenter # TCL account, re-enabled by the system at boot (idle)
-com.tcl.guard # TGuard cleaner/support
-com.tcl.partnercustomizer # promo rows / partner customization
-com.tcl.waterfall.overseas # TCL web-video portal
-com.tcl.esticker # store-demo sticker
-com.tcl.copydatatotv # "copy your data to the TV" phone migration
-com.tcl.t_solo # Bluetooth "listen alone" dock helper (BluetoothDiscoveryReceiver)
-com.tcl.dashboard # "TCL HOME" preload tile
-com.tcl.suspension # "Quick panel" preload tile
-android.autoinstalls.config.tcl.device # partner-app auto installer config
-
-# Google extras
-com.google.android.feedback
-com.google.android.videos # Play Movies
-com.google.android.play.games # preload stub tile on this unit
-com.google.android.youtube.tvmusic
-com.google.android.syncadapters.calendar
-com.google.android.partnersetup # RLZ ping receiver (partner revenue logging)
-
-# Stock home recommendation rows
-com.google.android.tvrecommendations
-
-# Off by choice on this unit: comment out what you use
-com.google.android.katniss # Google search/voice: owner does not use the mic
-com.google.android.tv.remote.service # BT remote's mic bridge; needs katniss for voice
-com.google.android.marvin.talkback # TalkBack
-com.tcl.ui_mediaCenter # USB media player, with the next three
-com.tcl.audioplayer
-com.tcl.videoplayer
-com.tcl.imageplayer
-
-# Already disabled when the TV arrived; left as-is.
-# au.com.stan.and
-# tv.wuaki.apptv
-# com.tcl.smartalexa
diff --git a/examples/tcl-c06-us-vietnam/tv.json b/examples/tcl-c06-us-vietnam/tv.json
deleted file mode 100644
index 19fa8d3c8..000000000
--- a/examples/tcl-c06-us-vietnam/tv.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "tv": "TCL C06 \"Smart TV\" (C06_2K_GB, MediaTek MT9221 / mt5867, 1 GB), Vietnam",
- "os": "Android TV 11",
- "brand": "TCL",
- "notes": "Google TV home on build AR2101 (same platform as the 40S5400A list); TCL account/TGuard/promo/portal, sticker, phone migration, TCL HOME and Quick panel tiles, Play Movies, YouTube Music, RLZ ping and recommendation rows off; voice, remote-mic bridge and TalkBack off by choice; Chromecast, firmware updater and setupwraith kept (setupwraith owns the saved Wi-Fi network); Google photo screensaver swapped to the AOSP one first; usercenter returns at every boot; Netflix/Prime Video/Play Games are preload stubs whose tiles survive pm enable; launcher/ is default Home, stock tvlauncher disabled"
-}