Skip to content

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

Examples: TCL 55S470G (Google TV 12, G10)

Jose Berumen2214d54db4fa
diff --git a/examples/README.md b/examples/README.md
index d92532661..fbe792a83 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -42,6 +42,7 @@ on that firmware, grouped and commented. These are starting points: comment out
| `tcl-40s5400a/` | TCL 40S5400A (C06, C06_2K_GB, MediaTek MT9221, 1 GB) | Android TV 11 | TCL account/TGuard/promo rows, USB players, voice and photo screensaver off by choice; ttvs is the firmware updater, keep it; stock launcher has HOME priority 2, so it must be disabled |
| `tcl-43c645/` | TCL 43C645 (Smart TV Pro, Realtek RTD2851 / R51MT05, V8-R51MT05-LF1V652) | Google TV launcher on Android TV 11 | TCL BI analytics/promos, Google partner plumbing, setupwraith (takes HOME once the stock launcher is off); voice and Chromecast kept, firmware updater and Miracast off by choice; tested on a real unit, launcher works |
| `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`) |
+| `tcl-55s470g/` | TCL 55S470G (G10, G10_4K_US_NF, Realtek), US | Google TV 12 | Same build as the G10 list, but Samba TV, logkit and ttvs ship enabled; ttvs kept (it hosts the firmware updater) and re-enables Samba's front end at boot, so opt out in Settings > Privacy too; Assistant voice and Chromecast off by choice; setupwraith off (Wi-Fi belonged to android.uid.system); remote gear button sends keycode 83, opens the launcher's quick settings panel; reboot-checked |
| `tcl-g10-google-tv/` | TCL 55" 4K Google TV, 2023 (G10, G10_4K_US_NF); also TCL 55P6K, Spain (G10_4K_GB_NF_32BIT) | Google TV 12 | TCL TV+, TCL Live, store demo, smartlink installer; setupwraith also claims Home once the stock launcher is disabled |
| `tcl-q10g-pro/` | TCL 55Q10G Pro (China, tcl_mt5879_cn, MediaTek MT9952) | Android TV 11 | No Google services, TCL boot ad + analytics/BI, OTA and account services; ADB opens from Device info + UP/DOWN/LEFT/RIGHT, not the build number; debloat only, stock launcher cannot be replaced (signature check at install time) |
| `tcl-65c725/` | TCL 65C725 (Smart TV Pro, BeyondTV4) | Android TV 11 | TCL analytics/promos, Google recommendation rows; voice off, OTA off by choice |
diff --git a/examples/tcl-55s470g/README.md b/examples/tcl-55s470g/README.md
new file mode 100644
index 000000000..8eae9a226
--- /dev/null
+++ b/examples/tcl-55s470g/README.md
@@ -0,0 +1,124 @@
+# TCL 55S470G
+
+Google TV 12 (device G10, product G10_4K_US_NF, firmware STT2.230203.001 AS50), 1.8 GB RAM.
+Same platform and build as [`tcl-g10-google-tv`](../tcl-g10-google-tv/), with your own choices on top.
+
+| File | What it is |
+|---|---|
+| `debloat.txt` | The 29 packages disabled on this TV, in the batches they were applied, with comments (the stock launcher, the 30th, is handled by the install and restore scripts) |
+| `install.ps1`, `install.sh` | Build the launcher, install it as Home and push the dock theme |
+| `restore.ps1`, `restore.sh` | Undo everything: re-enable every package, give Home back to Google TV, DNS and screensaver back |
+| `theme/config.json` | The dock order and look, pushed to the TV without a rebuild |
+
+All commands run from the repository root. Replace `192.168.1.50` if the TV gets a different
+address. Network debugging must be on (Settings > System > Developer options > USB debugging), and the
+TV asks "Allow USB debugging?" the first time a computer connects.
+
+## What was done
+
+- **Disabled, not uninstalled:** Samba TV front end, TCL log upload, TCL account nags, TCL home-screen
+ content and promos, the silent partner-app installers, retail demo and hotel mode, the e-manual,
+ game bar, USB media player, soundbar updater, TalkBack, Play Games, the TGuard cleaner, ambient mode,
+ Google Assistant voice, Chromecast, YouTube Music, the Google TV app, Alexa, the phone-remote
+ service, and finally the stock launcher and the setup wizard (they both claim Home).
+- **Kept on purpose:** Live TV, HDMI and tuner (`com.tcl.tv`, `com.tcl.tvinput`), the Input/source
+ panel (`com.tcl.suspension`), remote pairing, Bluetooth, keyboard, Play Store and Play Services,
+ AirPlay, TCL Live and every streaming app you use. `com.tcl.ttvs` also stays: on this firmware it
+ carries the firmware updater as well as Samba TV's frame capture and TCL analytics. To stop the
+ tracking, open Settings > Privacy > Samba Interactive TV and untick it, then open **Manage providers**
+ on the same page and untick every provider there by hand: unticking Samba Interactive TV clears the
+ main list but leaves the providers ticked.
+- **Screensaver** moved from ambient mode to Android's plain Colors screensaver. For the launcher's
+ drifting clock instead:
+ `tools\venv\Scripts\python.exe -I tools\tv.py "settings put secure screensaver_components com.gathin.tvhome/.ClockDream"`
+- **Ad-blocking DNS:** Private DNS points at `dns.adguard-dns.com`. It blocks ad and tracker domains
+ for every app, but **not YouTube ads** (they come from the same servers as the videos). Undo:
+ `tools\venv\Scripts\python.exe -I tools\tv.py "settings put global private_dns_mode opportunistic"`
+ (or Settings > Network & Internet > Private DNS > Automatic).
+
+## Re-enable one app
+
+```powershell
+$env:TV_HOST = '192.168.1.50'
+tools\venv\Scripts\python.exe -I tools\tv.py "pm enable com.google.android.apps.mediashell"
+```
+
+Use the package name from `debloat.txt` (Chromecast in the example). Without a computer: Settings >
+Apps > See all apps > Show system apps, pick the app, Enable. To keep it enabled next time you run a
+list, put a `#` in front of its line in `debloat.txt`.
+
+To undo everything at once:
+
+```powershell
+powershell -ExecutionPolicy Bypass -File examples\tcl-55s470g\restore.ps1 -TvHost 192.168.1.50
+```
+
+The launcher stays installed after a restore; remove it with
+`tools\venv\Scripts\python.exe -I tools\tv.py "pm uninstall com.gathin.tvhome"`.
+
+## The remote's Settings (gear) button
+
+It sends keycode 83, which only the stock Google TV home understood. The launcher's `HomeKeyService`
+(an accessibility service, enabled by `install.ps1`) catches it and opens a small glass panel, on Home
+or over any app: TV system settings, Picture, Network, Apps (open an app and choose Enable to bring
+back something from `debloat.txt`) and Launcher settings. Back or the gear again closes it.
+
+- Gear opens the TV's Settings instead: set `"settings_key_panel": false` in `theme/config.json` and
+ push the theme.
+- Gear stops working after a reinstall: the service was switched off. Run `install.ps1` again, or check
+ it with `tools\venv\Scripts\python.exe -I tools\tv.py "settings get secure enabled_accessibility_services"`
+ (it should list `com.gathin.tvhome/.HomeKeyService`).
+
+## Change the dock order
+
+Edit `theme/config.json`. `dock_apps` lists the dock left to right:
+
+```json
+"dock_apps": [
+ "com.netflix.ninja",
+ "com.google.android.youtube.tv",
+ "com.amazon.amazonvideo.livingroom",
+ "com.disney.disneyplus"
+]
+```
+
+Other packages on this TV: `com.apple.atve.androidtv.appletv` (Apple TV), `com.cbs.ott` (Paramount+),
+`com.tubitv` (Tubi), `com.tcl.tv.plus` (TCLtv+). List everything with
+`tools\venv\Scripts\python.exe -I tools\tv.py "pm list packages -3"`. Then push it, no rebuild:
+
+```powershell
+powershell -ExecutionPolicy Bypass -File tools\theme.ps1 -TvHost 192.168.1.50 examples\tcl-55s470g\theme
+```
+
+## Change the wallpaper
+
+Put a dark 1920×1080 JPEG under about 300 KB at `theme/wallpaper.jpg`, set `"wallpaper": true` in
+`theme/config.json` and push the theme with the command above. Set it back to `false` (or delete the
+file) for the plain black background. `themes/aurora` in the repo is a ready-made example. Other keys
+(columns, background colour, the time-of-day sky) are in [`themes/README.md`](../../themes/README.md).
+
+## Rebuild or reinstall the launcher
+
+Needs JDK 17 (`winget install Microsoft.OpenJDK.17`) and the Android SDK at
+`%LOCALAPPDATA%\Android\Sdk` with `platforms;android-34` and `build-tools;34.0.0`.
+
+```powershell
+powershell -ExecutionPolicy Bypass -File examples\tcl-55s470g\install.ps1 -TvHost 192.168.1.50
+```
+
+## Quirks on this TV
+
+- Nothing came disabled from the factory (on the G10 example's units Samba TV, logkit and ttvs did).
+- `tv.samba.ssm.ui` comes back enabled after every reboot (`enabled=1`, an explicit enable at boot,
+ most likely from `com.tcl.ttvs`, which stays for firmware updates). Everything else in the list
+ stayed disabled across a reboot. The Samba opt-out in the TV's Settings is what actually stops the
+ viewing data, so keep that off.
+- Screenshots of Live TV or an HDMI input come back empty (0 bytes). That is the TV, not a fault.
+- The Wi-Fi network was saved by Android (`android.uid.system`), not the setup wizard, so disabling
+ setupwraith did not drop Wi-Fi. If you reset the TV and set Wi-Fi up again in the wizard, forget and
+ re-join the network in Settings before running `install.ps1` (the script checks this).
+- The remote's Input button opens TCL's own source panel even with the stock launcher disabled, so
+ `InputKeyService` is not needed (checked with the physical remote).
+- The gear button is keycode 83 (`KEYCODE_NOTIFICATION`), scancode 233, from the Bluetooth remote
+ `BT_RC813_MG`. Injected `input keyevent 83` does not reach the accessibility service here; only the
+ physical button proves it works.
diff --git a/examples/tcl-55s470g/debloat.txt b/examples/tcl-55s470g/debloat.txt
new file mode 100644
index 000000000..a67db786c
--- /dev/null
+++ b/examples/tcl-55s470g/debloat.txt
@@ -0,0 +1,63 @@
+# TCL 55S470G (S4 class Google TV, US; device G10, product G10_4K_US_NF, Realtek), 1.8 GB RAM
+# Android 12 (Google TV), firmware STT2.230203.001, incremental AS50 -- same build as tcl-g10-google-tv
+#
+# Apply: TV_HOST=<tv ip> tools/disable.sh examples/tcl-55s470g/debloat.txt
+# Undo: TV_HOST=<tv ip> examples/tcl-55s470g/restore.sh (or tools/restore.sh <this file> com.google.android.apps.tv.launcherx)
+# Everything is DISABLED, not uninstalled. Comment out any line you want to keep.
+#
+# Stock launcher: com.google.android.apps.tv.launcherx. Live TV / HDMI app: com.tcl.tv.
+# Keep: com.tcl.tv, com.tcl.tvinput, com.tcl.dashboard, com.tcl.suspension, com.tcl.autopair,
+# com.tcl.systemserver, com.tcl.providers.config, com.tcl.initsetup, com.tcl.useragreement,
+# com.tcl.factory.view, com.tcl.globalkeyoverlay and all com.realtek.*.
+#
+# Unlike the G10 units in tcl-g10-google-tv, nothing shipped disabled on this one: Samba TV,
+# logkit and ttvs were all enabled. com.tcl.ttvs is KEPT here on purpose: besides Samba ACR and TCL
+# BI analytics it hosts the firmware updater (versionUpdateApp SystemUpdateService) and T-Cast.
+# Disable it only if you don't want TV firmware updates. Opt out in Settings > Privacy > Samba
+# Interactive TV, and untick every entry under Manage providers there too (unticking the main switch
+# leaves those ticked).
+#
+# Kept by choice: Netflix, YouTube, Prime Video, Disney+, Apple TV, Paramount+, Tubi, TCLtv+,
+# TCL Live (com.tcl.channelplus), AirPlay, firmware updates.
+# No separate Miracast package on this firmware.
+
+# Batch 1: tracking and analytics
+tv.samba.ssm.ui # Samba TV ACR front end (the frame service lives in ttvs, see above); re-enabled at every boot while ttvs is enabled, so also opt out in Settings
+com.tcl.logkit # log capture and upload
+com.google.android.feedback
+com.tcl.usercenter # TCL account sign-in nags
+
+# Batch 2: TCL content, ads and promos
+com.tcl.tv.tclhome_passive # pushes TCL content to the home screen at boot
+com.tcl.partnercustomizer # TCL tweaks to Google TV home rows
+com.tcl.interactive # TCL TIAS background service
+com.tcl.smartlink.core # bundles a silent app installer
+com.tcl.messagebox # TCL push messages and promos
+android.autoinstalls.config.google.gtvpai # silently installs partner apps
+
+# Batch 3: retail demo, hotel mode, preloads
+com.tcl.exhibit
+com.tcl.esticker
+com.tcl.hotelmenu
+com.tcl.ocean.instructions # e-manual
+com.tcl.repairguide
+com.tcl.gamebar # re-enable for the console game-mode overlay
+com.tcl.ui_mediaCenter # re-enable to play media from USB drives
+com.tcl.UpdatePeripheral # re-enable to update a TCL soundbar
+com.google.android.marvin.talkback
+com.google.android.play.games
+
+# Batch 4: background services (off by choice: voice, Chromecast)
+com.tcl.guard # TGuard cleaner / app manager
+com.google.android.apps.tv.dreamx # ambient mode screensaver (shows promos); screensaver moved to com.android.dreams.basic
+com.google.android.katniss # Google Assistant voice search
+com.google.android.apps.mediashell # Chromecast built-in
+
+# Batch 5: preloaded apps (off by choice)
+com.google.android.youtube.tvmusic
+com.google.android.videos # Google TV app (purchases/rentals)
+com.tcl.smartalexa # Alexa
+com.google.android.tv.remote.service # Google TV phone-app remote (the physical remote is unaffected)
+
+# Needed for the custom launcher. Disable only AFTER launcher/ is installed (see README Troubleshooting).
+com.google.android.tungsten.setupwraith
diff --git a/examples/tcl-55s470g/install.ps1 b/examples/tcl-55s470g/install.ps1
new file mode 100644
index 000000000..05b7fa781
--- /dev/null
+++ b/examples/tcl-55s470g/install.ps1
@@ -0,0 +1,24 @@
+# Build the launcher and set this TCL 55S470G up the way it was done the first time: disable
+# setupwraith (it claims Home once launcherx is off), build and install the launcher as Home, then push
+# the dock theme in theme\config.json.
+#
+# Usage: powershell -ExecutionPolicy Bypass -File examples\tcl-55s470g\install.ps1 -TvHost 192.168.1.50
+param([string]$TvHost = $env:TV_HOST)
+$ErrorActionPreference = 'Stop'
+$OutputEncoding = New-Object System.Text.UTF8Encoding $false
+if (-not $TvHost) { throw 'pass -TvHost <tv ip> or set $env:TV_HOST' }
+$env:TV_HOST = $TvHost
+$repo = (Resolve-Path "$PSScriptRoot\..\..").Path
+$py = Join-Path $repo 'tools\venv\Scripts\python.exe'
+if (-not $env:JAVA_HOME) {
+ $jdk = Get-ChildItem 'C:\Program Files\Microsoft' -Directory -Filter 'jdk-17*' -ErrorAction SilentlyContinue | Select-Object -First 1
+ if ($jdk) { $env:JAVA_HOME = $jdk.FullName }
+}
+# The saved Wi-Fi must not belong to setupwraith, or disabling it deletes the network (README Troubleshooting).
+$wifi = (& $py -I "$repo\tools\tv.py" 'dumpsys wifi') -join "`n"
+if ($wifi -match 'cname=[^ ]*setupwraith') { throw 'the saved Wi-Fi network belongs to setupwraith: forget it and join it again in Settings > Network & Internet, then run this again' }
+& $py -I "$repo\tools\tv.py" 'pm disable-user --user 0 com.google.android.tungsten.setupwraith'
+# -HomeKeyService: the remote's gear button (keycode 83) opens the quick settings panel, see theme\config.json.
+& "$repo\launcher\build-and-install.ps1" -TvHost $TvHost -HomeKeyService
+if (-not $?) { throw 'launcher install failed' }
+& "$repo\tools\theme.ps1" -TvHost $TvHost "$PSScriptRoot\theme"
diff --git a/examples/tcl-55s470g/install.sh b/examples/tcl-55s470g/install.sh
new file mode 100644
index 000000000..a3117803a
--- /dev/null
+++ b/examples/tcl-55s470g/install.sh
@@ -0,0 +1,21 @@
+#!/usr/bin/env bash
+# Build the launcher and set this TCL 55S470G up the way it was done the first time: disable
+# setupwraith (it claims Home once launcherx is off), build and install the launcher as Home, then push
+# the dock theme in theme/config.json.
+#
+# Usage: TV_HOST=192.168.1.50 examples/tcl-55s470g/install.sh
+set -euo pipefail
+: "${TV_HOST:?set TV_HOST to the TV's IP}"
+cd "$(dirname "$0")/../.."
+PY=tools/venv/bin/python
+[ -x "$PY" ] || PY=tools/venv/Scripts/python.exe
+export MSYS_NO_PATHCONV=1
+# The saved Wi-Fi must not belong to setupwraith, or disabling it deletes the network (README Troubleshooting).
+if "$PY" -I tools/tv.py "dumpsys wifi" | grep -o 'cname=[^ ]*' | grep setupwraith >/dev/null; then
+ echo "the saved Wi-Fi network belongs to setupwraith: forget it and join it again in Settings, then run this again" >&2
+ exit 1
+fi
+"$PY" -I tools/tv.py "pm disable-user --user 0 com.google.android.tungsten.setupwraith"
+# HOME_KEY_SERVICE=1: the remote's gear button (keycode 83) opens the quick settings panel, see theme/config.json.
+HOME_KEY_SERVICE=1 launcher/build-and-install.sh
+tools/theme.sh examples/tcl-55s470g/theme
diff --git a/examples/tcl-55s470g/restore.ps1 b/examples/tcl-55s470g/restore.ps1
new file mode 100644
index 000000000..20e028977
--- /dev/null
+++ b/examples/tcl-55s470g/restore.ps1
@@ -0,0 +1,18 @@
+# Windows version of restore.sh: undo everything done to this TCL 55S470G. Re-enables every package in
+# debloat.txt (setupwraith included), gives Home back to the stock Google TV launcher, puts DNS back to
+# automatic and the ambient-mode screensaver back. The custom launcher stays installed.
+#
+# Usage: powershell -ExecutionPolicy Bypass -File examples\tcl-55s470g\restore.ps1 -TvHost 192.168.1.50
+param([string]$TvHost = $env:TV_HOST)
+$ErrorActionPreference = 'Stop'
+$OutputEncoding = New-Object System.Text.UTF8Encoding $false
+if (-not $TvHost) { throw 'pass -TvHost <tv ip> or set $env:TV_HOST' }
+$env:TV_HOST = $TvHost
+$repo = (Resolve-Path "$PSScriptRoot\..\..").Path
+& "$repo\tools\restore.ps1" -TvHost $TvHost "$PSScriptRoot\debloat.txt" -Stock com.google.android.apps.tv.launcherx
+@(
+ 'settings put global private_dns_mode opportunistic',
+ 'settings delete global private_dns_specifier',
+ 'settings put secure screensaver_components com.google.android.apps.tv.dreamx/.service.Backdrop',
+ 'settings put secure screensaver_default_component com.google.android.apps.tv.dreamx/.service.Backdrop'
+) | & (Join-Path $repo 'tools\venv\Scripts\python.exe') -I "$repo\tools\tv.py" --batch
diff --git a/examples/tcl-55s470g/restore.sh b/examples/tcl-55s470g/restore.sh
new file mode 100644
index 000000000..c7533fde4
--- /dev/null
+++ b/examples/tcl-55s470g/restore.sh
@@ -0,0 +1,18 @@
+#!/usr/bin/env bash
+# Undo everything done to this TCL 55S470G: re-enable every package in debloat.txt (setupwraith
+# included), give Home back to the stock Google TV launcher, and put DNS back to automatic.
+# The custom launcher stays installed; uninstall it with: tools/tv.py pm uninstall com.gathin.tvhome
+#
+# Usage: TV_HOST=<tv ip> examples/tcl-55s470g/restore.sh
+set -euo pipefail
+cd "$(dirname "$0")/../.."
+tools/restore.sh examples/tcl-55s470g/debloat.txt com.google.android.apps.tv.launcherx
+PY=tools/venv/bin/python
+[ -x "$PY" ] || PY=tools/venv/Scripts/python.exe
+export MSYS_NO_PATHCONV=1
+{
+ echo "settings put global private_dns_mode opportunistic"
+ echo "settings delete global private_dns_specifier"
+ echo "settings put secure screensaver_components com.google.android.apps.tv.dreamx/.service.Backdrop"
+ echo "settings put secure screensaver_default_component com.google.android.apps.tv.dreamx/.service.Backdrop"
+} | "$PY" -I tools/tv.py --batch
diff --git a/examples/tcl-55s470g/theme/config.json b/examples/tcl-55s470g/theme/config.json
new file mode 100644
index 000000000..3e3bda05d
--- /dev/null
+++ b/examples/tcl-55s470g/theme/config.json
@@ -0,0 +1,16 @@
+{
+ "dock_apps": [
+ "com.netflix.ninja",
+ "com.google.android.youtube.tv",
+ "com.amazon.amazonvideo.livingroom",
+ "com.disney.disneyplus"
+ ],
+ "hidden_apps": ["com.tcl.tv"],
+ "live_tv_package": "com.tcl.tv",
+ "columns": 4,
+ "rows_below_dock": 0,
+ "background_color": "#000000",
+ "wallpaper": false,
+ "settings_key_keycodes": [83],
+ "settings_key_panel": true
+}