Skip to content

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

docs/devices: VU SmartTV 4K FFM remote shortcut keys note

Arkodeep Koleyed338e0f33cc
diff --git a/docs/devices/vu-smarttv-4k-ffm-remote-keys.md b/docs/devices/vu-smarttv-4k-ffm-remote-keys.md
new file mode 100644
index 000000000..de7deafc2
--- /dev/null
+++ b/docs/devices/vu-smarttv-4k-ffm-remote-keys.md
@@ -0,0 +1,115 @@
+# VU SmartTV 4K FFM (MediaTek songshan, Android 11): remote shortcut buttons without launcherx and surviving standby
+
+An owner report from 2026-11-07, with physical remote key captures on a VU SmartTV 4K FFM (retail model
+sold in India, official VU Bluetooth/IR remote). It belongs to the same MediaTek `songshan` (m7632) family
+as [`examples/hisense-smarttv-4k-ffm-android11`](../../examples/hisense-smarttv-4k-ffm-android11/debloat.txt),
+where the fifth unit reported that YouTube, Prime Video, and Disney+ buttons went dead after disabling
+`launcherx`.
+
+## Observed firmware
+
+| Field | Observed value |
+|---|---|
+| Brand | `VU` |
+| Android model | `SmartTV 4K FFM` |
+| Device / Board | `songshan` / MediaTek `m7632` (`songshan_emH_FFM`) |
+| Android / API | `11` / `30` |
+| Firmware build | `RTT2.220118.001` |
+| Remote | VU Smart Remote (`SmartRC Keypad` / `SmartRC Consumer Control`, `MStar Smart TV IR Receiver`) |
+
+The launcher is CleanYourTV as default Home. `launcherx` is disabled, and stock streaming apps (Netflix,
+YouTube, Prime Video, Disney+ Hotstar) are kept enabled.
+
+## The problem
+
+With `launcherx` disabled:
+
+- **Netflix** keeps working: Netflix certification requires TV manufacturers to handle the Netflix key
+ at the kernel/driver level (`com.mstar.netflixobserver.NetflixKeyReceiver`), so it launches independently
+ of the stock launcher.
+- **YouTube, Prime Video, and Disney+ Hotstar** do nothing: on Google TV, stock `launcherx` intercepted
+ these buttons via `com.google.android.apps.tv.launcherx.globalbutton.GlobalButtonLaunch_Receiver`. Once
+ `launcherx` is disabled, the broadcast has no recipient and the button presses fall through silently.
+
+## Button codes on this remote
+
+Captured via `logcat` (`WindowManager: interceptKeyTq keycode=... scancode=...`) and `getevent -lt`
+while pressing each button on the physical remote:
+
+| Button | KeyCode | ScanCode | Linux Key | HID Usage | Target package |
+|---|---|---|---|---|---|
+| Netflix | `KEYCODE_STEM_1` (265) | 242 | `KEY_STEM_1` | | `com.netflix.ninja` (firmware-handled) |
+| YouTube | 293 | 469 | `KEY_FN_F4` | `0x000c00ab` | `com.google.android.youtube.tv` |
+| Prime Video | 295 | 468 | `KEY_FN_F3` | `0x000c00d6` | `com.amazon.amazonvideo.livingroom` |
+| Disney+ Hotstar | 337 | 484 | `KEY_FN_B` | `0x000c00dc` | `in.startv.hotstar` |
+| Cricket | 662 | 489 | `KEY_CRICKET` | `0x000c01d0` | `com.fancode.tv` / sports app |
+| Cinema | 664 | 490 | `KEY_CINEMA` | `0x000c01d1` | `com.sonyliv` / entertainment app |
+
+## Bringing the buttons back
+
+CleanYourTV's `InputKeyService` intercepts these keycodes and scancodes and launches the corresponding apps.
+
+### 1. Map the keys in `config.xml` or theme `config.json`
+
+In `config.xml`:
+
+```xml
+<string-array name="app_keys" translatable="false">
+ <item>293:com.google.android.youtube.tv</item>
+ <item>scan:469:com.google.android.youtube.tv</item>
+ <item>295:com.amazon.amazonvideo.livingroom</item>
+ <item>scan:468:com.amazon.amazonvideo.livingroom</item>
+ <item>337:in.startv.hotstar</item>
+ <item>scan:484:in.startv.hotstar</item>
+ <item>662:com.fancode.tv</item>
+ <item>scan:489:com.fancode.tv</item>
+ <item>664:com.sonyliv</item>
+ <item>scan:490:com.sonyliv</item>
+</string-array>
+```
+
+Or in a pushed theme `config.json`:
+
+```json
+{
+ "app_keys": [
+ "293:com.google.android.youtube.tv",
+ "scan:469:com.google.android.youtube.tv",
+ "295:com.amazon.amazonvideo.livingroom",
+ "scan:468:com.amazon.amazonvideo.livingroom",
+ "337:in.startv.hotstar",
+ "scan:484:in.startv.hotstar",
+ "662:com.fancode.tv",
+ "scan:489:com.fancode.tv",
+ "664:com.sonyliv",
+ "scan:490:com.sonyliv"
+ ]
+}
+```
+
+### 2. Enable `InputKeyService`
+
+```bash
+cmd appops set com.gathin.tvhome AUTO_START allow 2>/dev/null || true
+cmd appops set com.gathin.tvhome APP_AUTO_START allow 2>/dev/null || true
+appops write-settings 2>/dev/null || true
+settings put secure enabled_accessibility_services com.gathin.tvhome/.InputKeyService
+settings put secure accessibility_enabled 1
+```
+
+### 3. Surviving standby (`com.hisense.STR_SUSPEND`)
+
+As noted in [`examples/hisense-smarttv-4k-ffm-android11`](../../examples/hisense-smarttv-4k-ffm-android11/debloat.txt),
+this board's standby kills third-party background services (`PowerVtImp: kill 3rd app`), which drops
+accessibility services from `enabled_accessibility_services`.
+
+To make the service persistent:
+1. Grant `WRITE_SECURE_SETTINGS`:
+ ```bash
+ pm grant com.gathin.tvhome android.permission.WRITE_SECURE_SETTINGS
+ ```
+ (Or run `build-and-install.sh` with `RESTORE_KEY_SERVICES=1`).
+2. Set `restore_key_services` to `true` in `config.xml` or `"restore_key_services": true` in `config.json`.
+
+With both in place, CleanYourTV automatically restores `InputKeyService` every time Home returns to the
+foreground after standby.
diff --git a/examples/README.md b/examples/README.md
index 7fff623c1..58358fc15 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -547,6 +547,7 @@ Notes for models that have no tested list yet live in [`docs/devices/`](../docs/
- [HQ HQS32NKH 32"](../docs/devices/hq-hqs32nkh.md) (Brazil, Bel Micro, Toptech board, HiSilicon Hi3751V553, Android 14 `HISI352U`, Zeasn TitanOS home): one session, four packages disabled including the Zeasn portal, which also carries the firmware-update check; Home handover held across one restart; inputs only through `com.toptech.tvmenu/.ui.InputsActivity`; the remote's Menu key opens Settings on Home with `settings_key_keycodes: [82]`; Settings' IP screen crashes on a WPA2/WPA3 network; no several-day list.
- [Hisense 65U8H](../docs/devices/hisense-65u8h.md) (US, `wuyishan`, MediaTek MT9900, Google TV 11 `RTT2.211209.001` / `00.00.00.56`): one-session 26-package set after forgetting and re-joining the Wi-Fi that `setupwraith` owned; `launcherx` and `setupwraith` disabled, Home survived two reboots, AirPlay and the held-volume ramp still worked, and Input opens the launcher's menu; no several-day debloat list yet.
- [Hisense 32A5700FA](../docs/devices/hisense-32a5700fa.md) (Italy, `HiSmart 2K ATV4` / `hamamatsucho` / `fushan_emeu`, Android TV 11 `RTO6.250225.001`): the EU build of the India `hisense-hismart-2k-atv4-hamamatsucho` list, without its ACR tracker or CVTE partner apps; one-session 14-package set, Home handover with no key services and the physical remote's buttons and held volume confirmed, and Live TV at every power-on and wake from standby through `open_on_start_on_wake` with Home still opening the launcher; no several-day debloat list yet.
+- [VU SmartTV 4K FFM](../docs/devices/vu-smarttv-4k-ffm-remote-keys.md) (`songshan`, MediaTek `m7632`, Android 11 `RTT2.220118.001`, India): physical remote keycodes and Linux scancodes for YouTube (293/469), Prime Video (295/468), and Disney+ Hotstar (337/484), plus Cricket (662/489) and Cinema (664/490); how `InputKeyService` brings them back with `launcherx` disabled, and surviving the Hisense `STR_SUSPEND` standby killer via `restore_key_services`.
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.