Skip to content

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

Merge PR #757: AFMU0: the remote's mic needs tv.remote.service, not just katniss

Gathin23954afb906fc1
diff --cc docs/TROUBLESHOOTING.md
index a7393d5f7,619c05f8f..c08b0db8f
--- a/docs/TROUBLESHOOTING.md
+++ b/docs/TROUBLESHOOTING.md
@@@ -198,11 -177,25 +198,33 @@@ Things that bit us or contributors, so
If it names setupwraith, forget the network and join it again in Settings > Network & Internet (it
then belongs to `android.uid.system`), or use Ethernet. `tools/disable.sh` skips setupwraith while it
owns the network (`FORCE_SETUPWRAITH=1` overrides). Already offline? Rejoin from the TV with its own
++<<<<<<< HEAD
+ remote or a USB keyboard, then turn Wireless debugging back on if it was in use. Reconnecting is not
+ enough; forget the network first (Xiaomi MiTV-MOSR4, where this also switched USB debugging off).
+- **A reboot on setupwraith's recovery screen factory-reset the TV** (Xiaomi MiTV-MOSR4). Disable
+ setupwraith before launcherx. If `mFocusedApp` shows `.RecoveryActivity`, re-enable launcherx
+ first and do not reboot. [Notes](devices/xiaomi-mitv-mosr4.md).
++=======
+ remote or a USB keyboard, then turn Wireless debugging back on if it was in use.
+ - **The remote's mic button does nothing, or opens the Assistant and it never hears you**, seen on a
+ Xiaomi TV Box S 3rd gen (`MiTV-AFMU0`, `twilight`, Google TV 14, `V816.0.7.0.UZFAABX`). Two
+ packages have to stay enabled, and re-enabling only one of them is what makes this hard to
+ diagnose: `com.google.android.katniss` is the Assistant itself, and
+ `com.google.android.tv.remote.service` is the Google TV bridge for the physical remote, which
+ carries the remote's Bluetooth microphone. With both disabled the button does nothing. With only
+ `katniss` back the Assistant opens, takes `AudioRecord` (`inputSource 6`, VOICE_RECOGNITION) and
+ records silence, because the audio never leaves the remote. `pm enable` on both restores the
- button without a reboot. To tell the two failures apart: `dumpsys package
++ button without a reboot (run `pm enable` once per package). To tell the two failures apart: `dumpsys package
+ com.google.android.katniss | grep enabled` and the same for `tv.remote.service` (`enabled=3` is
+ disabled), then `logcat -d | grep AudioRecord` right after pressing the button: a session that
+ opens and closes with no recognition is the missing bridge, not a broken Assistant. The AFMU0
+ list keeps both now; the lists that still disable `com.google.android.tv.remote.service` are
+ `rca-ai-pont`, `sharp-aquos-tve21f`, `sony-bravia-4k-gb-us`, `sony-xbr-65x900f`,
+ `sony-xbr-x900e`, `tcl-32s5k`, `tcl-40s5400a`, `tcl-55s470g`, `tcl-beyondtv2-android-11`,
+ `tcl-g09-google-tv`, `tcl-g10-google-tv`, `xgimi-horizon-s-pro`, `xgimi-mogo-3-pro` and
- `xiaomi-mi-box-s`, so the same symptom is expected there on any set whose remote has a
- microphone.
++ `xiaomi-mi-box-s`. Those TVs haven't been tested for this, but any of them whose remote has a
++ microphone may show the same symptom.
++>>>>>>> refs/pr/757
- **Casting from a phone fails with "Untrusted device" after setupwraith is disabled**, seen on
Chromecast with Google TV HD (`boreal`) on Google TV 14 build UTTC.250917.004, the build the
`examples/google-chromecast-gtv-4k/` list was made on. YouTube on the phone says "Untrusted device.
diff --cc examples/xiaomi-mitv-afmu0/debloat.txt
index d64a04a29,4d308439d..9993062b7
--- a/examples/xiaomi-mitv-afmu0/debloat.txt
+++ b/examples/xiaomi-mitv-afmu0/debloat.txt
@@@ -40,8 -40,14 +40,15 @@@ com.xm.webconten
android.autoinstalls.config.soc.amlogic
# Personal choice: voice assistant, phone remote, Mi cast/share (the mic button stops working)
- com.google.android.katniss
- com.google.android.tv.remote.service
+ # KEPT ON here, measured on firmware V816.0.7.0.UZFAABX on two units: the mic button does NOT come
+ # back by re-enabling katniss alone. com.google.android.tv.remote.service, listed below, is the
+ # Google TV bridge for the physical remote: with it off, the remote's Bluetooth microphone never
+ # reaches the assistant, so the button opens the Assistant and it records silence. Re-enable both
-# (`pm enable com.google.android.katniss com.google.android.tv.remote.service`) and the mic works.
++# (`pm enable com.google.android.katniss`, then `pm enable com.google.android.tv.remote.service`;
++# one package per command) and the mic works.
+ # Left commented so check.py does not report drift and re-applying the list does not break it again.
+ # com.google.android.katniss
+ # com.google.android.tv.remote.service
com.xiaomi.mitv.smartshare
com.xiaomi.wfdsinkhelperservice
com.xiaomi.mi_connect_service