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: link the three device notes nothing points at
xbshengcf7e59264f2d
diff --git a/examples/README.md b/examples/README.mdindex 1fd77920d..79c18853e 100644--- a/examples/README.md+++ b/examples/README.md@@ -146,7 +146,7 @@ on that firmware, grouped and commented. These are starting points: comment out| `tcl-65q550g/` | TCL 65Q550G (TCL Smart TV, Google TV 11, V8-R51MT08-LF1V095.021344) | Google TV | TCL telemetry, promos, preloads and voice services off by choice; Chromecast, Miracast and firmware updater kept; setupwraith owned saved Wi-Fi networks and claimed HOME; on Ethernet, setupwraith and launcherx were disabled and CleanYourTV verified as Home || `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-55ep640/` | TCL 55EP640 (Greece, BeyondTV, Realtek RTD2851 / rtd285o, AR04) | Android TV 11 | Same hardware and package set as `tcl-50p615/` (AR05) plus `com.tcl.dashboard`; a saved Wi-Fi network belongs to setupwraith, so it stays enabled; TCL analytics, promos, TCL Channel, TGuard, dashboard and USB media centre off; voice, Spotify, TuneIn and a Play-installed file manager off by choice, Chromecast, Miracast/MagiConnect, OTA and the phone remote kept; nothing re-enabled after a reboot; HDMI 1-3, AV and Live TV through TvInputManager, launcher installed and every real remote button checked |-| `tcl-mt9655-cn-android14/` | TCL / FFalcon China (tcl9655_cn, MediaTek MT9655 "merak", UTT2.250416.001 AU01) | Android 14 | No Google services; no Developer options at all — the ADB toggle opens adbd in TLS mode on a random port with no pairing service, so the only way in is a dual male USB-A cable (PC USB 3.0 → TV USB 2.0) and then `adb tcpip 5555`; every adb install is refused (`Install not allowed` from system_server), only a USB stick through 电视卫士 installs apps; debloat only, stock launcher cannot be replaced (`launcherStrategy` allowlist empty, verifier demands the cyberui signature); reboot-checked |+| `tcl-mt9655-cn-android14/` | TCL / FFalcon China (tcl9655_cn, MediaTek MT9655 "merak", UTT2.250416.001 AU01) | Android 14 | No Google services; no Developer options at all — the ADB toggle opens adbd in TLS mode on a random port with no pairing service, so the only way in is a dual male USB-A cable (PC USB 3.0 → TV USB 2.0) and then `adb tcpip 5555`; every adb install is refused (`Install not allowed` from system_server), only a USB stick through 电视卫士 installs apps; debloat only, stock launcher cannot be replaced (`launcherStrategy` allowlist empty, verifier demands the cyberui signature); reboot-checked; [why the debloat works and the installs do not](../docs/devices/tcl-mt9655-cn-android14.md) || `tcl-55p638/` | TCL 55P638 (Smart TV, BeyondTV4) | Android TV 11 | TCL promos, voice, unused preloads, TalkBack, MagiConnect, Gallery and BrowseHere off; Chromecast, Miracast, USB MediaPlayer, ambient mode and firmware updater kept; launcher replacement works (CleanYourTV Home); setupwraith before launcherx; reboot-checked || `tcl-55p7k/` | TCL 55P7K, Middle East (G10, G10_4K_GB, Realtek RTD2875P) | Google TV 12 | Same G10 build as `tcl-g10-google-tv/` but logkit, Samba TV ACR and ttvs ship enabled; TCL Channel, push messages, TGuard, T-Solo, Alexa, hotel/demo; OSN+, Disney+ MEA, iQIYI off by choice; setupwraith before launcherx; Settings key is KEYCODE_NOTIFICATION, Web key 4159; TCL Audio Only turns the panel off with sound playing || `tcl-55p8ls/` | TCL 55P8LS QD-Mini LED, Vietnam (G10, G10_4K_GB_32BIT, Realtek rtd6748) | Google TV 12 | Same G10 build as `tcl-g10-google-tv/`; Samba TV ACR, logkit, ttvs, TCL Channel/push/partner home rows, hotel/demo, TGuard, Alexa, T-Solo, MagiConnect, Miracast; Prime Video, YouTube Music, Play Movies/Games off by choice; saved Wi-Fi belonged to setupwraith (re-join first); Play Store auto-installs VTV Go, HBO Max, iQIYI at sign-in; launcher key services need APP_AUTO_START; reboot-checked |@@ -201,7 +201,7 @@ on that firmware, grouped and commented. These are starting points: comment out| `xiaomi-mitv-ansp0/` | Xiaomi MiTV-ANSP0 (小米电视5 Pro 65", jobs, Amlogic), China firmware 23.6.5.3226, 4 GB RAM | Android TV 9 (CN build) | Second CN-firmware Xiaomi, no Google apps: Mi analytics/push/cloud control, ad web container, shop plugin, promo reels, TV Manager, game SDK, preloaded apps, office-mode second home and voice off; updater kept; **keep PatchWall enabled** (disabling it leaves FallbackHome's black screen), set the new launcher as preferred home instead; inputs switch only with the vendor's `EXTSRC_PLAY` extra; ADB closes on every reboot; [more notes](../docs/devices/xiaomi-mitv-ansp0-jobs.txt) || `xiaomi-mitv-astp0/` | Xiaomi MiTV-ASTP0 (mulan, sold as L55M7-EA), China firmware 22.12.2.1630, 1.5 GB RAM | Android TV 9 (CN build) | Sibling of ASTP1: Mi analytics/push/cloud control, shop plugin, TV Manager, the Chinese wake word (~30% CPU) and the phone-remote relay that loops at 100-190% CPU off; casting except AirPlay, payment, voice and Mi Video off by choice; keep `com.mitv.tvhome` (Home falls to FallbackHome without it); inputs switch only with Xiaomi's `EXTSRC_PLAY`; time zone ships as Asia/Shanghai || `xiaomi-mitv-astp1/` | Xiaomi MiTV-ASTP1 (maverick), China firmware 2.40.641.0514.cn, 1 GB RAM, 720p | Android TV 9 (CN build) | First CN-firmware Xiaomi: no Google apps; stock launcher `com.mitv.tvhome` (pass `STOCK_LAUNCHER`); ADB closes on every reboot; Mi analytics/push/ads, shop plugin, TV Manager, updater off; casting and app store kept |-| `xiaomi-mitv-mteq0/` | Xiaomi TV EA Pro 55" (MiTV-MTEQ0, baymax, MediaTek), China firmware 23.6.26.4028 | Android TV 10 (CN build) | No Google apps; Mi analytics/push/cloud control, shop and pay, XiaoAI, casting and preloads off; HOME allowlist (the `com.ts.launcher` build works); standby force-stops third-party apps; ADB closes at boot; Wi-Fi country falls back to CN (5 GHz ch. 100-144 hidden, `service_region`); no CONFIRM_INSTALL so split-APK installs hang; Sogou is the only IME |+| `xiaomi-mitv-mteq0/` | Xiaomi TV EA Pro 55" (MiTV-MTEQ0, baymax, MediaTek), China firmware 23.6.26.4028 | Android TV 10 (CN build) | No Google apps; Mi analytics/push/cloud control, shop and pay, XiaoAI, casting and preloads off; HOME allowlist (the `com.ts.launcher` build works); standby force-stops third-party apps; ADB closes at boot; Wi-Fi country falls back to CN (5 GHz ch. 100-144 hidden, `service_region`); no CONFIRM_INSTALL so split-APK installs hang; Sogou is the only IME; [firmware notes](../docs/devices/xiaomi-mitv-mteq0-baymax.md) || `xiaomi-mitv-axfr1/` | Xiaomi MiTV-AXFR1 (rango, Amlogic, 1 GB), India | Android TV 11 | PatchWall, Mi analytics, sponsored rows, partner auto-installs, TV Manager; mirroring, OTA and unused streaming apps off by choice; Chromecast and voice kept; PatchWall's input popup is unused (input picker is Live TV's); custom HOME accepted, setupwraith does not claim HOME || `xiaomi-mitv-axso0/` | Xiaomi MiTV-AXSO0 (dangal; Mi TV 4C Pro 2019 / 4A Pro) | Android TV 9 | PatchWall, Glance ads, Mi TV+, Sensara, Mi analytics, MiLink; voice, Chromecast, unused streaming apps off by choice || `xiaomi-mitv-axso2/` | Xiaomi MiTV-AXSO2 (dangalUHD, India, 2 GB) | Android TV 9 | PatchWall, Mi TV+, Sensara, Mi analytics, TV Manager, updater, partner auto-installs, old partner app copies; voice, all casting and streaming apps kept; sign-in notice and storage notes |@@ -230,6 +230,7 @@ Notes for models that have no tested list yet live in [`docs/devices/`](../docs/- [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.- [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.diff --git a/tests/test_device_notes_index.py b/tests/test_device_notes_index.pynew file mode 100644index 000000000..68e6a123d--- /dev/null+++ b/tests/test_device_notes_index.py@@ -0,0 +1,150 @@+"""Every device note under docs/devices/ is linked from a page a reader can reach.++docs/devices/ is where a device report lives until someone has lived with a list long enough to+promote it into examples/. examples/README.md is the index readers come through: each row of its+table links the note that belongs to that list, and the section "Notes for models that have no+tested list yet" links the reports that have no list at all. A note in neither place is only found+by browsing the folder on GitHub, and three of them were: the Sharp 32FI4EA report, the TCL/FFalcon+MT9655 China report (whose example row never got the link its siblings have) and the MiTV-MTEQ0+baymax firmware notes. This walks the markdown once and fails on the notes nothing points at.++What counts as a reference: markdown links and images, reference definitions and `href`/`src` in raw+HTML - the destinations a reader can click, resolved relative to the page carrying them. What does+not: `http(s)`, `mailto:`, `data:`, a bare `#anchor`, and the insides of fenced code blocks, where a+path is an example rather than a link. Anchors are ignored: `note.md#section` still points at the+file, and a heading's slug is GitHub's, not ours.++Run from the repository root: python3 -m unittest discover -s tests -v+"""+import os+import re+import tempfile+import unittest+from pathlib import Path+from urllib.parse import unquote++ROOT = Path(__file__).resolve().parents[1]+NOTES = "docs/devices"++# Not documentation: the checkout's git data, the tools venv CI builds before this job runs+# (site-packages ships its own .md files), Gradle's output and a theme's node_modules.+SKIP = {".git", "venv", "node_modules", "build", ".gradle", "__pycache__"}++MARKDOWN_LINK = re.compile(r"\]\(([^)\s]+)(?:\s+\"[^\"]*\")?\)")+REFERENCE_DEF = re.compile(r"^\[[^\]]+\]:\s*(\S+)", re.M)+HTML_ATTR = re.compile(r"(?:href|src)=\"([^\"]+)\"")+FENCE = re.compile(r"```.*?```", re.S)+EXTERNAL = ("http://", "https://", "mailto:", "data:", "#", "<")+++def markdown_files(root):+ """Every .md below root, outside the folders in SKIP, in a stable order."""+ root = Path(root)+ for dirpath, dirnames, filenames in os.walk(root):+ # Prune instead of filtering after the walk: a venv holds thousands of files we never read.+ dirnames[:] = sorted(name for name in dirnames if name not in SKIP)+ for name in sorted(filenames):+ if name.endswith(".md"):+ yield Path(dirpath) / name+++def destinations(text):+ """The link destinations in one page: inline links/images, reference definitions, HTML."""+ text = FENCE.sub("", text)+ return MARKDOWN_LINK.findall(text) + REFERENCE_DEF.findall(text) + HTML_ATTR.findall(text)+++def referenced(root):+ """Repository-relative paths of every file the markdown links to, as posix strings."""+ root = Path(root)+ out = set()+ for page in markdown_files(root):+ for target in destinations(page.read_text(encoding="utf-8", errors="replace")):+ if target.startswith(EXTERNAL):+ continue+ # A link may carry an anchor of its own ("note.md#section"): the file is still the target.+ local = target.split("#")[0]+ if not local:+ continue+ resolved = (page.parent / unquote(local)).resolve()+ out.add(os.path.relpath(resolved, root).replace(os.sep, "/"))+ return out+++def unlinked_notes(root):+ """Repository-relative paths of the files under docs/devices/ that no markdown file links to."""+ root = Path(root)+ linked = referenced(root)+ out = []+ for name in sorted(os.listdir(root / NOTES)):+ path = root / NOTES / name+ if not path.is_file():+ continue+ rel = f"{NOTES}/{name}"+ if rel not in linked:+ out.append(rel)+ return out+++class DeviceNotesLinkedTest(unittest.TestCase):+ def test_every_device_note_is_linked(self):+ unlinked = unlinked_notes(ROOT)+ message = "\n".join(unlinked)+ self.assertEqual([], unlinked, "notes nothing links to (add them to examples/README.md, "+ "either to the row of their list or to the notes index):\n" + message)++ def test_a_note_nothing_links_to_is_reported(self):+ # The checker has to be able to fail, or the test above proves nothing.+ with tempfile.TemporaryDirectory() as tmp:+ root = Path(tmp)+ (root / NOTES).mkdir(parents=True)+ (root / NOTES / "orphan.md").write_text("# Orphan\n", encoding="utf-8")+ (root / "README.md").write_text("[list](examples/other/debloat.txt)\n", encoding="utf-8")+ self.assertEqual([f"{NOTES}/orphan.md"], unlinked_notes(root))++ def test_a_row_that_links_its_note_counts(self):+ with tempfile.TemporaryDirectory() as tmp:+ root = Path(tmp)+ (root / NOTES).mkdir(parents=True)+ (root / NOTES / "baymax.md").write_text("# Notes\n", encoding="utf-8")+ (root / "examples").mkdir()+ (root / "examples" / "README.md").write_text(+ "| `xiaomi-mitv-mteq0/` | Xiaomi | Android 10 | list; "+ "[notes](../docs/devices/baymax.md) |\n", encoding="utf-8")+ self.assertEqual([], unlinked_notes(root))++ def test_a_note_named_outside_a_link_is_still_reported(self):+ # A path shown in a command, a bare backticked path or an external URL is not a way through.+ with tempfile.TemporaryDirectory() as tmp:+ root = Path(tmp)+ (root / NOTES).mkdir(parents=True)+ (root / NOTES / "sharp-32fi4ea.md").write_text("# Sharp\n", encoding="utf-8")+ (root / "README.md").write_text(+ "```\nsee docs/devices/sharp-32fi4ea.md\n```\n"+ "`docs/devices/sharp-32fi4ea.md`\n"+ "[upstream](https://github.com/Gathin23/cleanyourtv/blob/main/docs/devices/sharp-32fi4ea.md)\n",+ encoding="utf-8")+ self.assertEqual([f"{NOTES}/sharp-32fi4ea.md"], unlinked_notes(root))++ def test_an_anchor_or_an_encoded_space_in_the_destination_still_counts(self):+ with tempfile.TemporaryDirectory() as tmp:+ root = Path(tmp)+ (root / NOTES).mkdir(parents=True)+ (root / NOTES / "note one.md").write_text("# Note\n", encoding="utf-8")+ (root / "README.md").write_text("[notes](docs/devices/note%20one.md)\n", encoding="utf-8")+ self.assertEqual([], unlinked_notes(root))++ def test_build_folders_are_skipped(self):+ # site-packages inside the CI venv links to plenty of markdown that is not ours.+ with tempfile.TemporaryDirectory() as tmp:+ root = Path(tmp)+ (root / NOTES).mkdir(parents=True)+ (root / NOTES / "note.md").write_text("# Note\n", encoding="utf-8")+ (root / "venv" / "lib").mkdir(parents=True)+ (root / "venv" / "lib" / "third-party.md").write_text(+ "[note](../../docs/devices/note.md)\n", encoding="utf-8")+ self.assertEqual([f"{NOTES}/note.md"], unlinked_notes(root))+++if __name__ == "__main__":+ unittest.main()