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: TCL Q7C (G08_4K_GB, Google TV 14), debloat list and launcher
jhoerbstae33bb53dc5e
diff --git a/README.md b/README.mdindex afe18950c..44f82691d 100644--- a/README.md+++ b/README.md@@ -234,6 +234,7 @@ BYINTEK, JMGO, Portronics, Stellamore, Wanbo and XGIMI projectors| TCL 65C735 (Smart TV Pro, G05, MediaTek), France | Google TV 11 || TCL 85RM7L (G08, G08_4K_GB, MediaTek tcl9618) | Google TV 14 || TCL 75T7 (Smart TV Pro, G08, G08_4K_US, MediaTek tcl9618), US firmware | Google TV 14 |+| TCL Q7C (Smart TV Pro, G08, G08_4K_GB, MediaTek tcl9618), European firmware | Google TV 14 || TCL ak30a5 (China, Amlogic) | Android TV 9 || TCL BeyondTV (India) | Android TV 9 || TCL BeyondTV, Poland (Realtek RTD2851, AP03, 2 GB) | Android TV 9 |diff --git a/examples/README.md b/examples/README.mdindex 82d19b3bd..c200fd4f9 100644--- a/examples/README.md+++ b/examples/README.md@@ -128,6 +128,7 @@ on that firmware, grouped and commented. These are starting points: comment out| `tcl-65c735/` | TCL 65C735 (Smart TV Pro, G05, MediaTek), France | Google TV 11 | TCL analytics, TGuard, promo dashboard and content feed, unused preloads; voice and AirPlay off by choice, Chromecast and Miracast kept; launcherx + setupwraith off (survived reboot); remote app buttons need launcherx (keycodes noted); USB port goes to gadget mode after a reboot with USB debugging on || `tcl-85rm7l-google-tv/` | TCL 85RM7L (G08, G08_4K_GB, MediaTek tcl9618) | Google TV 14 | Same firmware build as the C755 list (UTT2.250416.001 AU02); Samba TV ACR and T-Cast share ttvs, so T-Cast goes with it; TCL Live, promos, store demo, Alexa, partner auto-installs; Chromecast, AirPlay, Miracast, game bar, USB media and Assistant kept; firmware updates come from Play Services; debloat only, stock launcher and setupwraith kept; dreamx off with the basic Colors screensaver; reboot-checked || `tcl-g08-us-google-tv/` | TCL 75T7 (Smart TV Pro, G08, G08_4K_US, MediaTek tcl9618), US firmware | Google TV 14 | Same G08 board as the C755/QM6K/85RM7L lists, US build AU16: TCL TV+, messages, e-sticker, dashboard and home pushes, store/hotel/exhibit demo, log capture, Android 14 ad and privacy services, manual/repair/hearing/solo apps, TCL account, browser, Channel+, Alexa and AirPlay, US streaming preloads; ttvs, partnercustomizer, Chromecast and the USB player kept; launcherx and setupwraith off for a custom launcher; one day of use, first 35 reboot-checked |+| `tcl-q7c-google-tv/` | TCL Q7C (Smart TV Pro, G08, G08_4K_GB, MediaTek tcl9618), European firmware | Google TV 14 | Same build as the 85RM7L list (AU02), with the launcher: TCL promos, home pushes, Channel+/waterfall, account, TGuard cleaner, log capture, Android 14 ad and privacy services, manual/repair/hearing/solo apps, soundbar updater, Alexa; Assistant, AirPlay, Miracast/T-Cast, Netflix, Prime Video, Google TV and Play Games off by choice; ttvs, Chromecast, game bar and dreamx kept; launcherx and setupwraith off (Ethernet, FORCE_SETUPWRAITH=1); every remote button is scancode 240, keycodes in the README (Settings 83, YouTube 190); the debugging switch did not close port 5555, check adb_enabled; reboot-checked || `tcl-ak30a5/` | TCL ak30a5 (China, Amlogic) | Android TV 9 | No Google services, TCL boot ad + analytics, no TvInputManager, installs via USB only; debloat only, third-party launchers cannot be installed on this firmware || `tcl-beyondtv/` | TCL BeyondTV (India) | Android TV 9 | TCL analytics, content feed, TCL app store, Google recommendation rows; Jio/Airtel/Hotstar apps untouched || `tcl-beyondtv-pl/` | TCL BeyondTV, Poland (Realtek RTD2851, AP03, 2 GB) | Android TV 9 | TCL BI analytics, promo rows, cyberui, TV Guard and app store, preloads; voice, Miracast/T-Cast, YouTube, player.pl, Spotify and Steam Link off by choice; Chromecast and firmware updater kept; `com.tcl.notereminder` is re-enabled at every boot; launcher installed as default home, stock launcher disabled; one session plus a reboot, not yet lived with for days |diff --git a/examples/tcl-q7c-google-tv/README.md b/examples/tcl-q7c-google-tv/README.mdnew file mode 100644index 000000000..75d3b0bb0--- /dev/null+++ b/examples/tcl-q7c-google-tv/README.md@@ -0,0 +1,83 @@+# TCL Q7C (G08, Google TV, Android 14), European firmware++TCL Q7C QD-Mini LED, device `G08`, model "Smart TV Pro", product `G08_4K_GB`, firmware `UTT2.250416.001 AU02`,+MediaTek `tcl9618`, about 2.4 GB RAM. The same firmware build as the 85RM7L list and the same G08 board as the+C755, QM6K and 75T7 (US) lists. Set up on Ethernet in Austria. Both halves work on this set: the debloat list and the+Clean Your TV launcher as Home.++| File | What it is |+|---|---|+| `debloat.txt` | The 37 packages that were disabled, grouped and commented |+| `config.json` | Dock, hidden TCL tiles, Live TV app, the Settings and YouTube buttons; push it with `tools/theme.sh` |++**How much testing is behind it:** one set, from 21 October 2026. The first 35 packages were disabled in five batches+and survived a reboot. launcherx and setupwraith were disabled afterwards, for the new launcher. YouTube, Live TV,+the HDMI list in the Inputs menu, the Input, Settings and YouTube buttons, and D-pad navigation were checked on the+TV.++All commands run from the repo root with the TV's IP in `TV_HOST`. USB debugging must be on while you run them.+On this set, switching it on opens port 5555 by itself. Wireless debugging cannot be switched on over Ethernet,+and it is not needed.++## Install++The order matters: setupwraith goes while Google TV's home still owns Home, then `build-and-install.sh` starts the+new launcher and only then disables launcherx. `disable.sh` skips launcherx on the first run (its Home guard), which+is what you want here.++```bash+FORCE_SETUPWRAITH=1 TV_HOST=<tv-ip> tools/disable.sh examples/tcl-q7c-google-tv/debloat.txt+INPUT_KEY_SERVICE=1 HOME_KEY_SERVICE=1 TV_HOST=<tv-ip> launcher/build-and-install.sh+TV_HOST=<tv-ip> tools/theme.sh examples/tcl-q7c-google-tv+```++`FORCE_SETUPWRAITH=1` is only for a set on Ethernet with no saved Wi-Fi: there `dumpsys wifi` shows no network+owner, and `disable.sh` then plays safe and skips setupwraith. On Wi-Fi, run+`tools/tv.py "dumpsys wifi | grep -o 'cname=[^ ]*'"` first. If the network belongs to setupwraith, forget it and+join it again in Settings before you disable the wizard.++`build-and-install.sh` needs JDK 17 for Gradle 8.9. On a Mac where `java_home -v 17` answers with a newer JDK, pass+`JAVA_HOME` explicitly.++## Undo everything++```bash+TV_HOST=<tv-ip> tools/restore.sh examples/tcl-q7c-google-tv/debloat.txt com.google.android.apps.tv.launcherx+```++## Remote buttons++Every button on this remote arrives as scancode 240 (`KEY_UNKNOWN`). TCL's `TclKeyLayoutMap` tells them apart by HID+usage and turns them into keycodes, so map them by keycode (scancode entries would all collide). Found with+`logcat -v time` while pressing the real buttons: look for `InputReader ... TIDD: keyCode=`.++| Button | Keycode | Without Google TV's home | Here |+|---|---|---|---|+| Home | 3 | works | |+| Input | 178 (`KEYCODE_TV_INPUT`) | works: TCL draws its own source panel (`com.tcl.suspension`) | |+| Settings (gear) | 83 (`KEYCODE_NOTIFICATION`) | does nothing (it was launcherx's dashboard) | `settings_key_keycodes: [83]`, `HOME_KEY_SERVICE=1` |+| YouTube | 190 (`KEYCODE_BUTTON_3`) | does nothing | `app_keys: 190:com.google.android.youtube.tv`, `INPUT_KEY_SERVICE=1` |+| Netflix | 4062 | does nothing | left unmapped (Netflix is off) |+| Prime Video | 4099 | does nothing | left unmapped |+| TCL Channel | 4020 | does nothing | left unmapped |+| (app button) | 4057 | does nothing | left unmapped |+| (app button) | 4141 | does nothing | left unmapped |+| Mic | 84 (`KEYCODE_SEARCH`) | with katniss off, opens the Play Store search | |++The YouTube button sends 190 here. The G09 list maps 4065 for its YouTube button, so check yours. Re-pass both+`*_KEY_SERVICE=1` flags on every reinstall: a reinstall drops the services from the accessibility list.++## Notes for this set++- **Check that ADB is really closed when you are done.** Here the USB debugging switch in Developer options+ did not take: `settings get global adb_enabled` still said `1`, and port 5555 was still open after a reboot.+ `tools/tv.py 'settings put global adb_enabled 0'` closed it. The connection drops mid-command, so a non-zero exit is+ expected. Then revoke the authorisations on the TV, reboot, and check with `tools/adb-closed.py <tv-ip>`+ ("Connection refused").+- The UI runs at a 1920×1080 override on the 3840×2160 panel, at 60 Hz: the only display mode Android+ offers. This is the stock setting, not something the launcher changed.+- The Inputs menu lists the HDMI-CEC device names (here "Soundbar · HDMI 1", "PC · HDMI 2") from the TV input+ framework, plus Live TV (`com.tcl.tv`).+- Screenshots of Live TV and HDMI come back empty (0 bytes). `dumpsys activity activities | grep topResumedActivity`+ shows `com.tcl.tv/com.tcl.player.TVActivity`.+- Ambient mode (`dreamx`) was left enabled. Whether its screensaver still works with launcherx off was not checked.diff --git a/examples/tcl-q7c-google-tv/config.json b/examples/tcl-q7c-google-tv/config.jsonnew file mode 100644index 000000000..8bc0b3bdd--- /dev/null+++ b/examples/tcl-q7c-google-tv/config.json@@ -0,0 +1,23 @@+{+ "dock_apps": [+ "com.google.android.youtube.tv",+ "com.nousguide.android.orftvthek",+ "com.zappntv",+ "org.jellyfin.androidtv"+ ],+ "hidden_apps": [+ "com.tcl.dashboard",+ "com.tcl.partnercustomizer",+ "com.tcl.suspension",+ "com.tcl.gallery"+ ],+ "live_tv_package": "com.tcl.tv",+ "app_labels": [+ "com.tcl.tv=Live TV",+ "com.nousguide.android.orftvthek=ORF ON"+ ],+ "settings_key_keycodes": [83],+ "app_keys": [+ "190:com.google.android.youtube.tv"+ ]+}diff --git a/examples/tcl-q7c-google-tv/debloat.txt b/examples/tcl-q7c-google-tv/debloat.txtnew file mode 100644index 000000000..a027b808c--- /dev/null+++ b/examples/tcl-q7c-google-tv/debloat.txt@@ -0,0 +1,81 @@+# TCL Q7C QD-Mini LED, Europe (device G08, model "Smart TV Pro", product G08_4K_GB, MediaTek tcl9618)+# Google TV, Android 14 (SDK 34), firmware UTT2.250416.001 AU02 - the same build as examples/tcl-85rm7l-google-tv.+# About 2.4 GB RAM. Set up on Ethernet in Austria (German/Austrian apps: ORF ON, Joyn, ServusTV, ZDF).+# This list goes further than the 85RM7L one: launcherx and setupwraith are off for the Clean Your TV launcher,+# and voice, AirPlay, mirroring and several streaming apps are off by the owner's choice.+#+# Tested on one set from 21 October 2026. Disabled by hand with `pm disable-user --user 0`, one call each, in five+# batches with a screenshot after each. The first 35 survived a reboot, none came back (three self-installed+# apps disabled alongside them are not listed here). launcherx and setupwraith were disabled afterwards, once the+# new launcher was installed. YouTube, Live TV and the HDMI input list checked.+#+# Apply: FORCE_SETUPWRAITH=1 TV_HOST=<tv ip> tools/disable.sh examples/tcl-q7c-google-tv/debloat.txt+# FORCE_SETUPWRAITH=1 only on Ethernet with no saved Wi-Fi: disable.sh otherwise skips setupwraith because+# it cannot see a Wi-Fi owner. On Wi-Fi, check `dumpsys wifi | grep cname` first (README).+# launcherx is skipped by disable.sh's Home guard until the new launcher is Home; see README for the order.+# Undo: TV_HOST=<tv ip> tools/restore.sh examples/tcl-q7c-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 (com.tcl.player.TVActivity).+# Left enabled on purpose: com.tcl.tv, com.tcl.tvinput, com.tcl.suspension (input menu; the Input key opens it),+# com.tcl.autopair (remote pairing), com.tcl.inputmethod.international (the default keyboard), com.tcl.systemserver,+# com.tcl.providers.config, com.tcl.initsetup, com.tcl.useragreement, com.tcl.globalkeyoverlay,+# com.tcl.systemui.plugin, com.tcl.gamebar, com.tcl.dashboard, com.google.android.apps.mediashell (Chromecast),+# com.google.android.tv.remote.service, com.google.android.apps.tv.dreamx, Play Store and Play Services, all+# com.mediatek.* and com.dolby.* except AirPlay.+# Not touched because what they do is unclear: com.tcl.ttvs (TCL analytics and Samba TV ACR; on some TCL sets also+# the updater), com.tcl.eva (boot service with camera and TCL BI permissions), com.tvos, com.tpa.kb,+# tv.mopa.ginga (broadcast interactive-TV middleware), com.tcl.gallery (also TCL's screensavers),+# com.tcl.partnercustomizer, com.tcl.interactive. Never launch com.tcl.factory.view.+# None of the listed packages requests TV_INPUT_HARDWARE.++# TCL promo, push messages, content rows and store demo+com.tcl.messagebox # TCL pushed messages and promos+com.tcl.esticker # retail-demo sticker+com.tcl.exhibit # store demo+com.tcl.tv.tclhome_passive # TCL content pushed to the home screen at boot+com.tcl.waterfall.overseas # TCL Channel / content waterfall (movie detail pages, web)+com.tcl.channelplus # TCL Live FAST channels (a Live TV input)+com.tcl.usercenter # TCL account+com.tcl.guard # TCL "app manager" / cleaner, device-use service at boot++# Telemetry, diagnostics and Android 14 ad / privacy services+com.tcl.logkit # log capture+com.google.android.feedback+com.android.tv.feedbackconsent+com.android.adservices.api # Privacy Sandbox+com.android.ondevicepersonalization.services+com.android.federatedcompute.services++# Extras nobody asked for+com.tcl.ocean.instructions # on-TV manual+com.tcl.repairguide # self-diagnosis+com.android.printspooler+com.google.android.syncadapters.calendar+com.google.android.onetimeinitializer+com.tcl.hearaid # hearing test, TCL wireless speakers+com.tcl.t_solo # Bluetooth "listen alone"+com.tcl.UpdatePeripheral # TCL soundbar firmware updater+com.tcl.smartalexa # Alexa+com.tcl.ui_mediaCenter # USB / DLNA media player, off by choice (nothing on USB)++# Off by choice: voice, AirPlay, mirroring (with katniss off, the remote's mic button opens the Play Store search)+com.google.android.katniss # Google Assistant / voice search+com.tcl.airplay2+com.mediatek.AirplayAPK+com.mediatek.airplaydaemon+com.tcl.miracast+com.tcl.magiconnectfree # T-Cast / MagiConnect++# Streaming preloads, off by choice (apps the owner installed and removed are left out of this list)+com.netflix.ninja+com.netflix.tokenmanager+com.amazon.amazonvideo.livingroom # Prime Video+com.google.android.videos # Google TV / Play Movies storefront+com.google.android.play.games++# Stock launcher, off once the new launcher is Home+com.google.android.apps.tv.launcherx++# Second Home claimant: off once the new launcher is Home (this set is on Ethernet, so no saved Wi-Fi to lose)+com.google.android.tungsten.setupwraith