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
examples: add TCL 55Q7D Pro (G08_4K_GB, EU), Google TV 14
Lennart Abeln8724ef6d8017
diff --git a/examples/tcl-55q7d-pro-google-tv/README.md b/examples/tcl-55q7d-pro-google-tv/README.mdnew file mode 100644index 000000000..f0ee2118c--- /dev/null+++ b/examples/tcl-55q7d-pro-google-tv/README.md@@ -0,0 +1,62 @@+# TCL 55Q7D Pro (G08, G08_4K_GB), Google TV 14, EU build++55" Q7D Pro, model string "Smart TV Pro": product `G08_4K_GB`, client type `TCL-EU-MT9653-S1`, firmware+`UTT2.250416.001 AU02`, board G08 / MediaTek `tcl9618`, remote `BT_RC833A_B5` (Bluetooth). The same board as+the US `G08_4K_US` list and the C755 / QM6K / 85RM7L Google TV lists, on the EU build, which ships+fewer preloads than the US one.++`debloat.txt` is the list: 33 packages, disabled with `tools/disable.sh` in batches, reboot-checked. Undo:++```bash+TV_HOST=<tv ip> tools/restore.sh examples/tcl-55q7d-pro-google-tv/debloat.txt com.google.android.apps.tv.launcherx+```++## Remote buttons++Measured on this set with `getevent` and `logcat`, then pressed on the real remote. `BT_RC833A_B5` reports+every key with scancode 240 and `KEY_UNKNOWN` at the input-device level; the keycode comes from+`TclKeyLayoutMap` in `logcat`.++| Button | Android keycode | Handled by |+| --- | --- | --- |+| D-pad, OK, Back, Home, volume, power | — | the firmware |+| Netflix | 4062 | `app_keys`, or Netflix's own receiver starts it |+| Prime Video | 4099 | `app_keys` |+| Disney+ | 4141 | TCL starts Disney+ itself |+| TCL Channels | 4020 | `app_keys` |+| YouTube | 190 (`BUTTON_3`, a global key) | `app_keys` via `InputKeyService` |+| TV icon | 4001 | `app_keys` via `InputKeyService`, see below |+| Settings (gear) | 83 (`NOTIFICATION`) | `settings_key_keycodes` |+| Input / Source | — | the firmware; `com.tcl.interactive` disabled does not break it on this build |++4062, 4099, 4141 and 4020 reach the focused window, so the launcher can map them without any helper. 190 and+4001 are consumed before that, which is what `InputKeyService` (`INPUT_KEY_SERVICE=1`) is for.++### The TV icon button does nothing++TCL's own `TclShortCutKeyManager` inside `system_server` takes keycode 4001 in `interceptKeyBeforeDispatching`:+`logcat` shows `handle custom key in press down:4001`, `start PackageName:null`, a `startForegroundService`+warning from `handleKeyBehavior`, then `not continue dispatch`. Nothing is launched and no window sees the key,+so neither `VIEW_INPUTS` nor `com.tcl.tv` starts.++The Live TV app itself is fine — `am start -n com.tcl.tv/com.tcl.player.TVActivity` shows it, and the input is+`com.tcl.channelplus/com.tcl.iptv.service.InputService`. With `key_filter` on (the default) the accessibility+helper still receives 4001 before the policy eats it, so this entry in the theme's `config.json` brings the+button back, from any app:++```json+"app_keys": ["4001:com.tcl.tv/com.tcl.player.TVActivity"]+```++`app_keys` is read from a theme pushed with `tools/theme.sh` or from+`launcher/app/src/main/res/values/config.xml` when the launcher is built. `docs/TROUBLESHOOTING.md` has the+same fix beside the other remote-button entries.++## What was changed on this set++- Launcher `com.gathin.tvhome` (Clean Your TV) as Home, stock `com.google.android.apps.tv.launcherx` disabled.+- Theme `config.json`: black background, four apps per row, four dock tiles, Live TV = `com.tcl.tv`.+- The 33 packages in `debloat.txt`, with `com.tcl.ttvs` kept as the firmware updater, plus the Assistant,+ Cast, TTS, AirPlay/Miracast, the Play Store and the streaming apps.+- Held volume steps once per press instead of ramping while `InputKeyService` is bound; that is the cost of+ the YouTube and TV-icon buttons on this firmware.diff --git a/examples/tcl-55q7d-pro-google-tv/debloat.txt b/examples/tcl-55q7d-pro-google-tv/debloat.txtnew file mode 100644index 000000000..c36aed638--- /dev/null+++ b/examples/tcl-55q7d-pro-google-tv/debloat.txt@@ -0,0 +1,77 @@+# TCL 55Q7D Pro (model "Smart TV Pro", device G08, product G08_4K_GB, client type TCL-EU-MT9653-S1,+# MediaTek tcl9618), EU Google TV build (SKU eu): Android 14 (Google TV), firmware UTT2.250416.001 AU02.+# Remote BT_RC833A_B5 (Bluetooth).+# Same G08 board as examples/tcl-g08-us-google-tv (US, AU16) and the C755 / QM6K / 85RM7L Google TV lists;+# this list started from the US one and keeps only what this build ships.+#+# Tested 5 November 2026 on one set. 33 packages in all: 18 were already off from an earlier session, the+# other 15 went with tools/disable.sh in four batches, a screenshot between batches, and then a reboot; all+# 33 were still disabled afterwards. Home, Live TV, the input list, Play Store and the streaming apps still+# worked. That is one evening of use, not weeks.+#+# Apply: TV_HOST=<tv ip> tools/disable.sh examples/tcl-55q7d-pro-google-tv/debloat.txt+# Undo: TV_HOST=<tv ip> tools/restore.sh examples/tcl-55q7d-pro-google-tv/debloat.txt 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, and its "Live TV"+# input is com.tcl.channelplus/com.tcl.iptv.service.InputService.+# Left enabled on purpose: com.tcl.tv, com.tcl.tvinput, com.tcl.channelplus, com.tcl.suspension (the input+# list), com.tcl.autopair, com.tcl.systemserver, com.tcl.providers.config, com.tcl.initsetup,+# com.tcl.useragreement, com.tcl.globalkeyoverlay, com.tcl.systemui.plugin, com.tcl.factory.view,+# com.tcl.gamebar, com.tcl.ttvs (also TCL's firmware OTA updater on this build), com.google.android.katniss+# (voice), com.google.android.mediashell (Cast), Google TTS, AirPlay/Miracast, the Play Store, Play Services+# and every streaming app.+#+# com.tcl.interactive is disabled here and the remote's Source key still opens the input list — the older+# Android 12 EU build (examples/tcl-g08-eu-android12) loses that key without it, so do not carry this line to+# that list. On this build com.tcl.tv then logs a Tbrowser getService NullPointerException while Live TV runs;+# Live TV, the guide-less channel list and the input list were used for one evening without a visible loss,+# so uncomment the line if TCL's channel browser matters to you.+#+# The TV icon button (keycode 4001) is swallowed by TCL's own shortcut manager on this firmware; see+# docs/TROUBLESHOOTING.md for the app_keys entry that brings it back.++# TCL pushes, account, retail and hotel demo+com.tcl.dashboard # TCL Home panel and its promotions+com.tcl.messagebox # TCL pushed messages and promos+com.tcl.esticker # retail-demo sticker+com.tcl.exhibit # store demo mode+com.tcl.tv.tclhome_passive # TCL content pushed to the home screen at boot+com.tcl.ocean.instructions # on-TV manual and tips overlay+com.tcl.repairguide # TCL self-diagnosis app+com.tcl.usercenter # TCL account sign-in+com.tcl.waterfall.overseas # TCL movie/show recommendation browser+com.tcl.partnercustomizer # TCL regional preload customiser++# Telemetry, diagnostics and unused TCL extras+com.tcl.logkit # log capture service+com.tcl.guard # TCL "cleaner" / app manager, retried by the system when it is on+com.tcl.hearaid # hearing test / accessibility helper, unused+com.tcl.eva # TCL voice layer; Katniss handles the Assistant+com.tcl.t_solo # Bluetooth "listen alone" speaker mode, unused+com.tcl.interactive # TCL source/HbbTV overlay; the Source key still works without it here+com.tcl.UpdatePeripheral # peripheral firmware helper (remote/dongles), not the TV OTA++# Android 14 ad, privacy and on-device learning services+com.android.adservices.api+com.android.ondevicepersonalization.services+com.android.federatedcompute.services++# Google extras this set does not need+com.google.android.play.games+com.google.android.partnersetup+com.google.android.feedback+com.android.tv.feedbackconsent+android.autoinstalls.config.google.gtvpai+com.google.android.onetimeinitializer # first boot only, long done+com.google.android.syncadapters.calendar # no Google calendar on this TV+com.google.android.apps.tv.dreamx # photo screensaver++# Duplicate webviews (com.google.android.webview is the active one) and printing+com.tcl.android.webview+com.mediatek.support.webview+com.android.printspooler++# Replaced or superseded by the custom launcher. Uncomment launcherx to get Google TV's Home back.+com.google.android.apps.tv.launcherx+com.google.android.tungsten.setupwraith # setup wizard; its RecoveryActivity takes Home when launcherx is offdiff --git a/examples/tcl-55q7d-pro-google-tv/tv.json b/examples/tcl-55q7d-pro-google-tv/tv.jsonnew file mode 100644index 000000000..f3e4d8b8c--- /dev/null+++ b/examples/tcl-55q7d-pro-google-tv/tv.json@@ -0,0 +1,6 @@+{+ "tv": "TCL 55Q7D Pro (Smart TV Pro, G08, G08_4K_GB, MediaTek tcl9618), EU Google TV build",+ "os": "Google TV 14",+ "brand": "TCL",+ "notes": "EU build of the G08 (UTT2.250416.001 AU02): TCL pushes, account and retail demo, telemetry, the Android 14 ad and privacy services, duplicate webviews and Play Games; `com.tcl.interactive` disabled and the Source key still opens the input list, unlike the Android 12 EU list; `com.tcl.ttvs` kept as the firmware updater; one evening of use, reboot-checked"+}