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: Durabrand DB Android TV 4K (DURAT32ISDB, dupont), Android TV 11
kevscecfc5e5577a3c1
diff --git a/docs/devices/durabrand-durat32isdb.md b/docs/devices/durabrand-durat32isdb.mdindex af35ed588..a0025963c 100644--- a/docs/devices/durabrand-durat32isdb.md+++ b/docs/devices/durabrand-durat32isdb.md@@ -1,11 +1,15 @@-# Durabrand DB Android TV 4K (`DURAT32ISDB`, dupont): a one-day owner report+# Durabrand DB Android TV 4K (`DURAT32ISDB`, dupont): two owner reports-Owner report from+The tested list for this set is [`examples/durabrand-durat32isdb/`](../../examples/durabrand-durat32isdb/debloat.txt),+from the second unit below, run for several days with a launcher swap. This note keeps what the+list header has no room for: the first owner's report, the packages the firmware turns back on and+the factory-menu trap.++The first report came from[#470](https://github.com/Gathin23/cleanyourtv/issues/470): one session and one day of use, no-launcher installed. It is **not** a tested list in the `examples/` sense - CONTRIBUTING asks for-several days of living with a list before it goes there - so the packages and the two traps that-came with them are recorded here instead, and this note can graduate to `examples/` once the owner-has run it for longer.+launcher installed. On its own it was **not** a tested list in the `examples/` sense - CONTRIBUTING+asks for several days of living with a list before it goes there - so its packages and the two traps+that came with them were recorded here first.## Identify the firmware@@ -105,3 +109,49 @@ is in [TROUBLESHOOTING.md](../TROUBLESHOOTING.md).- The package list is the owner's, reproduced here as reported; it was not re-read from the TV bythis note's author, and no screenshot of `dumpsys package` accompanied it.- The RAM figures are the owner's, measured before and after in one session.++## A second unit, with a launcher swap++A second owner's set, the same product, device, board, firmware and security patch as above, read+from the TV with `getprop`. It adds what the first report could not cover: the Home handover, the+reboots after it, and a third package the firmware turns back on. Its list, after four days of use,+is [`examples/durabrand-durat32isdb/`](../../examples/durabrand-durat32isdb/debloat.txt).++Disabled with `tools/disable.ps1` in five small batches, each checked with `dumpsys package` first,+then one reboot:++- the nine from the first report other than the store disclaimer: `fusion.android.tv.demo`,+ `com.haier.apps`, `com.haier.apps.evoSmart`, `com.google.android.feedback`,+ `com.google.android.videos`, `com.google.android.play.games`,+ `com.google.android.youtube.tvmusic`, `com.android.printspooler` and+ `com.google.android.syncadapters.calendar`;+- `com.haier.tvhousekeeper`, Haier's "TV Assistant" cleaner (`/product/app/TV_Assistant`), which+ the Haier lists in `examples/` disable too;+- `com.google.android.tvlauncher`, at the Home handover below.++`com.mstar.android.tv.disclaimercustomization` was not in this unit's batches and is still enabled;+nothing here says whether it is needed. Two apps installed under `/data/app` rather than shipped in the+firmware were disabled as well and are not part of this note.++What happened:++- `com.google.android.katniss` (the Assistant) was disabled and was enabled again at the next boot,+ like `tvrecommendations` and `haiermatrix` above. The cause was not traced on this unit; disabling+ it again only lasts until the next restart, so it was left enabled.+- The Home handover needed the stock home disabled: with the reference launcher holding the HOME+ role, the Home button still opened `com.google.android.tvlauncher` until it was disabled, which is+ what `launcher/build-and-install.sh` does by default. After a reboot Home came back to the new+ launcher, and it has stayed there since. The launcher on this set is a fork of this repo's (the+ [CleanYourTV Editorial](../../SHOWCASE.md) row), with the same package and Home handover.+- The Input button kept opening the MediaTek panel after the swap, as described above.+- Reinstalling only `base.apk` of an app that ships as four split APKs failed with+ `INSTALL_FAILED_VERIFICATION_FAILURE`; installing all four together with `adb install-multiple`+ succeeded with Play Protect left on. The failure was the incomplete install, not a block on+ installing apps from ADB.+- `com.google.android.tungsten.setupwraith`, `com.haier.tv.hmagicboard` and `com.cvte.tv.hkcfac`+ were left alone and the factory menus were never opened.++Validation scope for this unit: one owner, four days, two reboots (one after the+cleanup, one after the launcher). The owner confirmed playback in YouTube, Stremio and an IPTV app,+and the remote's Home, Back and volume keys after the swap. HDMI-CEC, a real Chromecast+session and a firmware update were not tried.diff --git a/examples/README.md b/examples/README.mdindex 43a35877f..f9aa653db 100644--- a/examples/README.md+++ b/examples/README.md@@ -470,9 +470,8 @@ Notes for models that have no tested list yet live in [`docs/devices/`](../docs/- [Sony KD-55X9000H (PA firmware)](../docs/devices/sony-kd-55x9000h.md), `BRAVIA VH1` / `BRAVIA_VH1`, Android 12 `STT2.230505.001.S137` (build `626241`): one-day report with a locally customized launcher, Google stock Home handover and reboot checks, Sony input routing and owner-reported remote/app checks; no several-day debloat list.- [Sony K-85XR70](../docs/devices/sony-k85xr70-ae2.md), `BRAVIA 4K AE2`, Android 14, China, `114.602.170.1`: the UI runs at 1080p on a 4K panel by firmware, and a boot can bring the override density back as 640 (UI doubled and clipped) until `display_density_forced` is written as well as `wm density`; no debloat list.- [FPD CG50-C3](../docs/devices/fpd-cg50-c3.md), KTC-built `EcoTV Pro A` / `FPD_4KHA0`, MediaTek, Google TV 11 `RTM9.241015.016`, Canada: a one-day list, kept as a note for that reason; setupwraith owned a saved network that was not the one in use, so `FORCE_SETUPWRAITH=1` was safe; the RC-36 remote's gear and notifications buttons arrive as scancodes 240/362 with `KEY_UNKNOWN`/`KEY_PROGRAM`, so they need `settings_key_scancodes` rather than a keycode.-- [Durabrand DB Android TV 4K `DURAT32ISDB`](../docs/devices/durabrand-durat32isdb.md) (`dupont`, m7332 Haier/CVTE board, Android TV 11 `RTM6.230109.232`): one-day owner report, ten packages, the two the firmware turns back on at every boot, the Input panel belonging to the MediaTek TV app instead of `tvlauncher`, and the hidden production menu that leaves Play services and Chromecast disabled until it is exited by hand.- [Sharp 32FI4EA](../docs/devices/sharp-32fi4ea.md), `AQUOS-TVE19G`, Android TV 11 (`RTOB.250806.001` and `RTOB.240311.001`): two owner-reported sets on the MediaTek TV stack, the stock and replacement HOME components, the packages actually disabled on each (the stock launcher only after the replacement had been opened), and the HDMI/Component/Composite inputs the menu lists without a signal check; initial reports, no several-day debloat list.-- [Haier `HaierATVT32DVB`](../docs/devices/haier-haieratvt32dvb.md) (`dupont`, same Haier/CVTE platform as the Durabrand above, Google TV 14 `UKNV.260408.001`): an observed-state note, not a list; the factory stack on Google TV 14, and `com.cvte.tv.fac.menu` named in the don't-launch list.+- [Haier `HaierATVT32DVB`](../docs/devices/haier-haieratvt32dvb.md) (`dupont`, same Haier/CVTE platform as the [Durabrand `DURAT32ISDB`](durabrand-durat32isdb/debloat.txt) list, Google TV 14 `UKNV.260408.001`): an observed-state note, not a list; the factory stack on Google TV 14, and `com.cvte.tv.fac.menu` named in the don't-launch list.- [Haier M638_MOOKA_UD](../docs/devices/haier-m638-mooka-ud-yunos44.md) (MOOKA, MStar MST6A638, YunOS / Android 4.4.4 / API 19, firmware `L_MST6A638_MOOKA_U55A5M1P1`): an observed-state note, not a list; YunOS silently swallows `pm disable`/`disable-user`/`block` on every package so the disable-only toolchain no-ops, the home stack is `com.yunos.tv.provision` → Youku Tatong, adbd filesync is broken (busybox base64 escape hatch), the factory menu is a trap, and the launcher half is out of reach (minSdk 26 > API 19).- [TCL `75c63b`](../docs/devices/tcl-75c63b.md), owner-reported retail model, `Smart TV Pro` / `BeyondTV4`, Android 11, `V8-R51MT05-LF1V652`: launcher-only installation, HOME priorities and component restrictions, correct Live TV player package, restoration and explicit test limits.- [TCL `55C728`](../docs/devices/tcl-55c728-g05-4k-gb.md), `Smart TV Pro` / `G05` / `G05_4K_GB`, Google TV 11 `TCL/G05_4K_GB/G05:11/AR2101/AR28`: a same-day 23-package set kept as a note, the G05 reboot answer by build (`AR68` puts setupwraith back, the `G05_4K_GB` units do not), the remote keycodes and vendor input URIs, and why this owner kept `com.tcl.suspension` where the US list disables it; a second unit (TCL 65C835, Italy, Wi-Fi) adds the reference launcher on `AR28`, a Wi-Fi network setupwraith did not own, and 17 packages that were already not installed before its cleanup.diff --git a/examples/durabrand-durat32isdb/debloat.txt b/examples/durabrand-durat32isdb/debloat.txtnew file mode 100644index 000000000..001659f5d--- /dev/null+++ b/examples/durabrand-durat32isdb/debloat.txt@@ -0,0 +1,46 @@+# Durabrand DB Android TV 4K (product DURAT32ISDB, device dupont, m7332 Haier/CVTE board), Android TV 11 (API 30),+# firmware RTM6.230109.232, security patch 2023-08-01.+#+# Apply: TV_HOST=<tv ip> tools/disable.sh examples/durabrand-durat32isdb/debloat.txt+# Undo: TV_HOST=<tv ip> tools/restore.sh examples/durabrand-durat32isdb/debloat.txt+# Everything is DISABLED, not uninstalled. Comment out any line you want to keep.+#+# Stock launcher: com.google.android.tvlauncher; launcher/build-and-install.sh disables it once the new+# launcher owns Home. On this firmware the Home button kept opening it until it was disabled.+# Live TV and the Input panel: com.mediatek.wwtv.tvcenter (keep it).+# Already disabled before this debloat: com.google.android.marvin.talkback, not in this list.+#+# Tested on one set for four days with the real remote, the reference launcher as Home and two reboots:+# Home, Back and volume keys, the Input panel, YouTube, Stremio and an IPTV app all worked.+# HDMI-CEC, a real Chromecast session and a firmware update were not tried.+#+# Comes back at every boot, so it is not listed (docs/devices/durabrand-durat32isdb.md):+# - com.google.android.katniss (Assistant): disabled here, enabled again by the firmware at the next boot.+# - com.google.android.tvrecommendations, com.haier.launcher.haiermatrix: re-enabled by+# com.at.factory.factorymanager, as the first owner report found.+#+# KEEP, even though the names look like bloat:+# - com.cvte.tv.hkcfac: the hidden production menu. Never open it: it switches off the Input key and CEC,+# and the next boot disables Play services, Chromecast and Assistant (docs/TROUBLESHOOTING.md).+# - com.haier.tv.hmagicboard: receives the remote's hot keys.+# - com.google.android.tungsten.setupwraith: owns a saved Wi-Fi network on this firmware; forget and+# rejoin it first or the TV goes offline (docs/TROUBLESHOOTING.md).+# - com.mediatek.wwtv.tvcenter, com.mediatek.tvinput, com.google.android.apps.mediashell (Chromecast),+# com.android.vending, com.google.android.gms.++# Retail demo and Haier store promos+fusion.android.tv.demo # HRetailDisplay_2K store demo+com.haier.apps # store shortcuts+com.haier.apps.evoSmart # store / partner promo+# com.mstar.android.tv.disclaimercustomization # store disclaimer: disabled in the first owner report, not on this set++# Haier cleaner+com.haier.tvhousekeeper # "TV Assistant" cleaner (/product/app/TV_Assistant)++# Google apps and services a TV does not use+com.google.android.feedback+com.google.android.videos # Play Movies+com.google.android.play.games+com.google.android.youtube.tvmusic # YouTube Music, off by choice+com.google.android.syncadapters.calendar # calendar sync+com.android.printspooler # printingdiff --git a/examples/durabrand-durat32isdb/tv.json b/examples/durabrand-durat32isdb/tv.jsonnew file mode 100644index 000000000..205de6b03--- /dev/null+++ b/examples/durabrand-durat32isdb/tv.json@@ -0,0 +1,6 @@+{+ "tv": "Durabrand DB Android TV 4K (DURAT32ISDB, dupont, m7332 Haier/CVTE)",+ "os": "Android TV 11",+ "brand": "Durabrand",+ "notes": "Retail demo, Haier store promos and cleaner, Google feedback, Play Movies / Games, YouTube Music off by choice; Assistant, tvrecommendations and haiermatrix come back at every boot; never open the hidden production menu: [notes](../docs/devices/durabrand-durat32isdb.md)"+}diff --git a/tests/test_durabrand_factory_note.py b/tests/test_durabrand_factory_note.pyindex 2bb3cb8e7..64a02d70c 100644--- a/tests/test_durabrand_factory_note.py+++ b/tests/test_durabrand_factory_note.py@@ -1,16 +1,19 @@-"""The Durabrand (#470) device note, and the factory-menu trap it reports.+"""The Durabrand device note (#470 and a second unit), and the factory-menu trap it reports.The note is documentation only, so the tests pin the facts that make it useful (the packages, thetwo that the firmware restores, the recovery sequence) and that its links still resolve.Run from the repository root: python3 -m unittest discover -s tests -v"""+import jsonimport refrom pathlib import Pathimport unittestROOT = Path(__file__).resolve().parents[1]NOTE = ROOT / "docs" / "devices" / "durabrand-durat32isdb.md"+LIST = ROOT / "examples" / "durabrand-durat32isdb" / "debloat.txt"+TV_JSON = LIST.parent / "tv.json"TROUBLE = ROOT / "docs" / "TROUBLESHOOTING.md"EXAMPLES_README = ROOT / "examples" / "README.md"PROMPT = ROOT / "PROMPT.md"@@ -78,13 +81,14 @@ class DurabrandNoteTest(unittest.TestCase):self.assertIn("com.at.factory.factorymanager", text)self.assertRegex(text, r"(?i)re-?enabled? (?:on|at) every\s+boot|come back on every\s+boot")- def test_note_admits_it_is_not_a_tested_list(self):+ def test_note_keeps_the_first_report_apart_from_the_list(self):+ # The first report was one day long; the list in examples/ is the second unit's, run for+ # several days. The note has to say which is which and point at the list.text = NOTE.read_text(encoding="utf-8")self.assertRegex(text, r"(?i)not\*\* a tested list|not a tested list")self.assertIn("several days", text)- # A one-day report must not be indexed as an examples/ list.- self.assertFalse(list((ROOT / "examples").glob("durabrand*")),- "a same-day report does not belong in examples/")+ self.assertTrue(LIST.is_file(), "examples/durabrand-durat32isdb/debloat.txt missing")+ self.assertIn("examples/durabrand-durat32isdb/", text)def test_note_keeps_the_input_panel_and_setupwraith_apart(self):text = NOTE.read_text(encoding="utf-8")@@ -139,11 +143,14 @@ class TroubleshootingTrapTest(unittest.TestCase):class IndexAndPromptTest(unittest.TestCase):- def test_examples_readme_lists_the_note(self):+ def test_the_list_row_links_the_note(self):+ # With a list of its own the note is linked from the folder's row (its tv.json), no longer+ # from the section for models that have no tested list yet.+ notes = json.loads(TV_JSON.read_text(encoding="utf-8"))["notes"]+ self.assertIn("../docs/devices/durabrand-durat32isdb.md", notes)text = EXAMPLES_README.read_text(encoding="utf-8")section = text.split("Notes for models that have no tested list yet", 1)[1]- self.assertIn("docs/devices/durabrand-durat32isdb.md", section)- self.assertIn("DURAT32ISDB", section)+ self.assertNotIn("docs/devices/durabrand-durat32isdb.md", section)self.assertEqual(broken_links(EXAMPLES_README), [])def test_prompt_tells_the_assistant_not_to_open_factory_menus(self):