Skip to content

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

docs: the hengshan volume trade is a third unit, soundbar or not (#1326)

xbshengd25d2f6bb57c
diff --git a/docs/TROUBLESHOOTING.md b/docs/TROUBLESHOOTING.md
index c0454b294..d0e0492eb 100644
--- a/docs/TROUBLESHOOTING.md
+++ b/docs/TROUBLESHOOTING.md
@@ -724,7 +724,7 @@ network, which is why the closing step in [README](../README.md#questions-people
Hold volume up or down and the volume moves one step per press instead of ramping. The remote may be
fine and so may the debloat: the ramp is back the moment no key-filtering accessibility service is bound,
and `getevent -lt` shows whether the repeat still arrives from the remote while the button is held. On a
-TCL 55P71B Pro (`G09`, Google TV 12, `STT2.230203.001.AS23`) it was all or nothing - `HomeKeyService`
+TCL 55P71B Pro (`G09`, Google TV 12, `STT2.230203.001.AS23`, #763) it was all or nothing - `HomeKeyService`
alone, `InputKeyService` alone and both together all broke it, with `settings put secure
enabled_accessibility_services ''` plus `accessibility_enabled 0` restoring it. The dumps show
`capabilities=8` (`CAPABILITY_CAN_FILTER_KEY_EVENTS`), so the platform routes every key through a filter
@@ -735,10 +735,15 @@ alone (#944), where the empty list was not tried because it also unhooks the but
installed for. An onn 4K Streaming Box (`YOC`, Google TV 14, `URO4.260304.011.B1.15051976`) does the same with
`HomeKeyService` alone; there `key_filter` false (config.xml or a theme) brought the repeat back with the helper
still bound, so a helper kept for something other than keys need not cost it. A Hisense 75U75N (`hengshan`,
-Google TV 12, `STT2.230310.002`) with a CEC soundbar does it with `HomeKeyService` alone, and its log shows where
-the repeat goes: the filter hands volume keys to the window policy first, Hisense's policy sends the CEC step and
-consumes the key, so no helper sees it and nothing repeats (the G09 note has the log). Check the state first, do
-not rewrite it blind:
+Google TV 12, `STT2.230310.002`) with `HomeKeyService` alone does it too, and its log shows where the repeat goes:
+the filter hands volume keys to the window policy first, Hisense's policy sends the CEC step and consumes the key,
+so no helper sees it and nothing repeats (the G09 note has the log). The soundbar is not the condition: that unit
+had one, while a 55U7N on the same board and build steps once per press with `HomeKeyService` alone and no soundbar
+in its report (#1326), so the CEC step is one unit's account of a key the policy takes, not the cause. The 55U7N
+also shows where that board's app buttons go: with launcherx disabled Hisense's own `GlobalKeyReceiver` receives
+295, 607 and 606 and nothing opens, so only a helper answers them
+([the hengshan notes](../examples/hisense-u75-hengshan/README.md)); its held-key capture was not taken. Check the
+state first, do not rewrite it blind:
```sh
tools/tv.py 'settings get secure enabled_accessibility_services'
diff --git a/examples/README.md b/examples/README.md
index 2a00d1df7..e2be8f6ca 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -56,7 +56,7 @@ on that firmware, grouped and commented. These are starting points: comment out
| `hisense-smarttv-4k-ffm/` | Hisense SmartTV 4K FFM (huangshan, MediaTek), Latin America; also the US Hisense U9DG | Android TV 10 | ACR (evservice), VIDAA preload, store/hotel mode, OTA, Google partner tracking and PAI auto-installs; US (U9DG) preloads, Alexa, Assistant, Miracast and RemoteNOW off by choice; smartsense must stay enabled; setupwraith kept (no HOME claim); Input button is KEYCODE_TV_INPUT → VIEW_INPUTS, which only the stock launcher answered, so config.json sets handle_view_inputs |
| `hisense-smarttv-4k-ffm-lushan/` | Hisense SmartTV 4K FFM (lushan, MediaTek MT9676), Mongolia | Google TV 12 | Third FFM board (Android 12): ACR (evservice), Google partner tracking and feedback, Hisense browser, Family Moment, store mode and first-time setup, the cleaner with a boot receiver (protector); Prime Video, iQIYI, Mercado Play, HBO Max and Hisense Alexa off by choice; Assistant, casting, OTA kept; smartsense/AIoT never touched; setupwraith must go (its RecoveryActivity claims HOME, the component cannot be disabled alone; it owns saved Wi-Fi); remote YouTube, HDMI, Apps and Subtitle buttons are scancodes 469, 362, 580, 370 |
| `hisense-smarttv-4k-ffm-android11/` | Hisense SmartTV 4K FFM (songshan, MediaTek m7632) | Android 11 (SDK 30) | Android 11 sibling of the FFM list (same model string, different board and package set): store demo, first-time experience, Google partner auto-install, disclaimer; setupwraith must go for a launcher swap (it owns an unused saved Wi-Fi network but not the active one, so check `dumpsys wifi`); smartsense/AIoT kept (Recovery risk on this family); remote app buttons are custom keycodes (YouTube 293, Prime Video 295) and scancodes (Disney+ 484, SonyLIV 606), gear is keycode 83, Netflix is firmware-handled; streaming/voice/cast/OTA left on |
-| `hisense-u75-hengshan/` | Hisense U75 / 75U75N (hengshan, MediaTek), Latin America and US | Google TV 12 | Vtp_ACR content recognition, VIDAA Channels Plus + content tab, Family Moment, store/hotel/factory, DeviceAssistant cleaner, Ginga broadcast middleware, Google PAI auto-installs; OTA, casting and all streaming apps kept by choice; smartsense/AIoT family must stay (Recovery risk); 75U75N (US) second unit: remote button codes, a dock `config.json`, and why a key helper costs the volume ramp with a CEC soundbar |
+| `hisense-u75-hengshan/` | Hisense U75 / 75U75N (hengshan, MediaTek), Latin America and US | Google TV 12 | Vtp_ACR content recognition, VIDAA Channels Plus + content tab, Family Moment, store/hotel/factory, DeviceAssistant cleaner, Ginga broadcast middleware, Google PAI auto-installs; OTA, casting and all streaming apps kept by choice; smartsense/AIoT family must stay (Recovery risk); 75U75N (US) second unit: remote button codes, a dock `config.json`, and why a key helper costs the volume ramp with or without a CEC soundbar |
| `hitachi-65qledsm20/` | Hitachi 65QLEDSM20 (MTC, bangbae, MediaTek m7322), Australia | Android TV 11 | Anoki ACR and FAST channels, JVC auto-installs; the "demo" package handles the Input key and remote pairing; 1.3 GB |
| `hitachi-cdh-le32smart21/` | Hitachi CDH-LE32SMART21 (TCL-built C06, C06_2K_GB, MediaTek MT9221, 1 GB), Argentina | Android TV 11 | TCL promo/portal/popups, TGuard (memory manager keeps running), Google feedback and recommendation rows; same platform as the TCL 40S5400A; ttvs is the firmware updater, keep it; /data nearly full blocks installs, low RAM makes TGuard kill Play mid-install; Prime Video, Chromecast, USB players off by choice |
| `hotack-smart2kpjt/` | HOTACK SMART2KPJT projector, "Whale TV 95C8" (Amlogic am30b8, WhaleOS S8E, Zeasn firmware) | Android 13 | Zeasn token/tracker, device portal, logger and factory test apps; Zeasn App Gallery is the only store (no Play Store) and is kept; keystone, focus helper, OTA and factory menu kept; Live TV app `com.zeasn.livetv` kept (it hosts HDMI playback); Input needs INPUT_KEY_SERVICE=1 (no system switcher), Netflix is F2 and Disney+ is keycode 312 (`app_keys`); HDMI, USB and Bluetooth checked; 1 GB |
diff --git a/examples/hisense-u75-hengshan/README.md b/examples/hisense-u75-hengshan/README.md
index ab29e8901..c5a6f6329 100644
--- a/examples/hisense-u75-hengshan/README.md
+++ b/examples/hisense-u75-hengshan/README.md
@@ -1,7 +1,8 @@
# Hisense U75 / 75U75N (hengshan), Google TV 12
Notes for the `hengshan` board, firmware `STT2.230310.002`. The first list came from a Latin America U75; the
-75U75N notes are from a US unit (one owner, from 2026-10-22).
+75U75N notes are from a US unit (one owner, from 2026-10-22); a 55U7N report of 2026-10-24 (#1326) confirms the
+board, the build and the volume trade below.
## Live TV and inputs
@@ -35,8 +36,12 @@ answer it. `config.json` maps all five for `HomeKeyService` (`HOME_KEY_SERVICE=1
settings panel and the app buttons their apps.
That costs the volume ramp. With the helper bound, holding volume steps once per press. With a CEC soundbar
-the log shows why: the accessibility filter hands volume keys to the window policy, which sends the CEC step and
-consumes them, so nothing repeats. The log and the choices are in
+the 75U75N's log shows why: the accessibility filter hands volume keys to the window policy, which sends the CEC
+step and consumes them, so nothing repeats. The soundbar is what that unit's log explains, not what the loss
+needs: a 55U7N on the same board and build steps once per press with `HomeKeyService` alone and no soundbar in the
+report (#1326), and its log repeats the app-button rows above (`GlobalKeyReceiver` receives 295, 607 and 606 with
+launcherx disabled and nothing opens). Its held-key capture was not taken, so the CEC step is unproven there. The
+log and the choices are in
[the key-repeat note](../../docs/devices/tcl-55p71b-g09-key-repeat.md). Re-enabling launcherx to answer the
buttons takes Home back on this firmware. The 75U75N owner kept the ramp and runs without the helper.
diff --git a/examples/hisense-u75-hengshan/debloat.txt b/examples/hisense-u75-hengshan/debloat.txt
index 3b65ea273..3255a9faa 100644
--- a/examples/hisense-u75-hengshan/debloat.txt
+++ b/examples/hisense-u75-hengshan/debloat.txt
@@ -5,6 +5,9 @@
# Second unit: Hisense 75U75N, US market, same device and build (STT2.230310.002). This list applied
# there except com.hisense.odinbrowser (kept by that owner); README.md has its remote's button codes
# and notes, config.json its dock.
+# Third unit: Hisense 55U7N, same device and build, reported 2026-10-24 (#1326): the volume ramp goes the
+# same way with HomeKeyService alone and no CEC soundbar, so that trade is the board's, not the soundbar's.
+# README.md carries it.
#
# Apply: TV_HOST=<tv ip> tools/disable.sh examples/hisense-u75-hengshan/debloat.txt
# Undo: TV_HOST=<tv ip> tools/restore.sh examples/hisense-u75-hengshan/debloat.txt com.google.android.apps.tv.launcherx
diff --git a/examples/hisense-u75-hengshan/tv.json b/examples/hisense-u75-hengshan/tv.json
index c8b25863b..bebcceeaf 100644
--- a/examples/hisense-u75-hengshan/tv.json
+++ b/examples/hisense-u75-hengshan/tv.json
@@ -2,5 +2,5 @@
"tv": "Hisense U75 / 75U75N (hengshan, MediaTek), Latin America and US",
"os": "Google TV 12",
"brand": "Hisense",
- "notes": "Vtp_ACR content recognition, VIDAA Channels Plus + content tab, Family Moment, store/hotel/factory, DeviceAssistant cleaner, Ginga broadcast middleware, Google PAI auto-installs; OTA, casting and all streaming apps kept by choice; smartsense/AIoT family must stay (Recovery risk); 75U75N (US) second unit: remote button codes, a dock `config.json`, and why a key helper costs the volume ramp with a CEC soundbar"
+ "notes": "Vtp_ACR content recognition, VIDAA Channels Plus + content tab, Family Moment, store/hotel/factory, DeviceAssistant cleaner, Ginga broadcast middleware, Google PAI auto-installs; OTA, casting and all streaming apps kept by choice; smartsense/AIoT family must stay (Recovery risk); 75U75N (US) second unit: remote button codes, a dock `config.json`, and why a key helper costs the volume ramp with or without a CEC soundbar"
}
diff --git a/tests/test_hengshan_key_helper_units.py b/tests/test_hengshan_key_helper_units.py
new file mode 100644
index 000000000..490f438ae
--- /dev/null
+++ b/tests/test_hengshan_key_helper_units.py
@@ -0,0 +1,183 @@
+"""Pins the third unit of the `hengshan` board's key-helper/volume-ramp trade (#1326).
+
+The key-helper section of docs/TROUBLESHOOTING.md described the Hisense case as one unit *with a CEC
+soundbar*, and explained the loss through the CEC step. #1326 is a 55U7N on the same board and build
+(`hengshan`, Google TV 12, `STT2.230310.002`) that steps once per press with `HomeKeyService` alone and
+no soundbar in the report, so the soundbar is what that unit's log accounted for, not what the loss
+needs. These tests keep the three places that describe the board - the list header, the folder notes and
+the troubleshooting page - naming the units the list records and the build and keycodes the notes carry,
+so the page cannot describe one unit as if it were the whole board, and a fourth unit cannot be added to
+the list without the page that an owner searches before installing a helper following.
+"""
+import re
+import unittest
+from pathlib import Path
+
+
+ROOT = Path(__file__).resolve().parents[1]
+FOLDER = ROOT / "examples" / "hisense-u75-hengshan"
+LIST = FOLDER / "debloat.txt"
+NOTE = FOLDER / "README.md"
+TROUBLE = ROOT / "docs" / "TROUBLESHOOTING.md"
+
+HEADING = "## A key helper is bound and a held remote button stopped repeating"
+BOARD = "hengshan"
+# A model token as the list header and the notes write them: 75U75N, 55U7N.
+MODEL = re.compile(r"\b(\d{2}[A-Z]\d[A-Z0-9]{0,2})\b")
+UNIT_LINE = re.compile(r"^#\s*(?:Second|Third|Fourth|Fifth|Sixth)\s+unit:\s*(.+)$")
+BUILD = re.compile(r"build\s+([A-Z0-9]+(?:\.[A-Z0-9]+)*)")
+
+
+def flat(path):
+ return re.sub(r"\s+", " ", path.read_text(encoding="utf-8"))
+
+
+def header(text):
+ """The comment block before the list's own commands: what the file says about the units it came from."""
+ return text.split("# Apply:", 1)[0]
+
+
+def units(text):
+ """Every model the header records as a further unit of the board, in the order it records them."""
+ found = []
+ for line in text.splitlines():
+ match = UNIT_LINE.match(line.strip())
+ if not match:
+ continue
+ model = MODEL.search(match.group(1))
+ if model:
+ found.append(model.group(1))
+ return found
+
+
+def build(text):
+ """The firmware build the header states, or '' when it states none."""
+ match = BUILD.search(header(text))
+ return match.group(1) if match else ""
+
+
+def section_of(text, heading):
+ """The flattened body under `heading` up to the next `##` heading; None when the heading is gone."""
+ flat_text = re.sub(r"\s+", " ", text)
+ if heading not in flat_text:
+ return None
+ rest = flat_text.split(heading, 1)[1]
+ following = re.search(r"\s##\s", rest)
+ return rest if following is None else rest[:following.start()]
+
+
+def board_sentences(text, heading):
+ """The sentences of that section that talk about this board, flattened."""
+ body = section_of(text, heading)
+ if body is None:
+ return []
+ return [sentence for sentence in re.split(r"(?<=[.:]) ", body)
+ if "Hisense" in sentence or f"`{BOARD}`" in sentence or BOARD in sentence]
+
+
+def remote_codes(text):
+ """{button: keycode} from the folder notes' remote table, read the way the table lays it out."""
+ codes = {}
+ for line in text.splitlines():
+ cells = [cell.strip() for cell in line.strip().strip("|").split("|")]
+ if len(cells) < 2 or not line.strip().startswith("|"):
+ continue
+ code = re.match(r"(\d{2,4})\b", cells[1])
+ if code and cells[0] and not set(cells[0]) <= set("-: "):
+ codes[cells[0]] = code.group(1)
+ return codes
+
+
+class BoardTest(unittest.TestCase):
+ def setUp(self):
+ self.list_text = LIST.read_text(encoding="utf-8")
+ self.note = NOTE.read_text(encoding="utf-8")
+ self.trouble = TROUBLE.read_text(encoding="utf-8")
+ self.body = section_of(self.trouble, HEADING)
+ self.assertIsNotNone(self.body, f"{HEADING} is gone from docs/TROUBLESHOOTING.md")
+ self.units = units(self.list_text)
+
+ def test_the_list_still_records_more_than_one_unit(self):
+ self.assertGreaterEqual(len(self.units), 2,
+ "the list header records the units this board was tested on; it now names "
+ f"{self.units}, so the checks below would read nothing")
+
+ def test_the_page_quotes_the_build_the_list_states(self):
+ recorded = build(self.list_text)
+ self.assertTrue(recorded, "the list header no longer states its firmware build")
+ self.assertIn(recorded, self.body,
+ f"docs/TROUBLESHOOTING.md quotes another build for this board than {recorded}")
+
+ def test_the_last_unit_recorded_in_the_list_is_named_on_the_page(self):
+ newest = self.units[-1]
+ self.assertIn(newest, self.body,
+ f"{newest} is recorded as a unit of this board but the key-helper section does not name "
+ "it, so its owner cannot tell the trade applies to their set")
+
+ def test_the_page_invents_no_unit_this_board_never_shipped(self):
+ recorded = set(self.units) | {"U75", "U7N"}
+ named = set()
+ for sentence in board_sentences(self.trouble, HEADING):
+ named.update(MODEL.findall(sentence))
+ self.assertTrue(named, "the page no longer names a model of this board")
+ self.assertLessEqual(named, recorded,
+ f"the page names {sorted(named - recorded)} for this board; the list records "
+ f"{sorted(recorded)}")
+
+ def test_the_app_button_codes_on_the_page_are_the_notes_codes(self):
+ table = remote_codes(self.note)
+ self.assertGreaterEqual(len(table), 5, f"the remote table stopped parsing: {table}")
+ codes = set()
+ for sentence in board_sentences(self.trouble, HEADING):
+ # a build string carries its own digits (STT2.230310.002), so it is not read as a keycode
+ codes.update(re.findall(r"\b(\d{3})\b", re.sub(r"[A-Z0-9]+\.[A-Z0-9.]+", " ", sentence)))
+ self.assertTrue(codes, "the page no longer quotes this board's keycodes")
+ self.assertLessEqual(codes, set(table.values()),
+ f"the page quotes {sorted(codes - set(table.values()))}, which the remote table "
+ f"does not carry ({sorted(table.items())})")
+
+ def test_every_unit_the_list_records_is_named_in_the_folder_notes(self):
+ for unit in self.units:
+ with self.subTest(unit=unit):
+ self.assertIn(unit, self.note,
+ f"{unit} is recorded in the list header but the folder notes do not mention it")
+
+ def test_the_new_link_resolves(self):
+ for target in re.findall(r"\]\(([^)\s]+)\)", self.trouble):
+ if target.startswith(("http", "#")):
+ continue
+ path = target.split("#", 1)[0]
+ with self.subTest(target=target):
+ self.assertTrue((TROUBLE.parent / path).resolve().exists(), "relative link target is gone")
+
+
+class ReaderTest(unittest.TestCase):
+ def test_units_reads_each_further_unit_in_order(self):
+ text = "# Board, build X1.2.\n# Second unit: Hisense 75U75N, US market.\n# Third unit: Hisense 55U7N.\n# Apply:\n"
+ self.assertEqual(units(text), ["75U75N", "55U7N"])
+
+ def test_a_unit_line_without_a_model_is_not_a_unit(self):
+ text = "# Board.\n# Second unit: same one, no model given.\n"
+ self.assertEqual(units(text), [])
+
+ def test_build_is_read_before_the_commands_only(self):
+ text = "# Board, build STT2.230310.002.\n# Apply: run something that mentions build elsewhere\n"
+ self.assertEqual(build(text), "STT2.230310.002")
+ self.assertEqual(build("# Board with no build line.\n# Apply: x\n"), "")
+
+ def test_a_missing_heading_reads_as_none(self):
+ self.assertIsNone(section_of("# A page\n\nSome text.\n", HEADING))
+
+ def test_the_section_stops_at_the_next_heading(self):
+ text = f"# Page\n\n{HEADING}\n\nHisense 75U75N.\n\n## Later\n\nGone.\n"
+ self.assertIn("Hisense 75U75N.", section_of(text, HEADING))
+ self.assertNotIn("Gone.", section_of(text, HEADING))
+
+ def test_remote_codes_reads_the_table_and_skips_its_header(self):
+ text = ("| Button | Keycode | Fate |\n|---|---|---|\n"
+ "| Prime Video | 295 (`KEY_FN_F3`) | nothing |\n| Gear | 83 (`KEY_NOTIFICATION`) | nothing |\n")
+ self.assertEqual(remote_codes(text), {"Prime Video": "295", "Gear": "83"})
+
+
+if __name__ == "__main__":
+ unittest.main()