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 C755 (G08, Google TV 14, Australia) example; relay and screenshot tools
Samuel Hintond6803993d8cd
diff --git a/README.md b/README.mdindex 6d01fbc8c..a74ae6c3b 100644--- a/README.md+++ b/README.md@@ -133,6 +133,7 @@ SANYO · Skyworth · Thomson · Toshiba Fire TV · Vu · Stellamore and XGIMI pr| TCL 55" 4K Google TV, 2023 (G10, G10_4K_US_NF) | Google TV 12 || TCL 55Q10G Pro (China, tcl_mt5879_cn, MediaTek MT9952) | Android TV 11 || TCL 65C725 (Smart TV Pro, BeyondTV4) | Android TV 11 |+| TCL C755 QD-Mini LED, 2024, Australia (G08, MediaTek tcl9618) | Google TV 14 || TCL ak30a5 (China, Amlogic) | Android TV 9 || TCL BeyondTV (India) | Android TV 9 || TCL BeyondTV, EU/Nordic (Realtek RTD2851, V8-R851T02-LF1V606) | Android TV 9 |diff --git a/examples/README.md b/examples/README.mdindex c1e920395..c0fcdd2dc 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-beyondtv-rt2851/` | TCL BeyondTV, EU/Nordic (Realtek RTD2851, V8-R851T02-LF1V606) | Android TV 9 | TCL BI analytics, promo rows, cyberui, cleaner and store; mirroring, voice and firmware updater off by choice; Chromecast kept; installer note for appmarket2/tvweishi || `tcl-beyondtv2-latin-america/` | TCL BeyondTV2 (Latin America / Brazil, Realtek RTD2851) | Android TV 9 | TCL analytics and boot content feed; `com.tcl.esticker` does not stay disabled on this firmware; UK Freeview apps already off at the factory || `tcl-qm6k-google-tv/` | TCL QM6K Pro, 2025 (G08, MediaTek tcl9618) | Google TV 14 | Samba TV ACR (ttvs), TCL TV+, TCL Live, store/hotel demo; setupwraith must go for a custom launcher (also AU14, #23) |+| `tcl-c755-google-tv/` | TCL C755 QD-Mini LED, 2024, Australia (G08, MediaTek tcl9618) | Google TV 14 | Samba TV ACR (ttvs), TCL Live, store/hotel demo, Stan; casting and mirroring off by choice; keep `tv.remote.service` (it carries the remote's mic) || `tcl-g05-google-tv/` | TCL Smart TV Pro (G05, G05_4K_US, MediaTek MT5889) | Google TV 11 | TCL Channel, waterfall, ttvs BI, TGuard; Quick Panel off by choice; setupwraith returned after a reboot, launcher half unverified || `thomson-32he5800/` | Thomson 32HE5800 (TCL-built UnionTV, Realtek RT2841), Spain | Android TV 9 | TCL BI analytics, TCL app store/user center, TV Guard cleaner, Google recommendation rows; 1.4 GB low-RAM; voice, USB media players off by choice || `toshiba-fire-tv-aftha004/` | Toshiba Fire TV (AFTHA004, hazel) | Fire OS 7 / Android 9 | Amazon ACR, metrics, shopping, tutorials, Miracast sink; streaming preloads off by choice; debloat only |diff --git a/examples/tcl-c755-google-tv/debloat.txt b/examples/tcl-c755-google-tv/debloat.txtnew file mode 100644index 000000000..e10884936--- /dev/null+++ b/examples/tcl-c755-google-tv/debloat.txt@@ -0,0 +1,86 @@+# TCL 75" C755 QD-Mini LED Google TV, 2024, 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 G08 board as examples/tcl-qm6k-google-tv; that list was the starting point.+#+# Apply: TV_HOST=<tv ip> tools/disable.sh examples/tcl-c755-google-tv/debloat.txt+# Undo: TV_HOST=<tv ip> tools/restore.sh examples/tcl-c755-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.+# 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.globalkeyoverlay, com.tcl.systemui.plugin, com.tcl.factory.view, com.tcl.inputmethod.international+# (the keyboard), com.tcl.eva, com.tcl.hearaid (sound/accessibility + TCL wireless speakers),+# com.tcl.t_solo, tv.mopa.ginga (broadcast middleware) and all com.mediatek.* except AirPlay.+# Firmware updates arrive through Google Play Services (no separate TCL updater on this set).+# Also keep com.google.android.tv.remote.service: despite the name ("phone-app remote") it holds+# AtvSearchAssistantService, which carries the Bluetooth remote's mic button. Disabled, the mic did nothing.+# Keep com.tcl.suspension too: it IS the source panel the remote's Input button opens.+#+# Applied and verified on a real unit on 2026-10-20: Wi-Fi, HDMI switching (Inputs menu), Assistant,+# Disney+/Netflix playback with AdGuard Private DNS, and the launcher's clock screensaver all worked.+#+# Known quirks on this firmware:+# - The remote (BT_RC833_A1) sends KEYCODE_TV_INPUT for Input, and TCL's input policy hands it to+# com.tcl.suspension before accessibility services see it, so INPUT_KEY_SERVICE=1 can't redirect it.+# The Input button keeps opening TCL's source panel; the launcher's Inputs pill opens the glass menu.+# - With com.tcl.interactive disabled, com.tcl.tv logs "tias_sdk getService failure" ~10x/s for a few+# seconds when the TV player starts, then stops. CPU on HDMI measured the same (~23%) with it on or off.+# - Disabling dreamx: set screensaver_components to com.gathin.tvhome/.ClockDream first.++# 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+com.google.android.youtube.tvmusic+au.com.stan.and # Stan++# Off by choice on this unit (casting, mirroring and extras not used here)+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.magiconnectfree # TCL T-Cast / Magiconnect phone 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.tcl.UpdatePeripheral # TCL soundbar firmware updates++# Needed for the custom launcher. Disable only AFTER launcher/ is installed and set as Home:+# with launcherx gone, setupwraith's RecoveryActivity claims HOME at priority 1 (blank screen).+com.google.android.apps.tv.dreamx # ambient screensaver (promos); switch screensaver_components first+com.google.android.tungsten.setupwraith+com.spocky.projengmenu # Projectivy Launcher (user-installed), also claimed HOME on this unit++# Kept on this unit: uncomment if you don't use them+# com.google.android.tv.remote.service # phone-app remote AND the BT remote's mic button (see above)+# com.google.android.katniss # Google Assistant voice (mic button)+# 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/tools/relay.py b/tools/relay.pynew file mode 100644index 000000000..b29d31d20--- /dev/null+++ b/tools/relay.py@@ -0,0 +1,55 @@+#!/usr/bin/env python3+"""Forward 127.0.0.1:<local port> to <tv host>:<tv port>.++For when the process running tv.py is not allowed onto the LAN (macOS Local Network privacy) but a+terminal is: run this in the terminal, then point tv.py at TV_HOST=127.0.0.1 TV_PORT=<local port>.++Usage: relay.py <tv host> [tv port=5555] [local port=15555]+"""+import socket+import sys+import threading++HOST = sys.argv[1]+PORT = int(sys.argv[2]) if len(sys.argv) > 2 else 5555+LOCAL = int(sys.argv[3]) if len(sys.argv) > 3 else 15555+++def pipe(src, dst):+ try:+ while True:+ data = src.recv(65536)+ if not data:+ break+ dst.sendall(data)+ except OSError:+ pass+ finally:+ for s in (src, dst):+ try:+ s.shutdown(socket.SHUT_RDWR)+ except OSError:+ pass+++def main():+ srv = socket.socket()+ srv.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)+ srv.bind(("127.0.0.1", LOCAL))+ srv.listen(8)+ print(f"relay 127.0.0.1:{LOCAL} -> {HOST}:{PORT}", flush=True)+ while True:+ client, _ = srv.accept()+ try:+ tv = socket.create_connection((HOST, PORT), timeout=10)+ tv.settimeout(None)+ except OSError as e:+ print("connect failed:", e, flush=True)+ client.close()+ continue+ for a, b in ((client, tv), (tv, client)):+ threading.Thread(target=pipe, args=(a, b), daemon=True).start()+++if __name__ == "__main__":+ main()diff --git a/tools/shot.py b/tools/shot.pynew file mode 100644index 000000000..d0b5aaf68--- /dev/null+++ b/tools/shot.py@@ -0,0 +1,29 @@+#!/usr/bin/env python3+"""Take a screenshot on the TV and save it locally as PNG (via base64 over the shell, no file pull).++Usage: shot.py <local.png> [keyevent ...] keyevents (e.g. DPAD_DOWN HOME) are sent first, 0.6 s apart.+"""+import base64+import os+import sys+import time++sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))+import tv # noqa: E402++out, keys = sys.argv[1], sys.argv[2:]+dev = tv.connect()+for k in keys:+ if k.startswith("sleep"):+ time.sleep(float(k[5:] or 1))+ continue+ dev.shell(f"input keyevent {k if k.isdigit() else 'KEYCODE_' + k}")+ time.sleep(0.6)+if keys:+ time.sleep(0.8)+b64 = dev.shell("screencap -p /data/local/tmp/s.png && base64 /data/local/tmp/s.png && rm /data/local/tmp/s.png",+ read_timeout_s=120.0, decode=False)+data = base64.b64decode(b"".join(b64.split()))+open(out, "wb").write(data)+print(f"{out}: {len(data)} bytes")+dev.close()