Skip to content

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

examples: add TCL 65QM8L Google TV (G17, MediaTek tcl9655), Android TV 14

quirkylikthata583d891d914
diff --git a/examples/tcl-65qm8l-google-tv/README.md b/examples/tcl-65qm8l-google-tv/README.md
new file mode 100644
index 000000000..0416df303
--- /dev/null
+++ b/examples/tcl-65qm8l-google-tv/README.md
@@ -0,0 +1,101 @@
+# TCL 65" QM8L Google TV (US)
+
+Cleaned up on 26 October 2026, on a real unit in one session. Board **G17** (MediaTek tcl9655), product
+`G17_4K_US`, Android 14, firmware `UTT2.250416.001 AU27`. The same board as the
+[65C8L](../tcl-65c8l-google-tv/) (firmware AU08, Australia); this list is that one without the three packages the
+US build does not have. Replace `<tv ip>` below with your TV's IP.
+
+What changed:
+
+- **24 apps disabled**, none uninstalled, listed with reasons in [debloat.txt](debloat.txt): TCL tracking (Samba TV
+ ACR, BI analytics, logkit), TCL promos / FAST channels and the message hub, the retail and hotel demo, the
+ e-manual and repair guide, the partner-app auto-installers, Google feedback, the soundbar updater, a preloaded
+ "AstroTV" service, Google's promo screensaver (dreamx), the setup wizard (setupwraith) and the stock Google TV
+ home (launcherx).
+- **Google TV home replaced** by the launcher from `launcher/`, with its clock screensaver in place of Google's.
+- **Remote buttons remapped**, since the stock home answered them.
+
+Kept: Assistant, Chromecast, AirPlay, Miracast and every installed streaming app.
+
+Checked afterwards: Live TV starts, the Input button's source panel opens, the four HDMI inputs work, YouTube
+streams with AdGuard Private DNS, the TV starts on Home at power-on, and the remapped buttons work on the real
+remote. All 24 packages stayed disabled after a reboot; nothing re-enabled.
+
+Take a full backup (package lists, settings, `getprop`) into the gitignored `backup/` folder before any change.
+
+## Connecting to the TV
+
+This set offers only **Wireless debugging** (Settings > System > Developer options), and its connect port changes
+after each reboot. Pair with the on-screen code, connect, then run the tools through that connection (Windows, with
+Google's platform-tools; see [tools/native-adb.md](../../tools/native-adb.md)):
+
+```
+adb pair <tv ip>:<pairing-port> <code>
+adb connect <tv ip>:<connect-port>
+set TV_ADB_BINARY=adb (PowerShell: $env:TV_ADB_BINARY = 'adb')
+set TV_HOST=<tv ip>:<connect-port>
+```
+
+If the scripts report `device '<ip>:<port>' not found`, run `adb connect <tv ip>:<connect-port>` once more: the
+device can be registered only under its `adb-...._adb-tls-connect._tcp` name. Each `tools/*.sh` script has a
+PowerShell twin that takes `-TvHost <tv ip>:<connect-port>`.
+
+## Forget and re-join Wi-Fi first
+
+`dumpsys wifi` shows the saved network owned by setupwraith (`cname=...setupwraith`). Disabling setupwraith would
+delete it and drop Wi-Fi and ADB. On the TV, **forget the network and join it again** in Settings > Network &
+Internet; ownership moves to `com.android.tv.settings`. Wireless debugging goes off when Wi-Fi drops and comes back
+on a new port, so reconnect afterwards.
+
+## Apply the list and install the launcher
+
+Apply in small batches, with a screenshot between them (`tools/tv.py --screenshot shots/01.png HOME`):
+
+1. Disable everything above the "Launcher handover" block with `tools/disable.sh` (or `disable.ps1`).
+2. Set the clock screensaver, then run the full list again so setupwraith and dreamx go:
+ `tools/tv.py 'settings put secure screensaver_components com.gathin.tvhome/.ClockDream'`.
+3. Build and install the launcher. It disables launcherx once it owns Home:
+ `launcher/build-and-install.sh` (or `.ps1`).
+4. Push this folder's [config.json](config.json): `tools/theme.sh examples/tcl-65qm8l-google-tv`.
+5. For the remapped buttons and power-on Home, install with both helpers:
+ `INPUT_KEY_SERVICE=1 HOME_KEY_SERVICE=1 RESTORE_KEY_SERVICES=1 launcher/build-and-install.sh`
+ (`-InputKeyService -HomeKeyService -RestoreKeyServices` on Windows), then push the config again.
+
+## Remote buttons
+
+On this remote the Settings, TV-guide and app-shortcut buttons send distinct keycodes, mapped in
+[config.json](config.json) `app_keys`: Settings 83, TV guide 4001 (Live TV), Netflix 4062, Prime Video 4099,
+YouTube 190. These worked on the real remote. **Trade-off:** the key helper stops hold-to-ramp volume (one step per
+press). It is all-or-nothing: leave the helper off to keep it, at the cost of the remapped buttons.
+
+## HDMI input names
+
+Custom names such as "Cable" or "Blu-ray" are stored in one setting, as `<input id>,<name>` pairs joined by `:`:
+
+```
+tools/tv.py 'settings get secure tv_input_custom_labels'
+```
+
+Edit the name of the pair whose id ends in the port's `HW` number (HDMI 1 is `HW15`, 2 `HW16`, 3 `HW17`, 4 `HW18`)
+and put the whole string back with `settings put secure tv_input_custom_labels '<value>'`. Don't turn on the
+launcher's `inputs_connected_only` here: all four ports report as disconnected, so it hides every input.
+
+## Re-enable one app
+
+On the TV: **Settings > Apps > See all apps > Show system apps**, pick the app, choose **Enable**. Or
+`tools/tv.py 'pm enable <package>'`, then put a `#` in front of its line in `debloat.txt`.
+
+## Undo everything
+
+```
+TV_HOST=<tv ip> tools/restore.sh examples/tcl-65qm8l-google-tv/debloat.txt com.google.android.apps.tv.launcherx
+TV_HOST=<tv ip> tools/tv.py 'settings delete secure screensaver_components'
+```
+
+Private DNS to an ad-blocking resolver works on this TV (it does not block YouTube ads); undo with
+`settings put global private_dns_mode opportunistic`.
+
+## When you're done
+
+Turn off Wireless and USB debugging and **Revoke USB debugging authorisations** in Developer options, restart the
+TV, then check the port is closed ("Connection refused" means it worked): `tools/adb-closed.py <tv ip>`.
diff --git a/examples/tcl-65qm8l-google-tv/config.json b/examples/tcl-65qm8l-google-tv/config.json
new file mode 100644
index 000000000..12835ffa6
--- /dev/null
+++ b/examples/tcl-65qm8l-google-tv/config.json
@@ -0,0 +1,15 @@
+{
+ "dock_apps": ["com.netflix.ninja", "com.hulu.livingroomplus", "com.wbd.stream", "com.apple.atve.androidtv.appletv"],
+ "columns": 4,
+ "live_tv_package": "com.tcl.tv",
+ "hidden_apps": [],
+ "power_on_home": true,
+ "restore_key_services": true,
+ "app_keys": [
+ "83:com.android.tv.settings",
+ "4001:com.tcl.tv",
+ "4062:com.netflix.ninja",
+ "4099:com.amazon.amazonvideo.livingroom",
+ "190:com.google.android.youtube.tv"
+ ]
+}
diff --git a/examples/tcl-65qm8l-google-tv/debloat.txt b/examples/tcl-65qm8l-google-tv/debloat.txt
new file mode 100644
index 000000000..43e342c7e
--- /dev/null
+++ b/examples/tcl-65qm8l-google-tv/debloat.txt
@@ -0,0 +1,76 @@
+# TCL 65QM8L Google TV, 2025, US (device G17, model "Smart TV Pro", MediaTek tcl9655)
+# Android 14 (Google TV), firmware UTT2.250416.001 AU27, product G17_4K_US.
+# Same G17 board as examples/tcl-65c8l-google-tv (firmware AU08, Australia). This list is that one minus three
+# packages the US build does not have (com.tcl.waterfall.overseas, com.tcl.guard, com.tcl.magiconnectfree), each
+# checked against this unit with pm list packages. Everything is DISABLED, not uninstalled.
+#
+# Apply: TV_HOST=<tv ip> tools/disable.sh examples/tcl-65qm8l-google-tv/debloat.txt
+# Undo: TV_HOST=<tv ip> tools/restore.sh examples/tcl-65qm8l-google-tv/debloat.txt com.google.android.apps.tv.launcherx
+# Comment out any line you want to keep.
+#
+# ADB: this set offers only Wireless debugging (no plain 5555). Pair with a code, then connect; the connect port
+# changes after every reboot or Wi-Fi drop. Windows: `adb connect <tv ip>:<port>` first, then TV_HOST=<tv ip>:<port>
+# with TV_ADB_BINARY set to adb.exe (tools/native-adb.md), so no `adb tcpip 5555` is needed.
+# Stock launcher: com.google.android.apps.tv.launcherx. Live TV / tuner / HDMI app: com.tcl.tv.
+# Left alone as load-bearing or unclear: com.tcl.tv / com.tcl.tvinput (Live TV + tuner/HDMI),
+# com.tcl.suspension (Input source panel), com.tcl.initsetup (holds the tuner channel-install service),
+# com.tcl.globalkeyoverlay (remote keys), com.tcl.systemserver, com.tcl.webview (a WebView provider),
+# com.tcl.hearaid (audio), com.tcl.t_solo, com.tcl.useragreement, com.tcl.factory.view (factory - never touch).
+# Kept by this owner: Assistant, Chromecast, AirPlay, Miracast and every installed streaming app. The tiles of
+# com.tcl.tv.plus, com.tcl.browser, com.tcl.ui_mediaCenter, com.tcl.suspension, com.tcl.t_solo and Play Games
+# are hidden in the launcher (hidden_apps), not disabled.
+#
+# Tested 2026-10-26 on a real unit in one session, applied in batches with screenshots between them: Home, the
+# Input source panel, Live TV, the four HDMI inputs, YouTube with AdGuard Private DNS and the remapped remote
+# buttons all kept working. All 24 packages stayed disabled after a reboot; nothing re-enables at boot.
+#
+# Known quirks on this firmware:
+# - The saved Wi-Fi network belonged to setupwraith (dumpsys wifi: cname=...setupwraith). Forget the network and
+# join it again in Settings (owner moves to com.android.tv.settings) BEFORE setupwraith is disabled, or the TV
+# drops off Wi-Fi and ADB. tools/disable.sh skips setupwraith until then.
+# - With launcherx gone, the Settings, TV-guide and app-shortcut buttons go dead. They are remapped in this
+# folder's config.json app_keys by Android keycode: Settings 83, TV guide 4001, Netflix 4062, Prime Video 4099,
+# YouTube 190 (all confirmed on the real remote). This needs INPUT_KEY_SERVICE=1, and on this board the
+# key-filter service stops continuous volume-repeat (hold-to-ramp becomes one step per press): a trade, not a
+# fault. power_on_home in config.json needs HOME_KEY_SERVICE=1 as well.
+# - Custom HDMI input names (e.g. "Cable" on HDMI 3) live in `settings get secure tv_input_custom_labels`, as
+# `<input id>,<name>` pairs joined by `:`. The launcher's `inputs_connected_only` hides every port here, because
+# all four report cable_connection_status=0 even with a CEC device plugged in; leave it off.
+
+# TCL telemetry and analytics
+com.tcl.ttvs # Samba TV ACR viewing tracking, TCL BI analytics
+com.tcl.logkit # log capture and upload
+com.tcl.usercenter # TCL account sign-in nags
+
+# TCL content, ads and promos
+com.tcl.channelplus # TCL Live FAST channels
+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.messagebox # TCL push messages and promos
+com.tcl.dashboard # TCL message/notification promo hub (MessageExtService + DismissService)
+com.mirakulo.astrotv.service # preloaded "AstroTV" content service
+
+# Retail demo / hotel mode
+com.tcl.exhibit # retail demo
+com.tcl.esticker # retail e-sticker overlay
+com.tcl.hotelmenu # hotel mode menu
+
+# Preloaded apps and services
+com.tcl.ocean.instructions # e-manual
+com.tcl.repairguide # repair guide
+com.tcl.smartlink.core # TCL CustomInstallService (silent partner-app installer)
+android.autoinstalls.config.google.gtvpai # silently installs partner apps
+com.google.android.partnersetup # partner attribution
+com.google.android.feedback # Google feedback uploader
+com.android.tv.feedbackconsent # feedback consent prompt
+com.tcl.UpdatePeripheral # TCL soundbar/speaker firmware updates (no TCL audio gear here)
+
+# Launcher handover. Disable these only AFTER launcher/ is installed and set as Home.
+# setupwraith: forget and re-join the Wi-Fi network first (see header), or the TV drops off Wi-Fi.
+# dreamx: set screensaver_components to com.gathin.tvhome/.ClockDream first.
+# launcherx: with it gone, setupwraith's RecoveryActivity claims HOME; launcher/build-and-install.sh
+# disables launcherx with its start-first ordering and will skip it until the new launcher owns Home.
+com.google.android.tungsten.setupwraith
+com.google.android.apps.tv.dreamx
+com.google.android.apps.tv.launcherx
diff --git a/examples/tcl-65qm8l-google-tv/tv.json b/examples/tcl-65qm8l-google-tv/tv.json
new file mode 100644
index 000000000..9b3351c01
--- /dev/null
+++ b/examples/tcl-65qm8l-google-tv/tv.json
@@ -0,0 +1,6 @@
+{
+ "tv": "TCL 65QM8L (Smart TV Pro, G17, G17_4K_US, MediaTek tcl9655), 2025, US",
+ "os": "Google TV 14",
+ "brand": "TCL",
+ "notes": "G17 board on US firmware UTT2.250416.001 AU27, the [65C8L](tcl-65c8l-google-tv/) list minus three packages the US build lacks (24 disabled, all survived a reboot); Samba TV ACR, TCL promos/FAST channels and the message hub, store/hotel demo, partner auto-installs, soundbar updater, a preloaded AstroTV service; Assistant, Chromecast, AirPlay, Miracast and streaming apps kept; Wireless debugging only; setupwraith owned the Wi-Fi network, re-join before disabling it; Settings/TV-guide/Netflix/Prime/YouTube buttons remapped by keycode in config.json, and the key helper costs continuous volume-repeat; HDMI input names are in `tv_input_custom_labels`; AdGuard Private DNS works; single-session test"
+}