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 55C725 (BeyondTV4, Android TV 11 with launcherx, LF1V620)
angelusgid3a688fe9b1e
diff --git a/README.md b/README.mdindex e302f43f6..069d50bc1 100644--- a/README.md+++ b/README.md@@ -199,6 +199,7 @@ BYINTEK, JMGO, Portronics, Stellamore, Wanbo and XGIMI projectors| TCL 43EP660 (Europe, BeyondTV, Realtek rtd285o, V8-R851T02-LF1V378) | Android TV 9 || TCL 50EP680 (Europe, BeyondTV, Realtek rtd285o) | Android TV 11 || TCL 55" 4K Google TV, 2023 (G10, G10_4K_US_NF); also TCL 55P6K, Spain (G10_4K_GB_NF_32BIT) | Google TV 12 |+| TCL 55C725 (Smart TV Pro, BeyondTV4, G03_4K_GB, Realtek R51MT05, V8-R51MT05-LF1V620), Italy | Google TV launcher on Android TV 11 || TCL 55C815 (2020, Europe/Denmark, BeyondTV2, Realtek rtd285o) | Android TV 11 || TCL 55Q10G Pro (China, tcl_mt5879_cn, MediaTek MT9952) | Android TV 11 || TCL 55S470G (G10, G10_4K_US_NF, Realtek), US | Google TV 12 |diff --git a/examples/README.md b/examples/README.mdindex da48e71be..0f8d940db 100644--- a/examples/README.md+++ b/examples/README.md@@ -76,6 +76,7 @@ on that firmware, grouped and commented. These are starting points: comment out| `tcl-43ep660/` | TCL 43EP660 (Europe, BeyondTV, Realtek rtd285o, V8-R851T02-LF1V378) | Android TV 9 | TCL BI analytics, user center, TCL Channel, message box, stickers, TV Guard, T-Cast, app store, USB players; voice and Miracast off by choice, Chromecast and updaters kept; stock launcher has HOME priority 2, so it must be disabled; setupwraith owns the setup Wi-Fi and does not claim HOME, so it stays; `StartandroidService` kept (device authentication) || `tcl-50ep680/` | TCL 50EP680 (Europe, BeyondTV, Realtek rtd285o) | Android TV 11 | TCL analytics + content feed, giftbox dashboard, partner customizer, preloaded games/news; UK Freeview apps already off at the factory; voice off by choice; launcher works (stock `com.google.android.tvlauncher`, Live TV `com.tcl.tv`) || `tcl-g10-google-tv/` | TCL 55" 4K Google TV, 2023 (G10, G10_4K_US_NF); also TCL 55P6K, Spain (G10_4K_GB_NF_32BIT) | Google TV 12 | TCL TV+, TCL Live, store demo, smartlink installer; setupwraith also claims Home once the stock launcher is disabled |+| `tcl-55c725/` | TCL 55C725 (Smart TV Pro, BeyondTV4, G03_4K_GB, Realtek R51MT05, V8-R51MT05-LF1V620), Italy | Google TV launcher on Android TV 11 | Same software as tcl-43c645 with launcherx: TCL content, TCL Channel, T-Cast, TCL WebView, partner setup and auto-installs, ambient mode; firmware updater, Chromecast, Miracast kept; RC902V (BT) and RC802NU YUI1 (IR) buttons remapped with `HomeKeyService` by keycode (4062/4065/4099/4001/4020, gear 4077); the service can stay unbound after a reinstall; notes in README.md || `tcl-55c815/` | TCL 55C815 (2020, Europe/Denmark, BeyondTV2, Realtek rtd285o) | Android TV 11 | TCL analytics, content feeds (TCL Channel), message box, sticker, Google recommendation rows, Play Movies/Games; voice, Chromecast, mirroring and updates kept by choice; setupwraith owns a setup Wi-Fi network, so it stays; TCL's updater re-enabled TCL Channel by pushing an update after a reboot (also hide it in the launcher); launcher works (stock `com.google.android.tvlauncher`, Live TV `com.tcl.tv`); reboot-checked || `tcl-q10g-pro/` | TCL 55Q10G Pro (China, tcl_mt5879_cn, MediaTek MT9952) | Android TV 11 | No Google services, TCL boot ad + analytics/BI, OTA and account services; ADB opens from Device info + UP/DOWN/LEFT/RIGHT, not the build number; debloat only, stock launcher cannot be replaced (signature check at install time) || `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 |diff --git a/examples/tcl-55c725/README.md b/examples/tcl-55c725/README.mdnew file mode 100644index 000000000..9b0d0c8cc--- /dev/null+++ b/examples/tcl-55c725/README.md@@ -0,0 +1,135 @@+# TCL 55C725++TCL's 55" QLED from the C725 series (device `BeyondTV4`, product `G03_4K_GB`, model string "Smart TV Pro",+Realtek `rtd288o`, software family R51MT05), 2 GB RAM, 10 GB `/data`. Android TV 11 (SDK 30) running the+Google TV launcher (`launcherx`), build `RP1A.200622.001`, software `V8-R51MT05-LF1V620`. Italian unit, on+Ethernet with Wi-Fi off. Two remotes: the Bluetooth **TCL RC902V** (reports as `TCL_RC902V_U1`) and the infrared+**TCL RC802NU YUI1**.++Debloated and running this repo's launcher as Home, set up and checked on a real unit on 2026-10-20/21,+including a reboot. Nothing is uninstalled; `debloat.txt` lists each disabled package and why. Closest lists:+[`tcl-43c645/`](../tcl-43c645/) (same R51MT05 software, launcherx) and [`tcl-65c725/`](../tcl-65c725/) (same+series and BeyondTV4 device, but with the older `tvlauncher`).++All commands run from the repo root with the TV's IP in `TV_HOST`, and need ADB on: Settings > System >+About > press Android TV OS build 7 times, then Developer options > USB debugging, and accept the prompt. Port+5555 was open with no wireless-debugging pairing; `ro.adb.secure=1`.++## Install++```bash+TV_HOST=<tv-ip> tools/disable.sh examples/tcl-55c725/debloat.txt+TV_HOST=<tv-ip> HOME_KEY_SERVICE=1 launcher/build-and-install.sh+TV_HOST=<tv-ip> tools/theme.sh <your theme folder> # with the config.json below+```++Set the screensaver before dreamx goes:+`tools/tv.py 'settings put secure screensaver_components com.android.dreams.basic/.Colors'`+(or `com.gathin.tvhome/.ClockDream`). Then check that the remote-button service is **bound**, not just enabled+(see Quirks): `tools/tv.py 'dumpsys accessibility' | grep 'Bound services'`.++## Undo++```bash+TV_HOST=<tv-ip> tools/restore.sh examples/tcl-55c725/debloat.txt com.google.android.apps.tv.launcherx+```++## What changed++**Disabled in this pass** (12): TCL home-screen content (`tclhome_passive`) and the "TCL Channel" browser+(`waterfall.overseas`), Google `partnersetup` and the `gtvpai` preinstall auto-installer, `onetimeinitializer`,+calendar sync, the AOSP WebView test browser, TCL's own WebView (TV Settings and TCL apps still worked, with no+crash in the log), Play Movies, Play Games, TCL T-Cast, and ambient mode. Then the launcher install disabled+`launcherx`.++**Found already disabled** and kept in the list (16), all from the `tcl-43c645` or `tcl-g10` lists: TCL analytics+(`com.tcl.bi`), FAST channels, app show, partner customizer, store sticker, message box, guard, key help, user+agreement, e-manual, USB media centre, the dashboard, Rakuten TV, Google feedback, TalkBack and the setup+wizard. Also found disabled and left out of the list because they were not checked one by one: `factory.view`+(which the 43C645 list says to keep), gallery, browser, camera, messaging, user centre, Alexa, logkit, YouTube+Music, print spooler, dynamic system updates.++**Kept on purpose:** Netflix, YouTube, Prime Video and every user-installed app; voice search (Google+`katniss` and `com.tcl.assistant`); Chromecast, Miracast; the TCL firmware updater (`versionUpdateApp`); the+Google TV phone remote; Game Bar; T-solo (TV audio to Bluetooth headphones); Live TV and HDMI.++Verified after each batch: Home, Live TV, Ethernet. After the reboot, Home, the 13 disabled packages (including+launcherx), the bound button service and Ethernet were all still in place.++## Remote buttons: remapped++With `launcherx` disabled, the app buttons, TV, Settings and the number-pad button did nothing. TCL sends its+own keycodes, and only the stock launcher answered them. `HomeKeyService` (`HOME_KEY_SERVICE=1`) brings them+back from `app_keys` and `settings_key_keycodes`, matched by **keycode**, so one entry covers both remotes.++The keycodes were read with a temporary log line in the launcher's accessibility service; the names come from+the TV's key layouts, `/system/usr/keylayout/Generic.kl` (Bluetooth) and `mtkinp.kl` (IR), both readable here.+Every button was confirmed with the real remotes.++| Button | RC902V (BT) scancode | RC802NU YUI1 (IR) scancode | TCL name | Keycode | Mapped to |+|---|---|---|---|---|---|+| Netflix | 242 | 758 | `TCL_NETFLIX` | **4062** | `com.netflix.ninja` |+| YouTube | 245 | — | `TCL_YOUTUBE` | **4065** | `com.google.android.youtube.tv` |+| Prime Video | 752 | 752 | `TCL_PRIMEVIDEO` | **4099** | `com.amazon.amazonvideo.livingroom` |+| TV / guide | 365 | — | `TCL_EPG` | **4001** | `com.tcl.tv` (Live TV) |+| TV (IR) | — | 456 | `TCL_QUICK_MENU` | **4020** | `com.tcl.tv` (Live TV) |+| Settings (gear) | 233 | 561 | `TCL_SET` | **4077** | TV settings |+| Number pad | 235 | — | `TCL_NUMBER` | **4056** | `com.tcl.suspension` (TCL Quick panel), by the owner's choice |+| Input | — | 471 | `TV_INPUT` | 178 | works without help (`com.tcl.suspension`) |++The RC902V reports the same Bluetooth ids (vendor `0x0417`, product `0x0304`) as the RC833 of the+TCL 43P7K (G10 firmware), and Netflix, YouTube, Prime Video and TV send the same keycodes. The gear differs:+4077 here, 83 on that firmware. Do **not** also enable `InputKeyService`, because it reads `app_keys` too and every+app button would open its app twice.++The theme used on this unit (`config.json`, with `themes/aurora/wallpaper.jpg` as `wallpaper.jpg`):++```json+{+ "dock_apps": ["com.netflix.ninja", "com.google.android.youtube.tv", "com.disney.disneyplus", "com.amazon.amazonvideo.livingroom"],+ "hidden_apps": [],+ "live_tv_package": "com.tcl.tv",+ "columns": 4,+ "background_color": "#070A14",+ "wallpaper": true,+ "settings_key_keycodes": [4077],+ "app_keys": ["4062:com.netflix.ninja", "4065:com.google.android.youtube.tv", "4099:com.amazon.amazonvideo.livingroom",+ "4001:com.tcl.tv", "4020:com.tcl.tv", "4056:com.tcl.suspension"]+}+```++## Inputs++Five TV inputs are published: the tuner `com.tcl.tvinput/.TDTVInputService/HW1413742848` and four HDMI+passthroughs, `com.tcl.tvinput/.passthroughinput.TvPassThroughService/HW1413743104`, `…HW1413744128`, `…HW1413744384`+and `…HW1413744640`, which `com.tcl.tv` opens. The launcher's Inputs menu shows the labels set in the TV's settings+(here "XBOX · HDMI 2", "PS3 · HDMI 3") and the connection state, and it leaves out the inputs hidden there+(`tv_input_hidden_inputs`). That is why only two HDMI rows appear on this unit.++## Resources++After the changes, launcher with the aurora wallpaper, 4 per row:++| | Used | Free |+|---|---|---|+| RAM (2 GB) | ~1.55 GB | ~490 MB available |+| Swap (1 GB) | ~130 MB | ~900 MB |+| `/data` (10 GB) | 2.5 GB | 7.4 GB |+| Launcher (`com.gathin.tvhome`) | ~78 MB PSS | |++Before the changes, 370 MB was available, but that was read at a different moment, so it is not a clean+before/after figure. CPU was not measured at idle: the reading taken 2 minutes after boot (~16%) only shows apps+starting.++## Firmware quirks++- **The button service can stay enabled but unbound** after the launcher is reinstalled and the theme pushed:+ `enabled_accessibility_services` lists it, and `dumpsys accessibility` shows `Bound services:{}`. Android binds+ it again only when the list changes, so set it to `""` and then back to `com.gathin.tvhome/.HomeKeyService`.+- **Sideloading works.** Every user-installed app here is a split APK. Reinstalling one with an install session+ that writes all its parts (`pm install-create -r` / `install-write` / `install-commit`) succeeded, and so did+ the launcher. The launcher's base64 transfer passed its md5 check here, unlike on the 43C645.+- **Screenshots** come back empty while Live TV or HDMI is on screen; check `dumpsys activity activities | grep+ mResumedActivity`.+- `dumpsys window policy` lists global keys for packages this TV does not have (`com.android.tv`,+ `com.realtek.tv.*`); none of them is the stock launcher's app keys.diff --git a/examples/tcl-55c725/debloat.txt b/examples/tcl-55c725/debloat.txtnew file mode 100644index 000000000..6c4d17724--- /dev/null+++ b/examples/tcl-55c725/debloat.txt@@ -0,0 +1,61 @@+# TCL 55C725 (reports as "Smart TV Pro", device BeyondTV4, product G03_4K_GB, Realtek rtd288o / R51MT05), 2 GB RAM+# Android TV 11 (SDK 30) with the Google TV launcher, build RP1A.200622.001, software V8-R51MT05-LF1V620. Italy.+# Same software family as examples/tcl-43c645 (LF1V652) and the BeyondTV4 of examples/tcl-65c725, which shipped+# the older com.google.android.tvlauncher; this unit runs launcherx.+# Applied and verified on a real unit on 2026-10-20/21 (Ethernet, Wi-Fi off), with launcher/ as Home and a reboot.+# Notes, remote keycodes and quirks: README.md in this folder.+#+# Apply: TV_HOST=<tv ip> tools/disable.sh examples/tcl-55c725/debloat.txt+# Undo: TV_HOST=<tv ip> tools/restore.sh examples/tcl-55c725/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; launcher/build-and-install.sh disables it, it is not listed.+# Never disable (from examples/tcl-43c645, same platform): com.tcl.providers.config com.tcl.initsetup+# com.tcl.system.server com.tcl.tcl_bt_rcu_service com.tcl.autopair com.tcl.tvinput com.tcl.tv com.tcl.settings+# com.tcl.inputmethod.international. Also kept here: com.tcl.suspension (Quick panel / Input), com.tcl.micmanager,+# com.google.android.tv.assistant (assistant LED), com.tcl.xian.StartandroidService (device authentication, purpose+# unclear, left alone).++# TCL and Google content, ads and promos+com.tcl.tv.tclhome_passive # pushes TCL content to the home screen at boot+com.tcl.waterfall.overseas # "TCL Channel" content browser+com.tcl.channelplus # TCL Live FAST channels+com.tcl.overseasappshow+com.tcl.partnercustomizer+com.tcl.esticker # store demo sticker+com.tcl.messagebox+com.tcl.bi # TCL analytics+com.google.android.partnersetup+android.autoinstalls.config.google.gtvpai+com.google.android.feedback++# Background services not needed+com.google.android.onetimeinitializer+com.google.android.syncadapters.calendar+org.chromium.webview_shell # AOSP WebView test browser+com.tcl.android.webview # TCL WebView; TV Settings and TCL apps still work without it+com.tcl.guard+com.tcl.keyhelp+com.tcl.useragreement++# Preloaded apps+com.google.android.videos # Google TV / Play Movies+com.google.android.play.games+com.google.android.marvin.talkback+com.tcl.ocean.instructions # e-manual+com.tcl.ui_mediaCenter # re-enable to play media from USB drives+com.tcl.MultiScreenInteraction_TV # TCL T-Cast (phone casting/remote, Firebase); Chromecast kept+tv.wuaki.apptv # Rakuten TV+com.tcl.dashboard # stock quick-settings panel; the gear key is remapped, see README.md+com.google.android.apps.tv.dreamx # ambient mode; set screensaver_components first, see README.md++# Google TV setup wizard: claims Home once launcherx is disabled. On Ethernet there is no Wi-Fi to lose.+com.google.android.tungsten.setupwraith++# Optional: kept on this unit by choice+# com.tcl.versionUpdateApp # TCL firmware updater+# com.tcl.miracast # screen mirroring+# com.google.android.apps.mediashell # Chromecast+# com.google.android.tv.remote.service # Google TV phone remote; also carries the remote's mic on other TCL sets+# com.tcl.gamebar # console game-mode overlay+# com.tcl.t_solo # "Listen alone": TV audio to Bluetooth headphones