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
docs: TCL 65C835 (G05_4K_GB, AR2101/AR28) one-evening note, and undo needs pm install-existing
JohnnyTax5556b26690b2
diff --git a/docs/devices/tcl-65c835-g05-4k-gb.md b/docs/devices/tcl-65c835-g05-4k-gb.mdnew file mode 100644index 000000000..4f6d2ccb4--- /dev/null+++ b/docs/devices/tcl-65c835-g05-4k-gb.md@@ -0,0 +1,114 @@+# TCL 65C835 (`G05_4K_GB`, Italy): setupwraith stayed off, and undo needs `pm install-existing`++One owner, one evening, Wi-Fi only. The full list below was applied with `tools/disable.sh` in batches with a+screenshot after each, the reference launcher went in with `launcher/build-and-install.sh`, and the set was+rebooted several times. Nobody has lived with it for days, so [CONTRIBUTING](../../CONTRIBUTING.md) makes this a note+and not a list: read it next to [`examples/tcl-65c735/`](../../examples/tcl-65c735/debloat.txt) and the+[55C728 note](tcl-55c728-g05-4k-gb.md), which are the same product and build ID.++## Identify the firmware, not the retail name++| Field | Value |+|---|---|+| Retail name | TCL 65C835, reports itself as `Smart TV Pro`, Italy |+| `ro.product.name` | `G05_4K_GB` |+| `ro.product.device` | `G05` |+| Android | Google TV on Android 11, SDK 30 |+| Build fingerprint | `TCL/G05_4K_GB/G05:11/AR2101/AR28:user/release-keys` |+| SoC | MediaTek `mt5889` |+| RAM | 2.7 GB |+| Network | Wi-Fi, no USB Ethernet adapter |++The fingerprint is identical to the 55C728 note's (`AR2101` / `AR28`), so the `65C735` list is the nearest+tested one. Most of this set's differences from it are the owner's choices and are marked as such below.++## What was done++39 packages, applied in the order below with a screenshot of Home between batches, then the launcher+(`launcher/build-and-install.sh` with `HOME_KEY_SERVICE=1`). `pm disable-user --user 0`, never `pm uninstall`.++| Group | Packages |+|---|---|+| telemetry | `com.tcl.ttvs`, `com.tcl.guard`, `com.tcl.logkit`, `com.google.android.feedback`, `com.google.android.partnersetup` |+| content and ads | `com.tcl.waterfall.overseas`, `com.tcl.partnercustomizer`, `com.tcl.messagebox`, `com.tcl.usercenter`, `com.tcl.dashboard`, `com.tcl.tv.tclhome_passive`, `com.tcl.esticker`, `com.tcl.channelplus`, `com.tcl.useragreement`, `android.autoinstalls.config.google.gtvpai` |+| preloads | `tv.wuaki.apptv`, `com.google.android.youtube.tvmusic`, `com.google.android.play.games`, `com.google.android.videos`, `com.tcl.notereminder`, `com.tcl.hearaid`, `com.google.android.marvin.talkback`, `com.google.android.syncadapters.calendar`, `com.google.android.onetimeinitializer`, `com.tcl.ocean.instructions`, `com.tcl.browser`, `com.tcl.smartalexa`, `com.netflix.ninja` |+| launcher takeover | `com.google.android.apps.tv.launcherx`, `com.google.android.tungsten.setupwraith` |+| later, after the first reboot | `com.android.printspooler`, `com.tcl.android.webview`, `com.google.android.apps.tv.dreamx`, `com.google.android.apps.nbu.smartconnect.tv`, `com.android.wallpaperbackup`, `com.android.sharedstoragebackup`, `com.android.backupconfirm`, `com.android.hotspot2.osulogin`, `com.android.htmlviewer` |++Already disabled before anything was run: `au.com.stan.and`, `jp.unext.tv.player`,+`air.jp.co.fujitv.fodviewer.tv`, `tv.abema`, `jp.happyon.android`, `com.amazon.amazonvideo.livingroom`,+`com.google.android.youtube.tv`.++Kept on purpose: Live TV and the inputs (`com.tcl.tv`, `com.tcl.tvinput`), `com.tcl.suspension` (the Input key+and source overlay), `com.tcl.settings`, `com.tcl.system.server`, `com.tcl.eva`, `com.tcl.tcl_bt_rcu_service`,+`com.tcl.providers.config`, and, by the owner's choice, the Assistant and its mic button, Chromecast, Miracast and+T-Cast, AirPlay, `com.tcl.gamebar` (Moonlight is used) and `com.tcl.ui_mediaCenter`.++**`com.tcl.ttvs` is disabled here, and on this build it holds the system updater**, as the `65C735` header says:+this set gets no OTA updates until it is re-enabled. That was the owner's choice, not a recommendation.++## The firmware turns some disables into "not installed", so `tools/restore.sh` was not enough++After a reboot, 12 of the 39 packages no longer appeared in `pm list packages -d`. They were not enabled again:+they showed `installed=false` for user 0 with `enabled=3`, and `pm list packages` did not list them either+(`tools/check.py` reports them as "not installed any more"):++`com.google.android.onetimeinitializer`, `com.google.android.partnersetup`, `com.google.android.play.games`,+`com.google.android.youtube.tvmusic`, `com.netflix.ninja`, `com.tcl.esticker`, `com.tcl.guard`,+`com.tcl.messagebox`, `com.tcl.notereminder`, `com.tcl.partnercustomizer`, `com.tcl.useragreement`,+`com.tcl.usercenter`.++Right after `pm disable-user` the same package still read `installed=true`, so the change came with a reboot,+not with the command. Undo on one of them, as `tools/restore.sh` did it at the time:++| Command | Result for a package in that state |+|---|---|+| `pm enable <pkg>` | `new state: enabled`, still `installed=false`, still missing from `pm list packages` |+| `pm install-existing --user 0 <pkg>`, then `pm enable <pkg>` | `installed=1 enabled=1` |++So on this firmware `pm enable` alone does not bring the package back. Until the restore scripts run+`pm install-existing --user 0` first, undo these by hand.++## setupwraith and Home++- The saved Wi-Fi network belonged to `android.uid.system:1000`, not to setupwraith (`dumpsys wifi | grep -o+ 'cname=[^ ]*'`), so `tools/disable.sh` let setupwraith go with no forget and re-join.+- The first `launcher/build-and-install.sh` run **rolled itself back**: after `launcherx` was disabled, Home+ resolved to `com.google.android.tungsten.setupwraith/.RecoveryActivity`, as the guard is written to expect. Disabling+ setupwraith and running the script again moved Home to `com.gathin.tvhome/.MainActivity`.+- Home, and every disable above, held across the reboots on `AR28`. This is the third `AR2101` report where+ setupwraith stayed off ([the 55C728 note](tcl-55c728-g05-4k-gb.md) has the table).++## Remote keys++- The gear button sends keycode `4077`, as on the other `G05_4K_GB` reports. With `launcherx` gone it does nothing+ until the launcher's `HomeKeyService` handles it: `settings_key_keycodes` `4077`, `HOME_KEY_SERVICE=1`.+ `settings_key_panel` makes it open the launcher's quick settings panel.+- The Input key worked with only `HomeKeyService` bound; `InputKeyService` was never enabled.+- Holding Volume+ still repeated with `HomeKeyService` bound, on the owner's real remote.+- The Netflix, YouTube and Prime Video buttons were left unmapped; those apps are off here.++## Other things seen++- `com.tcl.gallery`, `com.tcl.initsetup`, `com.tcl.keyhelp` and `com.tcl.inputmethod.international` read+ `installed=false` for user 0 at the end of the evening. None is in any list that was run, and `tools/disable.sh`+ never uninstalls, but there is no record of what the set looked like before the first command, so it is unknown+ whether they were already gone. The remote, Input, HDMI, Wi-Fi and typing with Google's keyboard all worked.+- The launcher's Wi-Fi pill read "Wi-Fi" and never showed the network name.+- Once, about four minutes after the second reboot, Home came back invisible after leaving an app: the paused app's+ last frame stayed on screen while the launcher kept answering the remote. It lasted about ten minutes across+ several launcher reinstalls, and then stopped. The same steps with unchanged code, with and without+ `advanced_effects`, and on a fresh boot, did not reproduce it afterwards, so the cause is **not known** and+ nothing here should be read as a fix. If you see it, `dumpsys activity activities | grep -E 'mResumedActivity|Task\{'`+ names the launcher as resumed while the screenshot shows the app.++## What was not tested++- Days of use, standby and wake, casting, Bluetooth pairing, and what a firmware update does to this list.+- Opening Live TV and switching HDMI inputs from the launcher's Inputs menu: the menu listed them, but the switch+ itself was not exercised on the TV.+- The three Netflix, YouTube and Prime Video remote buttons.+- Undo end to end: `restore.sh` was not run on this set. Only the single-package check above was.++Network ADB was left on at the owner's request for a home-automation tool. Port 5555 is plaintext; this firmware has+`ro.adb.secure=1`, so only an authorised computer gets a shell.diff --git a/examples/README.md b/examples/README.mdindex e772cd3d1..e37d3e920 100644--- a/examples/README.md+++ b/examples/README.md@@ -286,6 +286,7 @@ Notes for models that have no tested list yet live in [`docs/devices/`](../docs/- [Toshiba 55Z500QF (China, Hisense firmware)](../docs/devices/toshiba-55z500qf-cn.md) (`T963D4`, Amlogic `t5m`, Android 11 `RD2A.211001.002`, `07.02.70`, no GMS): no Developer options entry (owner opened it from a sideloaded helper APK), stock JuUI Home at `priority=50` handed over only when disabled as a package, `com.meetingroom` came back after both recorded reboots, the boot-source setting stopped Live TV taking the front; owner-reported removal history only, no tested list.- [Hi VHIX-43F169MSY](../docs/devices/hi-vhix-43f169msy.md), Yandex TV, CVTE `TP.SK506S.PB802` / `m5621`, Android 9: two-day observation, stock/replacement Home and working CVTE/Yandex settings component, Yandex IO service dependency, disabled-package history and low-memory follow-up; no several-day debloat list or signal/CEC verification.- [Acer R4G 50"](../docs/devices/acer-r4g.md) (MOKA `R4_GTV`, Realtek `rtd2851m`, Google TV 14 `UKR1.260308`, India): the firmware's `FallbackHome` re-enables a fixed list of 60 packages at every cold boot, setupwraith among them, so its `.RecoveryActivity` takes Home back from a new launcher; which packages come back, which stay disabled, and the `logcat` check; no list, since disable-only can't keep the stock Home away here.+- [TCL 65C835](../docs/devices/tcl-65c835-g05-4k-gb.md) (`G05_4K_GB`, `AR2101` / `AR28`, MediaTek `mt5889`, Google TV 11, Italy, Wi-Fi): one-evening 39-package set with the reference launcher, setupwraith still off after reboots; the firmware turned 12 of the disabled packages into "not installed" after a reboot, where `pm enable` alone does not bring them back (`pm install-existing --user 0` does); one unexplained Home-invisible episode that did not reproduce; no several-day list yet.To add your TV, see [CONTRIBUTING.md](../CONTRIBUTING.md). The quickest way to get a list is torun the prompt in [PROMPT.md](../PROMPT.md) and copy the packages your assistant disabled.