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
Add TCL 65C7L Google TV (G08, Android 14, Australia)
imsopova87bb569dcaf
diff --git a/README.md b/README.mdindex e90b28262..38023e26a 100644--- a/README.md+++ b/README.md@@ -260,6 +260,7 @@ Anker Nebula, BYINTEK, Epson, Gadnic, JMGO, Portronics, Stellamore, Wanbo and XG| TCL 55S470G (G10, G10_4K_US_NF, Realtek), US | Google TV 12 || TCL 65C725 (Smart TV Pro, BeyondTV4) | Android TV 11 || TCL 65C735 (Smart TV Pro, G05, MediaTek), France | Google TV 11 |+| TCL 65C7L (Smart TV Pro, G08, G08_4K_GB, MediaTek tcl9618), 2025, Australia | Google TV 14 || TCL 65C7K (Smart TV Pro, G08, G08_4K_GB, MediaTek mt5896), Brazil | Google TV 14 || TCL 65Q550G (TCL Smart TV, Google TV 11, V8-R51MT08-LF1V095.021344) | Google TV || TCL 85RM7L (G08, G08_4K_GB, MediaTek tcl9618) | Google TV 14 |diff --git a/examples/README.md b/examples/README.mdindex 1fd77920d..daabb8a21 100644--- a/examples/README.md+++ b/examples/README.md@@ -155,6 +155,7 @@ on that firmware, grouped and commented. These are starting points: comment out| `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 (keycode 83) opens the quick settings panel and the app buttons are remapped (Pluto TV opens Tubi); `APP_AUTO_START` must be allowed for the launcher or TclAppBoot stops the key service at boot; reboot-checked || `tcl-65c725/` | TCL 65C725 (Smart TV Pro, BeyondTV4) | Android TV 11 | TCL analytics/promos, Google recommendation rows; voice off, OTA off by choice || `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-65c7l-google-tv/` | TCL 65C7L (Smart TV Pro, G08, G08_4K_GB, MediaTek tcl9618), 2025, Australia | Google TV 14 | Same build as the C755 list (UTT2.250416.001 AU02); Samba TV ACR, TCL Live, promos, store/hotel demo, Alexa, Stan, T-Cast, soundbar updater; Chromecast, AirPlay, Miracast, Assistant, game bar and USB media kept; setupwraith owned the Wi-Fi network, re-join before disabling it; every remote button still worked with launcherx off; 27 packages survived a reboot || `tcl-65c7k-google-tv/` | TCL 65C7K (Smart TV Pro, G08, G08_4K_GB, MediaTek mt5896), Brazil | Google TV 14 | Same build as the C755 list (UTT2.250416.001); Samba TV ACR, TCL Live, promos, store/hotel demo, Alexa, partner auto-installs; Assistant, USB media, Claro TV+, Mercado Play off by choice; Chromecast, AirPlay, game bar, soundbar updater and dreamx kept; keep `tv.mopa.ginga` for TV aberta; Wireless debugging needs Wi-Fi (pair, then `adb tcpip 5555`); setupwraith owned the Wi-Fi network, re-join before disabling it || `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 |diff --git a/examples/tcl-65c7l-google-tv/README.md b/examples/tcl-65c7l-google-tv/README.mdnew file mode 100644index 000000000..ac2031305--- /dev/null+++ b/examples/tcl-65c7l-google-tv/README.md@@ -0,0 +1,155 @@+# TCL 65" C7L Google TV++Cleaned up on 22 October 2026. Board G08 (MediaTek tcl9618), Android 14, firmware UTT2.250416.001 AU02,+2.4 GB RAM. Replace 192.168.1.50 below with your TV's IP address.++What changed:++- **27 apps disabled**, none uninstalled. They are listed with reasons in [debloat.txt](debloat.txt):+ TCL tracking (Samba TV, TCL analytics, logs), TCL promos and FAST channels, the retail demo, Alexa,+ TCL's "cleaner", the partner-app auto-installer, Stan, T-Cast and the TCL soundbar updater.+- **Google TV home replaced** by the clean launcher from `launcher/`: a dock of Plex, Netflix,+ YouTube and Prime Video, the other apps in a grid below, and pills for Inputs, Wi-Fi and Settings.+ Its clock screensaver replaces Google's promo screensaver.+- **Ad-blocking DNS**: Private DNS is set to `dns.adguard-dns.com`. It blocks ads and trackers in many+ apps, but **not YouTube ads**.++Checked on the TV afterwards: all four HDMI inputs are still registered, Live TV starts, the Input button's+source panel opens, every remote button works (gear, app buttons, Input, mic), YouTube loads over the+ad-blocking DNS, Play Store updates install, and Chromecast is still advertised on the network. AirPlay,+Miracast and the game bar were kept enabled but not tested. Nothing came back on after a reboot.++Take a full backup before any change (package lists, settings, getprop) into the gitignored+`backup/` folder; on this unit nothing was disabled beforehand.++## Connecting to the TV++Every script below needs network debugging on the TV:+**Settings > System > Developer options > Wireless debugging** on. If the TV shows+"Allow USB debugging?", tick "Always allow" and accept it.++Turn it off again when you're done, as in [When you're done](#when-youre-done).++The commands below run from the repo folder in PowerShell. In each one, `tools\venv\Scripts\python.exe -I tools\tv.py`+sends one command to the TV:++```powershell+$env:TV_HOST = '192.168.1.50'+```++## Re-enable one app++On the TV: **Settings > Apps > See all apps > Show system apps**, pick the app and choose **Enable**.++Or from the PC, for example to bring back Stan:++```powershell+tools\venv\Scripts\python.exe -I tools\tv.py 'pm enable au.com.stan.and'+```++Then put a `#` in front of its line in `debloat.txt`, so it stays on if the list is applied again.++Leave `com.google.android.tungsten.setupwraith` and `com.google.android.apps.tv.launcherx` alone while the new+launcher is Home. Either one can take Home back. Use the full restore below instead.++## Change the dock order++Quickest: on the TV, **hold OK on the Settings pill** and choose **reorder**.++To keep the change through a reinstall, edit `dock_apps` in [config.json](config.json). The apps go into the dock+left to right, and `columns` (4 to 7) sets how many fit:++```json+"dock_apps": ["com.plexapp.android", "com.netflix.ninja", "com.google.android.youtube.tv", "com.amazon.amazonvideo.livingroom"],+```++Then push it to the TV. No rebuild is needed:++```powershell+tools\theme.ps1 -TvHost 192.168.1.50 examples\tcl-65c7l-google-tv+```++Package names of the installed apps:++| App | Package |+|---|---|+| Plex | `com.plexapp.android` |+| Netflix | `com.netflix.ninja` |+| YouTube | `com.google.android.youtube.tv` |+| Prime Video | `com.amazon.amazonvideo.livingroom` |+| Disney+ | `com.disney.disneyplus` |+| ABC iview | `au.net.abc.iview` |+| SBS On Demand | `com.sbs.ondemand.tv` |+| 7plus | `com.swm.live` |+| 9Now | `au.com.ninenow.ctv` |+| 10 | `au.com.tenplay` |+| Kodi | `org.xbmc.kodi` |+| YouTube Music | `com.google.android.youtube.tvmusic` |+| Live TV | `com.tcl.tv` |++## Change the wallpaper++1. Put a picture named `wallpaper.jpg` in this folder. Use 1920×1080, because the TV draws its interface at 1080p.+2. Add `"wallpaper": true,` to [config.json](config.json). Optionally add `"wallpaper_dim": 30` to darken it so tile names stay readable.+3. Push it with the same `tools\theme.ps1` command as above.++For a rotating set, look at `themes/scenes`, or try a ready-made look with `tools\theme.ps1 -TvHost 192.168.1.50 themes\aurora`.+Run `tools\theme.ps1 -TvHost 192.168.1.50 -Reset` to go back to plain black. Every key is described in `themes/README.md`.++## Rebuild or reinstall the launcher++```powershell+examples\tcl-65c7l-google-tv\install.ps1 -TvHost 192.168.1.50+```++This builds the launcher, installs it, makes it Home, pushes `config.json` and sets the clock screensaver.+It's safe to run again at any time. The build needs JDK 17 (`JAVA_HOME`, or a `jdk-17` folder in+`%USERPROFILE%\.jdks`) and Android SDK 34 in `%LOCALAPPDATA%\Android\Sdk`.++After a factory reset, run the steps in this order:++1. Run `tools\disable.ps1 -TvHost 192.168.1.50 examples\tcl-65c7l-google-tv\debloat.txt`. It holds back the+ stock home and the setup wizard until it's safe to disable them.+2. If it says the Wi-Fi network belongs to setupwraith, forget the network and join it again in Settings.+3. Run `install.ps1`.+4. Run `disable.ps1` again.++## After a firmware update++TCL updates can turn apps back on or give Home back to Google TV. To see what changed:++```powershell+tools\venv\Scripts\python.exe -I tools\check.py examples\tcl-65c7l-google-tv\debloat.txt com.gathin.tvhome+```++Add `--fix` after `check.py` to re-disable whatever came back and put the launcher back on Home.++## Undo everything++```powershell+examples\tcl-65c7l-google-tv\restore.ps1 -TvHost 192.168.1.50+```++This turns every disabled app back on, makes the Google TV home Home again, and restores Google's+screensaver and automatic DNS. Add `-UninstallLauncher` to also remove the new launcher.++To undo only the ad-blocking DNS, either switch **Settings > Network & Internet > Private DNS** to+Automatic, or run:++```powershell+tools\venv\Scripts\python.exe -I tools\tv.py 'settings put global private_dns_mode opportunistic'+```++## When you're done++Network debugging lets anyone on your network who is accepted at the prompt control the TV. Port 5555+is unencrypted. Close it when you're done:++1. **Developer options**: switch off Wireless debugging and USB debugging, and choose+ **Revoke USB debugging authorisations**.+2. Restart the TV.+3. Check that the port is closed. "Connection refused" means it worked:++```powershell+tools\venv\Scripts\python.exe -I tools\adb-closed.py 192.168.1.50+```diff --git a/examples/tcl-65c7l-google-tv/config.json b/examples/tcl-65c7l-google-tv/config.jsonnew file mode 100644index 000000000..0f3ecb21a--- /dev/null+++ b/examples/tcl-65c7l-google-tv/config.json@@ -0,0 +1,6 @@+{+ "dock_apps": ["com.plexapp.android", "com.netflix.ninja", "com.google.android.youtube.tv", "com.amazon.amazonvideo.livingroom"],+ "columns": 4,+ "live_tv_package": "com.tcl.tv",+ "hidden_apps": []+}diff --git a/examples/tcl-65c7l-google-tv/debloat.txt b/examples/tcl-65c7l-google-tv/debloat.txtnew file mode 100644index 000000000..9bdab6469--- /dev/null+++ b/examples/tcl-65c7l-google-tv/debloat.txt@@ -0,0 +1,82 @@+# TCL 65" C7L Google TV, 2025, Australia (device G08, model "Smart TV Pro", MediaTek tcl9618 / mt5896)+# Android 14 (Google TV), firmware UTT2.250416.001 AU02, product G08_4K_GB. About 2.4 GB RAM.+# Same board and firmware build as examples/tcl-c755-google-tv; that list was the starting point, and its+# Keep list holds here unchanged.+#+# Apply: TV_HOST=<tv ip> tools/disable.sh examples/tcl-65c7l-google-tv/debloat.txt+# Undo: TV_HOST=<tv ip> tools/restore.sh examples/tcl-65c7l-google-tv/debloat.txt com.google.android.apps.tv.launcherx+# Everything is DISABLED, not uninstalled. Comment out any line you want to keep.+#+# ADB: Developer options > Wireless debugging was enough; port 5555 answered too, without pairing.+# Stock launcher: com.google.android.apps.tv.launcherx. Live TV / HDMI app: com.tcl.tv.+# Left alone: com.tpa.kb (system uid, no running services, purpose unclear) and com.tvos (framework res).+# Kept on purpose by this owner: Chromecast, AirPlay, Miracast, Google Assistant (katniss and+# com.google.android.tv.remote.service, which carries the mic button), the game bar, the USB media+# player and gallery, Netflix, Prime Video, YouTube and YouTube Music.+#+# Tested 2026-10-22 on a real unit, applied in six batches with screenshots between them: Home, the Input+# button's source panel (com.tcl.suspension), Live TV (com.tcl.tv/com.tcl.player.TVActivity), all four+# HDMI inputs in tv_input, YouTube with AdGuard Private DNS, Play Store app updates and every remote button+# (gear, app buttons, Input, mic) kept working with launcherx disabled, so no key helper was enabled. All+# 27 packages stayed disabled after a reboot; nothing is re-enabled at boot on this firmware.+#+# Known quirks on this firmware:+# - The saved Wi-Fi network belonged to setupwraith (dumpsys wifi: cname=...setupwraith). Forget it and+# join it again in Settings before setupwraith is disabled, or the TV drops off Wi-Fi.++# TCL tracking and analytics+com.tcl.ttvs # Samba TV ACR viewing tracking, TCL "BI" analytics, Alexa core, T-Cast+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.waterfall.overseas # TCL movie/show recommendation browser++# Retail demo / hotel mode+com.tcl.exhibit+com.tcl.esticker+com.tcl.hotelmenu++# Preloaded apps and services+com.tcl.ocean.instructions # e-manual+com.tcl.repairguide+com.tcl.smartalexa # Alexa+com.tcl.guard # TCL "cleaner" / app manager+android.autoinstalls.config.google.gtvpai # silently installs partner apps+com.google.android.partnersetup # partner attribution+com.google.android.feedback+com.android.tv.feedbackconsent+com.google.android.play.games++# Off by choice on this unit+com.tcl.magiconnectfree # TCL T-Cast phone app (needs com.tcl.ttvs anyway)+au.com.stan.and # Stan+com.tcl.UpdatePeripheral # TCL soundbar/speaker firmware updates (no TCL audio gear here)++# Needed for the custom launcher. Disable only AFTER launcher/ is installed and set as Home:+# with launcherx gone, setupwraith's RecoveryActivity claims HOME (blank screen).+com.google.android.tungsten.setupwraith+com.google.android.apps.tv.launcherx+com.google.android.apps.tv.dreamx # ambient screensaver (promos); switch screensaver_components first++# Kept on this unit: uncomment if you don't use them+# com.google.android.apps.mediashell # Chromecast+# com.tcl.airplay2 # AirPlay, together with the next two lines+# com.mediatek.AirplayAPK+# com.mediatek.airplaydaemon+# com.tcl.miracast # Miracast screen mirroring+# com.tcl.gamebar # game mode / VRR overlay for consoles+# com.tcl.ui_mediaCenter # USB media player+# com.tcl.gallery # USB photo gallery + TCL screensaver+# com.google.android.katniss # Google Assistant voice (mic button)+# com.google.android.tv.remote.service # phone-app remote AND the BT remote's mic button+# com.google.android.youtube.tvmusic+# com.netflix.ninja # Netflix, together with the next line+# com.netflix.tokenmanager+# com.amazon.amazonvideo.livingroom # Prime Video+# com.google.android.youtube.tvdiff --git a/examples/tcl-65c7l-google-tv/install.ps1 b/examples/tcl-65c7l-google-tv/install.ps1new file mode 100644index 000000000..ee879e3d8--- /dev/null+++ b/examples/tcl-65c7l-google-tv/install.ps1@@ -0,0 +1,30 @@+# Build the launcher, install it on this TCL 65" C7L as Home, and push this folder's config.json+# (dock order, columns, Live TV app). Run it again after editing config.json or pulling a new+# launcher version; it is safe to repeat.+#+# Usage: examples\tcl-65c7l-google-tv\install.ps1 -TvHost 192.168.1.50+# Needs JDK 17 (JAVA_HOME, or a jdk-17* folder in %USERPROFILE%\.jdks) and Android SDK 34+# (%LOCALAPPDATA%\Android\Sdk), network ADB on the TV and tools\venv.+#+# On a TV that was reset or restored, apply the list first (it holds back setupwraith and+# launcherx until it is safe), then this script, then the list once more:+# tools\disable.ps1 -TvHost <ip> examples\tcl-65c7l-google-tv\debloat.txt+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 (Join-Path $PSScriptRoot '..\..')+if (-not $env:JAVA_HOME) {+ $jdk = Get-ChildItem "$env:USERPROFILE\.jdks" -Directory -Filter 'jdk-17*' -ErrorAction SilentlyContinue | Select-Object -First 1+ if ($jdk) { $env:JAVA_HOME = $jdk.FullName }+}++# No -InputKeyService / -HomeKeyService: every remote button still worked with launcherx disabled+# (checked 2026-10-22), and leaving the key helpers off keeps volume hold-to-repeat untouched.+& (Join-Path $repo 'launcher\build-and-install.ps1') -TvHost $TvHost+& (Join-Path $repo 'tools\theme.ps1') -TvHost $TvHost $PSScriptRoot++# The launcher's drifting clock instead of Google's promo screensaver (dreamx is in the list).+$py = Join-Path $repo 'tools\venv\Scripts\python.exe'+& $py -I (Join-Path $repo 'tools\tv.py') 'settings put secure screensaver_components com.gathin.tvhome/.ClockDream'diff --git a/examples/tcl-65c7l-google-tv/restore.ps1 b/examples/tcl-65c7l-google-tv/restore.ps1new file mode 100644index 000000000..c6ccd45ba--- /dev/null+++ b/examples/tcl-65c7l-google-tv/restore.ps1@@ -0,0 +1,37 @@+# Put this TCL 65" C7L back the way it was before the cleanup on 2026-10-22: every package in+# debloat.txt enabled again, the Google TV home (launcherx) back as Home, the promo screensaver and+# automatic DNS back. Nothing was disabled before the cleanup (pm list packages -d was empty), so+# enabling the whole list is the exact undo.+#+# Usage: examples\tcl-65c7l-google-tv\restore.ps1 -TvHost 192.168.1.50 [-UninstallLauncher]+# -UninstallLauncher also removes the new launcher (com.gathin.tvhome) from the TV.+# Needs network ADB on the TV (Developer options > Wireless debugging) and tools\venv.+param(+ [string]$TvHost = $env:TV_HOST,+ [switch]$UninstallLauncher+)+$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 (Join-Path $PSScriptRoot '..\..')+$py = Join-Path $repo 'tools\venv\Scripts\python.exe'+$tv = Join-Path $repo 'tools\tv.py'++# Packages and Home. setupwraith comes back with the list; the Wi-Fi network now belongs to+# Settings, so re-enabling it does not touch the connection.+& (Join-Path $repo 'tools\restore.ps1') -TvHost $TvHost (Join-Path $PSScriptRoot 'debloat.txt') -Stock com.google.android.apps.tv.launcherx++# Settings changed outside the list. Before the cleanup screensaver_components was unset (the+# Google ambient screensaver) and Private DNS was on its default, automatic.+@(+ 'settings delete secure screensaver_components',+ 'settings put global private_dns_mode opportunistic',+ 'settings delete global private_dns_specifier'+) | & $py -I $tv --batch++if ($UninstallLauncher) {+ & $py -I $tv 'pm uninstall com.gathin.tvhome'+}+& $py -I $tv 'input keyevent HOME'+Write-Host 'Restored. Press Home on the remote: the Google TV home should come up.'