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
Merge PR #1503: examples: add tcl-65q7c (google tv, android 14)
Gathin2316b67e75ff1f
diff --cc examples/tcl-q7c-google-tv/README.mdindex c2c5df721,d027c4ba7..d07cbc5bc--- a/examples/tcl-q7c-google-tv/README.md+++ b/examples/tcl-q7c-google-tv/README.md@@@ -386,157 -383,45 +386,200 @@@ was added to `debloat.txt` beyond a hea- **Checked with the real remote:** Home, the app buttons, Input, Settings and holding volume all worked with thenew launcher and no key helpers enabled.-## Fifth unit: 65Q7C (Wi-Fi)+## Additional G08 AU02 unit: native shortcuts and held-volume repeat++One `Smart TV Pro`, device `G08`, product `G08_4K_GB`, Android TV 14 (SDK 34), build+`tcl9618-user 14 UTT2.250416.001 AU02 release-keys`. The retail model was not confirmed. The owner tested+launcher 2.7 from macOS on 2026-10-23; [issue #1292](https://github.com/Gathin23/cleanyourtv/issues/1292)+records the result.++With `com.google.android.apps.tv.launcherx` disabled, the real remote's Netflix (`4062`), Prime Video (`4099`)+and YouTube (`190`) buttons stopped opening their apps. Disney+ and Globoplay buttons still worked.+Enabling `HomeKeyService` with key filtering restored the failed shortcuts, but holding volume then moved+it one step per press, as in [the G09 key-repeat note](../../docs/devices/tcl-55p71b-g09-key-repeat.md).++### Working alternative: Google TV handles the app buttons++Keeping launcherx enabled and redirecting its Home windows let the owner keep those shortcuts and held-volume+repeat together. The two settings for this mode were:++```json+{+ "key_filter": false,+ "stock_home_redirect": "com.google.android.apps.tv.launcherx"+}+```++- Leave `com.google.android.apps.tv.launcherx` enabled, unlike the standard install above. Google TV's native+ receiver handles the app buttons; `app_keys` in a key-filtering helper is not what restores them here.+- Enable only `com.gathin.tvhome/.HomeKeyService`, with `InputKeyService` off. The Home helper observes window+ changes without filtering keys. Android still resolves Google TV as Home; the helper opens Clean Your TV.+- Allow `AUTO_START` for `com.gathin.tvhome` and persist it with `appops write-settings`, as in+ [TclAppBoot after a reboot](#tclappboot-after-a-reboot).+- On this unit setupwraith stayed disabled after the owner forgot and rejoined Wi-Fi in Settings. The saved+ network then belonged to `com.android.tv.settings`; this differs from the third unit, which kept the wizard.++### Verification and limits++The owner pressed Home, Netflix, Prime Video and YouTube on the physical remote: Home returned to Clean Your TV,+the three apps opened, and held volume changed continuously.++After a reboot, before injecting navigation keys, the focused app was `com.gathin.tvhome/.MainActivity`.+`dumpsys accessibility` showed only `HomeKeyService` bound, with `TYPE_WINDOW_STATE_CHANGED`, and no+`KeyboardInterceptor`. The helper also remained bound after a later `tools/theme.sh` push.++Keeping Google TV enabled retains its process and can briefly show the stock Home during startup before the+redirect. This is a compatibility alternative to disabling launcherx. The owner later chose direct Home with+launcherx disabled, accepting the lost shortcuts.++One unit, one firmware and one setup session, including a checked reboot of the redirect configuration.+This does not establish long-term stability or validate the folder's full debloat list. No packages were added+to `debloat.txt` for this report.+## Fifth unit: G08 EU/UK, OTA from Android 12+TCL Smart TV Pro, product `G08_4K_GB`, firmware `UTT2.250416.001 AU02`, EU/UK unit on Ethernet with a custom+launcher (launcherx and setupwraith off). This set is the source of the groups marked "fifth unit" in+`debloat.txt`; it OTA'd from Android 12 (the Android 12 list of this exact set, PR #657) to Android 14 on+21 October 2026, and its Android 12 debloat entries were audited against the OTA.+- **OTA survival:** no disabled package came back from the update. The OTA newly installed `com.tcl.channelplus`+ (in the list) — re-run `tools/disable.sh` after every update, it will pick up the new packages on the list.+- `com.iplayer.android.webview` from the Android 12 firmware is gone from this build.+- **Source key / QuickPanel:** the remote Source key is keycode 178 (`KEYCODE_TV_INPUT`). With launcherx gone,+ `com.tcl.suspension` draws the source QuickPanel itself (`input keyevent 178` → `QuickPanelDialog` in logcat,+ confirmed with the real remote). The DO-NOT-DISABLE set for this: `com.tcl.autopair`, `com.tcl.suspension`,+ `com.tcl.interactive`, `com.tcl.ttvs` — disabling them shows the known ~10 Hz NPE storm in logcat.+- **`com.tcl.ttvs` is not analytics-only:** on a related AU04 G08 unit, `dumpsys package com.tcl.ttvs` lists+ firmware-update components (`versionUpdateApp` `SystemUpdateActivity`, `NetworkUpdateActivity`,+ `SystemUpdateReceiver`, package `10.60.15_422bf21_260617_overseaTV`) — check the package before treating it+ as telemetry. (Report from PR #1085's unit; left enabled there.)+- **Kept enabled:** the TCL keyboard `com.tcl.inputmethod.international` and `com.tcl.browser` — the browser is+ what the remote's Web key opens on this firmware. Verified on the set: boot, Live TV/HDMI playback, the Source+ key panel, streaming preloads and the Google stack.+- **Never list** `com.google.android.modulemetadata` and the `com.google.android.overlay.modules.*` overlays+ (permissioncontroller, modulemetadata-forframework): `tools/disable.sh` refuses a list that names them+ (brick class, #884). The Android 12 EU list named them before the tool gate existed; they are excluded here.++## Sixth unit: 55C69K (Europe, Wi-Fi)++One owner's session on 2026-10-26, following [`PROMPT.md`](../../PROMPT.md) on Windows 11 with Claude Code and the+repo's PowerShell tools (`tools/disable.ps1`, `launcher/build-and-install.ps1`; no platform-tools `adb`). Same pair as+this folder, so `debloat.txt` here is the list to run; this section records the deltas.++| Field | Observed value |+|---|---|+| Retail model | `55C69K`, supplied by the owner; not exposed by `ro.product.model` (`Smart TV Pro`) |+| `ro.product.name` / `ro.product.device` | `G08_4K_GB` / `G08` |+| Android / SDK | `14` / `34`, Google TV |+| `ro.build.fingerprint` | `TCL/G08_4K_GB/G08:14/UTT2.250416.001/AU02:user/release-keys` |+| `ro.software.version_id` | `V8-T653T01-LF1V643` |+| Security patch | `2025-12-05` |+| `ro.hardware` / `ro.board.platform` | `mt5896` / `merak` |+| `ro.boot.client_type` | `TCL-EU-MT9653-S1` |+| `ro.adb.secure` | `1` |++### Connecting and closing++- **Port 5555 opened directly** with USB debugging and Network debugging on, unlike the Wireless-debugging-only+ 65Q7D Pro and 65T8C. It came back by itself after both reboots done with debugging on.+- **Closing worked from the switches:** Network debugging and USB debugging off, authorisations revoked, reboot;+ `tools/adb-closed.py` then answered `Connection refused`. The `adb_enabled` problem in the Q7C notes did not show.+- **Windows, antivirus with HTTPS scanning (Avast):** `sdkmanager` and Gradle failed with `PKIX path building+ failed`, because the scanner re-signs TLS with a root that Windows trusts and Java does not. Passing+ `-Djavax.net.ssl.trustStoreType=Windows-ROOT` in `SDKMANAGER_OPTS` and `GRADLE_OPTS` fixed both. The same option+ in `JAVA_TOOL_OPTIONS` stops `launcher/build-and-install.ps1`: Java prints a notice on stderr, which the script's+ `$ErrorActionPreference = 'Stop'` treats as a failure.+- **Windows PowerShell 5.1** drops the inner double quotes of a `tools/tv.py "... grep -E '...'"` argument; piping+ the commands into `tools/tv.py --batch` keeps them intact.++### setupwraith and the saved Wi-Fi++The network in use belonged to `android.uid.system`. One older saved network, not in range and not in use, belonged+to `com.google.android.tungsten.setupwraith`. With the owner's agreement it was removed with+`tools/tv.py 'cmd wifi forget-network <id>'` (ids from `cmd wifi list-networks`), as the US G08 third unit did;+`tools/disable.ps1` then disabled the wizard without `FORCE_SETUPWRAITH`, and Wi-Fi and ADB stayed up.++### The list as applied++41 packages in five batches with `tools/disable.ps1` and a screenshot after each, then setupwraith, then launcherx+through `launcher/build-and-install.ps1`: 43 in all.+After three reboots `pm list packages -d` still listed all 43; the firmware re-enabled nothing. Compared with this folder's list:++| Q7C entry or group | Here |+|---|---|+| `com.tcl.tv.tclhome_passive`, `com.google.android.onetimeinitializer`, `com.tcl.UpdatePeripheral` | Kept (not tried) |+| `com.google.android.katniss` | Kept: the owner uses Google Assistant |+| (kept on the Q7C) `com.tcl.dashboard` | Disabled; no problem noticed in one day with the new launcher as Home |+| (kept on the Q7C) `com.google.android.apps.mediashell`, `com.tcl.gamebar` | Disabled by choice |+| ("not touched" on the Q7C) `com.tcl.eva`, `com.tcl.gallery` | Disabled; `eva` as TCL's voice layer (the EU and AU G08 lists disable it too; voice search was not tested afterwards), `gallery` by choice (nothing on USB) |+| (fifth-unit groups) `com.tcl.android.webview`, `com.mediatek.support.webview`, `com.mediatek.network`, `com.mediatek.backgrounddetection` | Disabled here too; `dumpsys webviewupdate` named `com.google.android.webview` as the active provider first |+| (not in the list) `com.google.android.youtube.tvmusic` | Disabled by choice |++Left alone, as on the Q7C: `com.tcl.tv`, `com.tcl.tvinput`, `com.tcl.suspension`, `com.tcl.interactive`,+`com.tcl.ttvs`, `com.tcl.autopair`, the TCL keyboard, `com.tvos`, `com.tpa.kb` and the firmware updater.+`com.tcl.factory.view` was not opened.++### Remote buttons without a key helper++No key helper was installed. On the real remote, Home, Input (TCL's source panel) and YouTube worked with launcherx+off; the gear did nothing. The gear's keycode 83 reaches the focused window here (`logcat`:+`InputDispatcher: TIDD: publishKeyEvent(... com.gathin.tvhome/...MainActivity ..., keyCode=83)`), so+`settings_key_keycodes` `[83]` in `config.xml` answers it while Home is in front **without `HomeKeyService`**,+and the owner confirmed it opens Settings. Inside an app the button still goes to that app. With no helper bound,+a held Volume + moves one step and then repeats slowly (`repeatCount=1` after about 400 ms in `logcat`): that is+this firmware's own volume handling, not the helper trade described in the G09 note.++### Other checks++- Power-on lands on the new launcher (`wm_set_resumed_activity`: `FallbackHome`, then `com.gathin.tvhome`); the+ firmware does not open Live TV by itself, so neither `power_on_home` nor `boot_to_live_tv` is needed.+- The Inputs menu listed HDMI 1 to 4 and Live TV; HDMI 1 opened `com.tcl.tv/com.tcl.player.TVActivity`.+- Private DNS (`dns.adguard-dns.com`) validated, and YouTube loaded its feed through it.++### Test limits++- One set, one day, three reboots. Nothing here has been lived with for several days, so `debloat.txt` only gains a+ header line naming this unit.+- Nothing was connected to the HDMI inputs; the tuner, channel scanning and Live TV playback were not tested.+- Casting and mirroring were turned off by choice, so they were not tested after the list.++++## Seventh unit: 65Q7C (Wi-Fi)++ Applied on 2026-10-24. Same build as the Q7C above: `ro.product.model` `Smart TV Pro`, Android 14 (SDK 34), `tcl9618-user 14 UTT2.250416.001 AU02 release-keys`. 21 packages were disabled by hand with `adb shell pm disable-user --user 0`++ The Clean Your TV launcher was not installed, so launcherx & setupwraith are untouched++ ### Notes for this unit+-- **`com.tpa.kb` is not a keyboard**. It is a preinstalled system app (`/product/app/Tpakb`) & is absent from `ime list -a`. Its exact purpose is unconfirmed - do not confused it with the actual input methods listed below++- **`com.tpa.kb` is not a keyboard**. It is a preinstalled system app (`/product/app/Tpakb`) & is absent from `ime list -a`. Its exact purpose is unconfirmed - do not confuse it with the actual input methods listed below++ ```sh+ λ adb -s $S shell ime list -a -s+ com.google.android.inputmethod.latin/com.android.inputmethod.latin.LatinIME+ com.google.android.tts/com.google.android.apps.speech.tts.googletts.settings.asr.voiceime.VoiceInputMethodService+ com.google.android.tv.remote.service/.ImeBridgeService+ com.tcl.inputmethod.international/.T_IME+ com.tcl.ttvs/.tcast.core.stringinput.SoftKeyboard+ ```++ > The primary, default input method is `T-IME`; Gboard was unselectable/grayed out in the keyboard settings++ - **ZDF**: the ZDF Mediathek app is disabled & ZDF HD live still works after a reboot+ - **ARTE:** the app opens but needs an account to play - it is disabled+ - **Chromecast**: `com.google.android.apps.mediashell` is disabled & casting from an android phone using the default youtube still works+ - **Connecting**: Wireless debugging with `adb pair` & `adb connect`. `tools/tv.py` failed with an `STLS` error from `adb_shell`. `adb tcpip 5555` was not tried; instead, the `adb` cli was used directly++ ### Test limits++ - applied on 2026-10-24, multiple reboots & subsequent use+ - hdmi inputs, airplay & the tuner were not tested+ - following preinstalled apps & buttons on the remote continued to work seamlessly after applying the list:+ - voice recognition+ - quick panel+ - t-solo+ - netflix+ - prime video (only opened, no account)+ - youtube+ - local media integration (gallery, videos)+ - tcl channel+ - disney plus (only opened, no account)++ > prime video & disney plus apps opened fine, i do not claim that playback worksdiff --cc examples/tcl-q7c-google-tv/debloat.txtindex 0970fe269,f273c3624..a87259e30--- a/examples/tcl-q7c-google-tv/debloat.txt+++ b/examples/tcl-q7c-google-tv/debloat.txt@@@ -142,3 -87,29 +142,20 @@@ com.google.android.apps.tv.launcher# 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+-# TCL 65Q7C (Smart TV Pro), Android 14 (SDK 34), tcl9618-user 14 UTT2.250416.001 AU02: reboot, home, casting checked; hdmi input & airplay not tested++# Seventh unit: TCL 65Q7C (Smart TV Pro), Android 14 (SDK 34), tcl9618-user 14 UTT2.250416.001 AU02: reboot, home, casting checked; hdmi input & airplay not tested; its other nine are already active above+ # streaming-# com.amazon.amazonvideo.livingroom+ # com.crunchyroll.crunchyroid+ # com.zattoo.player+ # tv.arte.plus7+ # de.prosiebensat1digital.seventv+ # tv.mopa.ginga+ # de.exaring.waipu+ # de.swr.avp.ard.tv+ # com.zdf.android.mediathek-# com.google.android.videos+ # com.google.android.youtube.tvmusic+ # com.google.android.apps.mediashell+ # tcl extras-# com.tcl.channelplus-# com.tcl.esticker-# com.tcl.ocean.instructions-# com.tcl.repairguide-# com.tcl.exhibit+ # com.tcl.factory.view-# com.tcl.usercenter-# com.tcl.logkit+ # com.tpa.kb