Skip to content

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

examples: second MiProjM05 unit (Mi Smart Projector 2, build .1912); the apps button is not a gear, autofocus on a remote button

Leo Lo15713e63a8b0
diff --git a/examples/formovie-mprojm05/README.md b/examples/formovie-mprojm05/README.md
new file mode 100644
index 000000000..da78a5ac9
--- /dev/null
+++ b/examples/formovie-mprojm05/README.md
@@ -0,0 +1,60 @@
+# Formovie / Fengmi MiProjM05 (Xiaomi Mi Smart Projector 2): the remote and autofocus
+
+Two units, Android TV 9 (`eva`, Amlogic), builds `PQ3B.190705.003.2102` and `PQ3B.190705.003.1912`. The debloat
+list and what to keep are in [`debloat.txt`](debloat.txt). This page is about the remote: which button sends what,
+and how to run autofocus from it. Checked on the second unit (`.1912`) on 25 October 2026.
+
+## The remote
+
+"Xiaomi RC" (`/vendor/usr/keylayout/Vendor_2717_Product_32b9.kl`), the same remote as the
+[Mi Box S](../xiaomi-mi-box-s/debloat.txt). Earlier notes for this model called the apps button the gear button;
+the remote has no gear button.
+
+| Button | Scancode | Android key | After the stock launcher is disabled |
+|---|---|---|---|
+| Home (a circle) | 172 | `KEYCODE_HOME` | Opens the new Home |
+| Apps (a grid of squares) | 580 | `KEYCODE_ALL_APPS` (284) | Nothing: only the stock launcher answered it |
+
+## Autofocus on a remote button
+
+`com.fengmi.projector.imaging` (keep it enabled) exports activity aliases for its screens, all pointing at
+`.access.ImagingFeatureActivity`:
+
+| Alias | Action | Opens |
+|---|---|---|
+| `.alias.FocusActivity` | `com.fengmi.projector.imaging.action.START_FOCUS` | Autofocus (自動對焦中…), then Left/Right fine-tune and Back closes it |
+| `.alias.AutoKeystoneActivity` | `...action.START_AUTO_KEYSTONE` | Auto keystone (not tried) |
+| `.alias.KeystoneActivity` | `...action.START_KEYSTONE` | Manual keystone (not tried) |
+
+The aliases are exported with no permission, and the activity picks the screen from the alias, so the
+launcher's `app_keys` can open one by component alone. In `launcher/app/src/main/res/values/config.xml`, to make
+the apps button run autofocus:
+
+```xml
+<string-array name="app_keys" translatable="false">
+ <item>KEYCODE_ALL_APPS:com.fengmi.projector.imaging/.alias.FocusActivity</item>
+</string-array>
+```
+
+then `HOME_KEY_SERVICE=1 launcher/build-and-install.sh` (`-HomeKeyService` on Windows). Pressed on the real
+remote, the apps button ran autofocus from Home and from inside an app.
+
+The second unit's owner swapped the buttons instead: Home runs autofocus, and the apps button goes Home, which
+HomeKeyService does by itself for `KEYCODE_ALL_APPS` when no `app_keys` entry claims it:
+
+```xml
+<item>KEYCODE_HOME:com.fengmi.projector.imaging/.alias.FocusActivity</item>
+```
+
+On the real remote, Home ran autofocus from Home and from inside an app, and the apps button went Home from an
+app; after a reboot the helper was bound again. Back, Netflix and the voice button kept working. If the helper
+is switched off (a force stop of the launcher does that), Home is plain Home again.
+
+## What it costs
+
+HomeKeyService filters keys, and on this projector a bound key filter stops a held Volume key from ramping: one
+step per press (the first unit's notes in [`debloat.txt`](debloat.txt)). On the second unit, with the helper bound
+and `consume_volume_keys` true, a held Volume Up still moved one step, so that switch does not bring the ramp back
+here. A reinstall without `HOME_KEY_SERVICE=1` switches the helper off: the ramp returns and the apps button does
+nothing again. It is the same trade as on the Mi Box S with this remote and in
+[the key-repeat note](../../docs/devices/tcl-55p71b-g09-key-repeat.md).
diff --git a/examples/formovie-mprojm05/debloat.txt b/examples/formovie-mprojm05/debloat.txt
index 5af460036..ba18d2722 100644
--- a/examples/formovie-mprojm05/debloat.txt
+++ b/examples/formovie-mprojm05/debloat.txt
@@ -12,10 +12,24 @@
# Kept: com.fengmi.projector.imaging (focus, keystone, auto keystone; auto keystone still works with Camera2 off),
# com.fengmi.fmsettings, com.fengmi.platform, com.formovie.fmutils, com.formovie.gsettings (projector settings,
# voice key, USB), com.formovie.launchboard (Formovie app drawer), droidlogic services, Live Channels, Play Store and Services.
-# Remote ("Xiaomi RC", Vendor_2717_Product_32b9.kl): the gear button sends KEY_APPSELECT (580), mapped to
-# KEYCODE_ALL_APPS (284), not KEY_TAPE (384). With tvlauncher disabled it does nothing; settings_key_keycodes 284 with
-# HOME_KEY_SERVICE=1 makes it open Settings, but that helper stops a held Volume Up from ramping (one step per press).
+# Remote ("Xiaomi RC", Vendor_2717_Product_32b9.kl): the apps button (a grid of squares; the remote has no gear
+# button) sends KEY_APPSELECT (580), mapped to KEYCODE_ALL_APPS (284), not KEY_TAPE (384). With tvlauncher disabled
+# it does nothing; settings_key_keycodes 284 with HOME_KEY_SERVICE=1 makes it open Settings, but that helper stops a
+# held Volume Up from ramping (one step per press). It can run autofocus instead: README.md in this folder.
# Firmware updates come through TvSettings; no separate updater package.
+#
+# Second unit: Xiaomi Mi Smart Projector 2 (same MiProjM05 / eva), build PQ3B.190705.003.1912 (older than the first
+# unit's), fingerprint MI/eva/eva:9/PQ3B.190705.003/1912:user/release-keys, security patch 2021-09-05, 2 GB RAM,
+# from 2026-10-25.
+# - This list applied cleanly on 2026-10-25, and nothing came back after a reboot. The owner kept Prime Video and
+# Ambient (backdrop) enabled. This build also has com.fengmi.autofocustest, disabled the same day: it is
+# commented out below until it has been lived with.
+# - Autofocus and keystone still work with Camera2 disabled.
+# - One older saved Wi-Fi network belonged to setupwraith; the network in use belonged to android.uid.system.
+# setupwraith claims no HOME here and was left enabled.
+# - Also on this build, kept: cn.formovie.fengos.iot (Xiaomi MIoT host service, lets the Mi Home app control the
+# projector; starts at boot) and com.fengos.fmexplorer (Formovie file manager and USB media player).
+# - The owner put autofocus on the Home button and Home on the apps button (README.md in this folder).
# Telemetry and partner auto-installs
com.google.android.feedback
@@ -43,6 +57,8 @@ com.google.android.videos
com.android.camera2 # the webcam is driven by Formovie's own cameraservice_fm, not this app
com.android.printspooler
com.fengmi.testsuite # factory test suite: disabled, never launched
+# com.fengmi.autofocustest # untested: factory autofocus test (second unit's build), one activity, no
+ # services; never launched. Autofocus itself is com.fengmi.projector.imaging
# Stock launcher (only after the new launcher is Home)
com.google.android.tvlauncher
diff --git a/examples/formovie-mprojm05/tv.json b/examples/formovie-mprojm05/tv.json
index 1f093e4ad..07751db8d 100644
--- a/examples/formovie-mprojm05/tv.json
+++ b/examples/formovie-mprojm05/tv.json
@@ -2,5 +2,5 @@
"tv": "Formovie / Fengmi projector MiProjM05 (eva, Amlogic)",
"os": "Android TV 9",
"brand": "Formovie",
- "notes": "First Formovie/Fengmi list: Google feedback/bug report, Xiaomi auto-installs, smartconnect, recommendation services, Ambient, user manual, Camera2, factory test suite, stock tvlauncher; preloaded streaming apps off by choice; keystone/focus (com.fengmi.projector.imaging), Formovie settings and droidlogic HDMI kept; leanbacklauncher re-enabled at boot; remote gear button is KEYCODE_ALL_APPS (284)"
+ "notes": "First Formovie/Fengmi list: Google feedback/bug report, Xiaomi auto-installs, smartconnect, recommendation services, Ambient, user manual, Camera2, factory test suite, stock tvlauncher; preloaded streaming apps off by choice; keystone/focus (com.fengmi.projector.imaging), Formovie settings and droidlogic HDMI kept; leanbacklauncher re-enabled at boot; remote apps button (grid icon) is KEYCODE_ALL_APPS (284); second unit (Mi Smart Projector 2, build .1912): autofocus on a remote button with `app_keys` ([notes](formovie-mprojm05/README.md))"
}