Skip to content

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

examples: add TCL C06 Smart TV (C06_2K_GB, mt5867), Android TV 11, Vietnam

d0nje9525787dd83
diff --git a/examples/tcl-c06-us-vietnam/README.md b/examples/tcl-c06-us-vietnam/README.md
new file mode 100644
index 000000000..4a6c1b7b4
--- /dev/null
+++ b/examples/tcl-c06-us-vietnam/README.md
@@ -0,0 +1,111 @@
+# 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
new file mode 100644
index 000000000..5e6d2145a
--- /dev/null
+++ b/examples/tcl-c06-us-vietnam/config.json
@@ -0,0 +1,12 @@
+{
+ "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
new file mode 100644
index 000000000..b7dcb611f
--- /dev/null
+++ b/examples/tcl-c06-us-vietnam/debloat.txt
@@ -0,0 +1,80 @@
+# 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
new file mode 100644
index 000000000..19fa8d3c8
--- /dev/null
+++ b/examples/tcl-c06-us-vietnam/tv.json
@@ -0,0 +1,6 @@
+{
+ "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"
+}