Skip to content

Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.

docs: a QM7 owner's report, and the Cast receiver that runs but stops announcing

xbsheng13429ffc6351
diff --git a/docs/TROUBLESHOOTING.md b/docs/TROUBLESHOOTING.md
index aec219597..7fdb952d4 100644
--- a/docs/TROUBLESHOOTING.md
+++ b/docs/TROUBLESHOOTING.md
@@ -116,6 +116,21 @@ Things that bit us or contributors, so they don't bite you. Commands use `tools/
the credentials in memory, so casting survives until the next reboot. Reported on Google's own
Chromecast hardware so far; the Xiaomi Mi Box S 2nd gen list says casting from a Pixel still works
there with setupwraith off.
+- **Casting disappears although the Cast receiver is still running**, seen on a TCL 75QM751G (QM7,
+ Google TV 14) after its list, and the same "alive is not discoverable" conclusion on a TCL
+ BeyondTV2 (Android TV 9, R851T02 V660) in the same thread. Phones and a PC stop seeing the TV,
+ `com.google.android.apps.mediashell` is up and listening on 8008/8009, and there is no
+ `No private key` or `CastInfoProvider` line — so this is not the setupwraith case above, and
+ re-enabling setupwraith does not help. Check discovery instead of the process:
+ `tools/tv.py "logcat -d -s cast_shell | grep -E 'Done announcing|responses sent'"` and
+ `tools/tv.py "dumpsys activity service com.google.android.apps.mediashell | grep WargService"`.
+ A receiver that is advertising logs `MdnsAppFilter: Done announcing.`,
+ `responses sent in 60 seconds: N` and `Gcm.Register.Success=2`, with `WargService` up. If those are
+ missing while the process lives, the receiver is hung: the QM7 report saw its connections sitting
+ in `CLOSE_WAIT` on 8009 with unread data. `tools/tv.py "am force-stop
+ com.google.android.apps.mediashell"` restarts it (the TV starts it again on demand), and
+ advertising returned within seconds, without a reboot. Device notes:
+ [TCL 75QM751G](devices/tcl-75qm751g-qm7.md).
- **The TV drops off Wi-Fi every minute right after the install**, seen on Google TV 14 (Xiaomi
MiTV-MZTU0): the same setupwraith `.RecoveryActivity` took Home and system_server crash-looped
on it. The install script now starts the new launcher before disabling the stock one, sets the
diff --git a/docs/devices/tcl-75qm751g-qm7.md b/docs/devices/tcl-75qm751g-qm7.md
new file mode 100644
index 000000000..1b440b739
--- /dev/null
+++ b/docs/devices/tcl-75qm751g-qm7.md
@@ -0,0 +1,102 @@
+# TCL 75QM751G (QM7, 2024): the QM6K list on the same G08 board
+
+One owner's report ([#453](https://github.com/Gathin23/cleanyourtv/issues/453)), applied and
+checked on the same day and **not** lived with for several days, so this is not a list of its own.
+Run [`examples/tcl-qm6k-google-tv/debloat.txt`](../../examples/tcl-qm6k-google-tv/debloat.txt) —
+same `G08` board, same `AU14` build — and read the deltas and the two traps below. A second owner
+confirmed the cast-receiver symptom on a TCL BeyondTV2 in the same thread.
+
+## Identify the firmware, not the retail name
+
+| Field | Observed value |
+|---|---|
+| Retail model | `75QM751G` (QM7, 2024, US), supplied by the owner |
+| `ro.product.model` | `Smart TV Pro` |
+| `ro.product.device` | `G08` |
+| `ro.product.manufacturer` | `TCL` |
+| Android / SDK | `14` / `34` |
+| `ro.build.display.id` | `tcl9618-user 14 UTT2.250416.001 AU14 release-keys` |
+| `ro.adb.secure` | `1` |
+
+`Smart TV Pro` is shared across TCL ranges, so it decides nothing on its own. What matters here is
+`G08` + `AU14`: that is the pair the QM6K list was already applied on (#23 reported the same board
+on AU14), and it is why the same list is the starting point on this set.
+
+## Connection
+
+Network ADB answered over Ethernet without the wireless-debugging pairing step. `ro.adb.secure=1`
+still means the RSA prompt on the TV has to be accepted. Whether a wireless-only setup on another
+unit of this model needs pairing was not tested.
+
+## What the QM6K list needed on this set
+
+Every package in the QM6K list was disabled, with one no-op: `com.tcl.repairguide` is **not
+installed** on this preload (`Unknown package`), so the e-manual entry is missing rather than
+disabled. The owner also uncommented these optional lines of that list:
+
+| Package | What goes with it |
+|---|---|
+| `com.netflix.ninja`, `com.netflix.tokenmanager` | Netflix (the two lines belong together) |
+| `com.google.android.katniss` | Google Assistant voice |
+| `com.google.android.tv.remote.service` | Google TV phone-app remote; on the C755 list it also carries the remote's microphone |
+| `com.tcl.airplay2`, `com.mediatek.AirplayAPK`, `com.mediatek.airplaydaemon` | AirPlay (three lines together) |
+
+The Cast receiver (`com.google.android.apps.mediashell`) was kept, and casting still broke — see
+below.
+
+## setupwraith is skipped while it owns the saved Wi-Fi, Ethernet or not
+
+The first `launcher/build-and-install.sh` run rolled back as designed: Home went to
+`com.google.android.tungsten.setupwraith/.RecoveryActivity`. `tools/disable.sh` then skipped
+setupwraith because the Wi-Fi network saved during setup belonged to it. The TV was on Ethernet and
+that changed nothing: the guard asks who owns the saved network, not which interface is up. Only
+after forgetting that network in Settings did the second run disable setupwraith and make
+`com.gathin.tvhome` Home.
+
+So on a set like this, decide before the install, not after the rollback:
+
+- check the owner of the saved network first:
+ `tools/tv.py "dumpsys wifi" | grep -o 'cname=[^ ]*'`;
+- forget the network and rejoin it on the TV (it then belongs to `android.uid.system`), which is
+ what this owner did, and what keeps Wi-Fi working afterwards;
+- `FORCE_SETUPWRAITH=1` skips the guard instead, which is fine on a set that stays on Ethernet and
+ loses nothing when that saved network is deleted.
+
+## Launcher settings that worked
+
+`INPUT_KEY_SERVICE=1`, `live_tv_package` `com.tcl.tv` (the player; `com.tcl.tvinput` has no
+launcher activity) and `settings_key_keycodes` `83` for the gear button. These match the other G08
+lists, and the owner reports Live TV, inputs and the launcher working with them; the individual
+remote keys were not enumerated beyond that.
+
+## Casting: the receiver can be running and still invisible
+
+After the list, phones and a PC could not see the TV. `com.google.android.apps.mediashell` was
+running and listening on 8008/8009, so "the process is up" proves nothing. This was also not the
+setupwraith credentials failure: briefly re-enabling setupwraith did not help, and the log had no
+`No private key` or `CastInfoProvider` lines. The receiver had stopped answering mDNS — its
+connections sat in `CLOSE_WAIT` on 8009 with unread data. `am force-stop
+com.google.android.apps.mediashell` restarted it, the TV advertised again within seconds, and
+casting from a PC worked, without a reboot.
+
+Check discovery, not the process:
+
+```sh
+tools/tv.py "logcat -d -s cast_shell | grep -E 'Done announcing|responses sent'"
+tools/tv.py "dumpsys activity service com.google.android.apps.mediashell | grep WargService"
+```
+
+A receiver that is advertising logs `MdnsAppFilter: Done announcing.`,
+`responses sent in 60 seconds: N` and `Gcm.Register.Success=2`, with `WargService` up. Missing
+`Done announcing` while the process lives is the hang this owner hit. The second owner did not
+reproduce the hang — their list leaves the Cast stack alone — and did not stream video, so the log
+evidence covers discovery, not playback.
+
+## Test limits
+
+- One set, one firmware, one session, same day. Nothing here has been lived with for days.
+- Regional builds, other panel sizes, wireless-debugging pairing, Wi-Fi after setupwraith is
+ disabled, reboot persistence of the disabled packages, the remote's app buttons, and playback
+ through Netflix, Assistant or AirPlay after those packages were turned off are all untested.
+- Casting was verified from a PC only, for discovery and one stream; casting from a phone and after
+ a reboot was not re-checked.
diff --git a/examples/README.md b/examples/README.md
index 701c189ac..0a05d9099 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -98,7 +98,7 @@ on that firmware, grouped and commented. These are starting points: comment out
| `tcl-beyondtv2-latin-america/` | TCL BeyondTV2 (Latin America / Brazil, Realtek RTD2851) | Android TV 9 | TCL analytics and boot content feed; `com.tcl.esticker` does not stay disabled on this firmware; UK Freeview apps already off at the factory |
| `tcl-beyondtv2-android-11/` | TCL BeyondTV2, Android 11 build (AR05, Realtek rtd285o) | Android TV 11 | Different package set from the Android 9 BeyondTV2 above (adds `overseasappshow`, `usercenter`, MagiConnect, `notereminder`); **`com.tcl.overseasappshow` re-enables MagiConnect, notereminder and tclhome_master on every boot**, so it is the key entry; partnercustomizer kept (it carries the remote's TKey activity on this unit); voice, mirroring, phone remote and backdrop off by choice, OTA kept; 3 HDMI ports, TvInputManager works, setupwraith safe |
| `tcl-c755-google-tv/` | TCL C755 QD-Mini LED, 2024, Australia (G08, MediaTek tcl9618) | Google TV 14 | Samba TV ACR (ttvs), TCL Live, store/hotel demo, Stan; casting and mirroring off by choice; keep `tv.remote.service` (it carries the remote's mic) |
-| `tcl-qm6k-google-tv/` | TCL QM6K Pro, 2025 (G08, MediaTek tcl9618) | Google TV 14 | Samba TV ACR (ttvs), TCL TV+, TCL Live, store/hotel demo; setupwraith must go for a custom launcher (also AU14, #23) |
+| `tcl-qm6k-google-tv/` | TCL QM6K Pro, 2025 (G08, MediaTek tcl9618) | Google TV 14 | Samba TV ACR (ttvs), TCL TV+, TCL Live, store/hotel demo; setupwraith must go for a custom launcher (also AU14, #23); a QM7 (2024) owner ran this list with seven extra packages — [deltas and a hung Cast receiver](../docs/devices/tcl-75qm751g-qm7.md) |
| `tcl-g07-google-tv/` | TCL Smart TV (G07, G07_4K_GB_NF, Realtek RTD2851A, 2 GB) | Google TV 11 | TCL BI analytics (ttvs, also the firmware updater), TGuard, waterfall, TCL Live, TCL Home dashboard, messages, hotel/demo, partner auto-installs; voice, Miracast, MagiConnect, T-Solo, firmware updates and unused preloads off by choice, Chromecast kept; launcherx, setupwraith and dreamx off (Wi-Fi belonged to android.uid.system), reboot-checked; Input key works without InputKeyService, gear is scancode 561 (`settings_key_scancodes`), Netflix and YouTube buttons need an accessibility helper |
| `tcl-g03-google-tv/` | TCL Smart TV Pro (G03, G03_4K_GB, BeyondTV4, Realtek R51MT05, V8-R51MT05-LF1V620), Middle East firmware | Google TV 11 | Same platform as tcl-43c645: TCL BI analytics and logkit, promo rows (TCL Channel, BrowseHere), dashboard, messages, partner auto-installs; streaming apps, voice, Chromecast, Miracast/T-Cast, USB player, game bar, TCL Live off by choice, firmware updates kept; launcherx, setupwraith and dreamx off (setupwraith owned the Wi-Fi: forget and re-join first), reboot-checked; Input key works without InputKeyService, gear is keycode 4077 (`settings_key_keycodes`), config.json sets Live TV to com.tcl.tv |
| `tcl-g05-google-tv/` | TCL Smart TV Pro (G05, G05_4K_US, MediaTek MT5889) | Google TV 11 | TCL Channel, waterfall, ttvs BI, TGuard; Quick Panel off by choice; setupwraith returned after a reboot, launcher half unverified |
@@ -133,6 +133,7 @@ Notes for models that have no tested list yet live in [`docs/devices/`](../docs/
- [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.
- [Xiaomi MiTV-MFTR0 "freeguy"](../docs/devices/xiaomi-mitv-mftr0-freeguy.txt), China, Android 14: inputs, Xiaomi settings intents, app discovery.
+- [TCL `75QM751G`](../docs/devices/tcl-75qm751g-qm7.md) (QM7, 2024, `G08`, Android 14 `UTT2.250416.001 AU14`): the QM6K list applies with seven extra packages, setupwraith owns the saved Wi-Fi even on an Ethernet set, and the Cast receiver can be up while it has stopped advertising.
To add your TV, see [CONTRIBUTING.md](../CONTRIBUTING.md). The quickest way to get a list is to
run the prompt in [PROMPT.md](../PROMPT.md) and copy the packages your assistant disabled.
diff --git a/tests/test_qm751g_note.py b/tests/test_qm751g_note.py
new file mode 100644
index 000000000..fbffb9ebe
--- /dev/null
+++ b/tests/test_qm751g_note.py
@@ -0,0 +1,139 @@
+"""Pins the QM7 (75QM751G) device note and the casting bullet it exists for.
+
+The note is one owner's same-day report (#453), not a list: it has to keep sending people to the
+QM6K list, name the seven packages that owner turned off, and stay honest about how little was
+tested. Whitespace is flattened before matching because both files wrap their prose.
+"""
+import re
+from pathlib import Path
+import unittest
+
+
+ROOT = Path(__file__).resolve().parents[1]
+PAGE = ROOT / "docs" / "devices" / "tcl-75qm751g-qm7.md"
+TROUBLE = ROOT / "docs" / "TROUBLESHOOTING.md"
+EXAMPLES = ROOT / "examples" / "README.md"
+LINK = "../docs/devices/tcl-75qm751g-qm7.md"
+
+
+def flat(text):
+ return re.sub(r"\s+", " ", text)
+
+
+def bullets(path):
+ """Top-level `- **Title** ...` bullets of a markdown file, as (title, flattened text)."""
+ blocks, current = [], None
+ for line in path.read_text(encoding="utf-8").split("\n"):
+ if line.startswith("- **"):
+ if current:
+ blocks.append(current)
+ current = [line]
+ elif current is not None and (not line.strip() or line.startswith(" ")):
+ current.append(line)
+ elif current is not None:
+ blocks.append(current)
+ current = None
+ if current:
+ blocks.append(current)
+ out = []
+ for block in blocks:
+ text = flat(" ".join(block))
+ out.append((text.split("**")[1], text))
+ return out
+
+
+def links(text, base=None):
+ targets = re.findall(r"\]\(([^)\s]+)\)", text)
+ if base is None:
+ return targets
+ return [str((base / target).resolve()) for target in targets if not target.startswith("http")]
+
+
+
+class Qm751gNoteTest(unittest.TestCase):
+ def setUp(self):
+ self.page = PAGE.read_text(encoding="utf-8")
+ self.flat = flat(self.page)
+
+ def test_names_the_firmware_not_the_retail_name(self):
+ self.assertIn("75QM751G", self.flat)
+ self.assertIn("`G08`", self.flat)
+ self.assertIn("tcl9618-user 14 UTT2.250416.001 AU14 release-keys", self.flat)
+ self.assertIn("Smart TV Pro", self.flat, "the generic model string belongs in the table")
+ self.assertIn("shared across TCL ranges", self.flat)
+
+ def test_sends_the_reader_to_the_qm6k_list(self):
+ self.assertIn("not a list of its own", self.flat)
+ target = (ROOT / "examples" / "tcl-qm6k-google-tv" / "debloat.txt").resolve()
+ self.assertIn(str(target), links(self.page, PAGE.parent),
+ "the note must link the list it defers to")
+ self.assertTrue(target.is_file())
+
+ def test_records_the_seven_extra_packages(self):
+ for package in (
+ "com.netflix.ninja",
+ "com.netflix.tokenmanager",
+ "com.google.android.katniss",
+ "com.google.android.tv.remote.service",
+ "com.tcl.airplay2",
+ "com.mediatek.AirplayAPK",
+ "com.mediatek.airplaydaemon",
+ ):
+ with self.subTest(package=package):
+ self.assertIn(package, self.flat)
+ self.assertIn("com.tcl.repairguide", self.flat)
+ self.assertIn("Unknown package", self.flat, "repairguide is absent here, not disabled")
+
+ def test_keeps_the_scope_honest(self):
+ self.assertIn("same day", self.flat)
+ self.assertIn("lived with", self.flat)
+ self.assertIn("One set, one firmware, one session", self.flat)
+ self.assertIn("## Test limits", self.page)
+
+ def test_setupwraith_guard_and_wifi_owner(self):
+ self.assertIn("dumpsys wifi", self.flat)
+ self.assertIn("cname=", self.flat)
+ self.assertIn("FORCE_SETUPWRAITH=1", self.flat)
+ self.assertIn("Ethernet", self.flat, "the guard looks at the saved network, not the interface")
+
+
+class CastingBulletTest(unittest.TestCase):
+ def test_hung_receiver_bullet_exists(self):
+ found = [text for title, text in bullets(TROUBLE) if title.startswith("Casting disappears")]
+ self.assertEqual(len(found), 1, "expected exactly one 'Casting disappears' bullet")
+ bullet = found[0]
+ for needle in (
+ "force-stop",
+ "com.google.android.apps.mediashell",
+ "Done announcing",
+ "WargService",
+ "CLOSE_WAIT",
+ "not the setupwraith case",
+ ):
+ with self.subTest(needle=needle):
+ self.assertIn(needle, bullet)
+ self.assertIn("devices/tcl-75qm751g-qm7.md", bullet)
+
+ def test_credentials_case_kept_apart(self):
+ titles = [title for title, _ in bullets(TROUBLE)]
+ self.assertTrue(any(t.startswith("Casting from a phone fails") for t in titles),
+ "the setupwraith/CastInfoProvider bullet must stay")
+ credentials = [t for title, t in bullets(TROUBLE) if title.startswith("Casting from a phone fails")][0]
+ self.assertIn("CastInfoProvider", credentials)
+
+
+class IndexTest(unittest.TestCase):
+ def test_examples_readme_points_here(self):
+ text = EXAMPLES.read_text(encoding="utf-8")
+ self.assertIn(LINK, links(text), "the docs/devices/ index has to list the page")
+ index = [l for l in text.split("\n") if l.startswith("- [TCL `75QM751G`]")]
+ self.assertEqual(len(index), 1, "exactly one index bullet for this model")
+ self.assertIn("QM7", index[0])
+ self.assertIn(LINK, index[0])
+ rows = [l for l in text.split("\n") if l.startswith("| `tcl-qm6k-google-tv/`")]
+ self.assertEqual(len(rows), 1)
+ self.assertIn("QM7 (2024)", rows[0], "the QM6K row has to mention the QM7 run")
+
+
+if __name__ == "__main__":
+ unittest.main()