Skip to content

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

docs: diagnose enabled but unbound accessibility services

Max Abramsky3bd5a4a09d8c
diff --git a/PROMPT.md b/PROMPT.md
index d674fea6a..75b2e0389 100644
--- a/PROMPT.md
+++ b/PROMPT.md
@@ -87,6 +87,9 @@ Launcher
Verify
- After each change, inject remote key presses over ADB, take a screenshot from the TV and look at it.
Fix what you see before moving on.
+- If using an accessibility helper for a remote button, check both its enabled setting and live
+ binding for the current Android user, then ask me to press the physical button; an injected HOME
+ key is not proof that the helper works (see `docs/TROUBLESHOOTING.md`, accessibility helpers).
- When done, give me a restore script, a build-and-install script, and a README that explains how to
re-enable any app and how to change the dock order or the wallpaper.
diff --git a/docs/TROUBLESHOOTING.md b/docs/TROUBLESHOOTING.md
index ff7c0f36a..1b79bf1b4 100644
--- a/docs/TROUBLESHOOTING.md
+++ b/docs/TROUBLESHOOTING.md
@@ -85,3 +85,50 @@ Things that bit us or contributors, so they don't bite you. Commands use `tools/
package that also claims HOME (PatchWall on Xiaomi) makes Android drop the default. The install
script now picks the known stock launcher among the candidates by itself; otherwise choose one on
the TV or pass `STOCK_LAUNCHER=<package>`.
+
+## Accessibility helper enabled but the remote button does nothing
+
+The optional `HomeKeyService` and `InputKeyService` need Android to bind to them before they can
+filter remote keys. The installer's `enabled` message follows settings writes; it does not check
+live binding. Resolving the launcher as HOME is a separate check.
+
+With the intended TV selected through `TV_HOST`, read the current state without changing it:
+
+```sh
+tools/tv.py 'am get-current-user'
+tools/tv.py 'settings --user current get secure accessibility_enabled'
+tools/tv.py 'settings --user current get secure enabled_accessibility_services'
+tools/tv.py 'dumpsys accessibility'
+```
+
+Use the returned user ID when reading the dump; don't assume user 0. If the user changes during
+these checks, read them again. Check only the helper you opted into:
+
+| Helper | Component in the enabled-services list | Key code it filters |
+| --- | --- | --- |
+| Home button | `com.gathin.tvhome/.HomeKeyService` | `KEYCODE_ALL_APPS`, not ordinary `KEYCODE_HOME` |
+| Input button | `com.gathin.tvhome/.InputKeyService` | `KEYCODE_TV` |
+
+The class may also be written in full, for example
+`com.gathin.tvhome/com.gathin.tvhome.HomeKeyService`. Match the whole component, not just a class
+name substring. `accessibility_enabled=1` alone may mean that another app's service is enabled.
+
+- **Enabled configuration:** the requested component is in that user's colon-separated
+ `enabled_accessibility_services` list and accessibility is enabled. This records the request,
+ not a running service.
+- **Live binding:** inspect that same user's `Bound services` section (`services` on older Android
+ builds). An entry under `Enabled services` or `Binding services` is not proof of a completed
+ binding. Allow a few seconds after enabling, then read the dump again. Some dumps show service
+ labels rather than components; labels can be translated or shared with other services. A match
+ for the word `Home` is not enough to identify our helper. If the format or identity is unclear,
+ treat binding as unknown rather than declaring success or failure.
+- **Remote behavior:** ask the person at the TV to press the relevant physical button from another
+ app. Injected HOME and a launcher screenshot can confirm navigation, but do not prove that the
+ remote sends the key this helper filters, or that the accessibility filter received it.
+
+If the component is enabled but clearly absent from the bound services, inspect local logs for a
+binding failure, crash or firmware startup restriction before changing settings. One firmware
+observation is in the [TCL G08 notes](../examples/tcl-qm6k-google-tv/debloat.txt). Do not overwrite
+the enabled-services list, grant app-ops on every TV, or disable more packages as a generic fix.
+When reporting a failure, include the model, build, current user and only the relevant redacted
+settings/dump/log excerpts; keep raw device logs private.
diff --git a/examples/tcl-qm6k-google-tv/debloat.txt b/examples/tcl-qm6k-google-tv/debloat.txt
index 90449a5c9..5290f399a 100644
--- a/examples/tcl-qm6k-google-tv/debloat.txt
+++ b/examples/tcl-qm6k-google-tv/debloat.txt
@@ -22,6 +22,16 @@
# runs first-time setup). While Home was blank the TV fell back to HDMI 1 and woke a console over CEC.
# - Soundbar on optical (S/PDIF) can't be powered or volume-controlled by the TV. Use HDMI 4 (eARC) and
# `cmd hdmi_control cec_setting set system_audio_control 1` (it ships 0 here).
+#
+# Additional accessibility observation (maam00, 2026-10-17/18): Smart TV Pro G08_4K_US/G08,
+# Android 14, tcl9618-user 14 UTT2.250416.001 AU14 release-keys.
+# A separate sideloaded remote-button companion was enabled but not bound. TclAppBoot logged
+# "callee doesn't have OP_AUTO_START permission". On that build, allowing its AUTO_START app-op
+# and rebinding its service restored binding, also confirmed after reboot. Stock Google TV home
+# was retained; this was NOT a test of CleanYourTV's launcher or accessibility services.
+# Diagnose enabled vs bound first (docs/TROUBLESHOOTING.md); do not apply that app-op to every TCL.
+# Session report: https://github.com/humblemuzzu/dumbtv/blob/main/catalog/devices/androidtv-tcl-g08.yaml
+# Related G05 / Android 11 report: https://github.com/Gathin23/cleanyourtv/pull/73
# TCL tracking and analytics
com.tcl.ttvs # Samba TV ACR viewing tracking, TCL "BI" analytics, Alexa core, T-Cast