Skip to content

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

Merge branch 'main' into examples-afmu0-second-unit

fuhobucky3b76fac81079
diff --cc examples/xiaomi-mitv-afmu0/debloat.txt
index 96c6700db,217a508f0..1dc2d9814
--- a/examples/xiaomi-mitv-afmu0/debloat.txt
+++ b/examples/xiaomi-mitv-afmu0/debloat.txt
@@@ -23,19 -23,11 +23,24 @@@
# launcherx and dreamx. Check before disabling: tools/tv.py "dumpsys wifi" | grep -o 'cname=[^ ]*'
# - Leave alone: com.xiaomi.android.tvsetup.partnercustomizer, mitv.service, com.droidlogic*.
# - With the stock launcher gone, apps without a dock slot just appear in the grid.
+#
+# A second unit, same firmware (V816.0.11.0.UZFAABX), one evening and one reboot, applied this list with
+# YouTube Music, Assistant, Chromecast, Miracast/Mi share and the updater kept, plus the Privacy Sandbox group below:
+# - setupwraith owned no saved network here (every cname= was android.uid.system), so Wi-Fi and ADB stayed up.
+# - After the reboot, `pm list packages -d` matched what was disabled: the firmware re-enabled nothing.
+# - Port 5555 was closed at the start; Wireless debugging (pair, connect, `adb tcpip 5555`) opened it, and it was
+# still open after the reboot until USB debugging was switched off.
+# - Remote (Vendor_2717_Product_32b9.kl): once launcherx is off, Netflix (BUTTON_6) still opens Netflix, but
+# YouTube (BUTTON_3, scan 425), Prime Video (BUTTON_7, scan 207), Xiaomi TV+ (BUTTON_5, scan 150) and Apps
+# (ALL_APPS, scan 216) do nothing. config.json in this folder maps them back with app_keys, which needs
+# INPUT_KEY_SERVICE=1 when running build-and-install.sh. The real Home button worked without HOME_KEY_SERVICE.
+# - The volume buttons send IR to the TV: `getevent -lt` shows no event on the box while they are held, so a held
+# button not repeating is the TV's doing, with or without a key helper.
+ # - Remote shortcut keys (Vendor_2717_Product_32b9.kl): YouTube sends BUTTON_3 (scancode 425), Prime Video sends
+ # BUTTON_7 (scancode 207), and Apps button sends ALL_APPS (scancode 216). Enable HomeKeyService
+ # (settings put secure enabled_accessibility_services com.gathin.tvhome/.HomeKeyService) and push
+ # examples/xiaomi-mitv-afmu0/theme/config.json with tools/theme.sh to restore YouTube, map Prime Video, and make
+ # the Apps button open Home. See README.md.
# Telemetry and feedback
com.miui.tv.analytics
diff --cc examples/xiaomi-mitv-afmu0/tv.json
index 1f5b369d6,ea3724c2a..9da17511e
--- a/examples/xiaomi-mitv-afmu0/tv.json
+++ b/examples/xiaomi-mitv-afmu0/tv.json
@@@ -2,5 -2,5 +2,6 @@@
"tv": "Xiaomi TV Box S 3rd gen (MiTV-AFMU0, twilight, Amlogic), streaming box",
"os": "Google TV 14",
"brand": "Xiaomi",
+ "notes": "Mi analytics, PatchWall/Mi Home tab, Mi connect/SmartShare; voice and phone remote off by choice; setup wizard off so launcherx can go; second unit: Privacy Sandbox ad services off, remote's YouTube/Prime Video/Apps buttons mapped back in config.json"
+ "notes": "Mi analytics, PatchWall/Mi Home tab, Mi connect/SmartShare; voice and phone remote off by choice; setup wizard off so launcherx can go; second unit: [notes](xiaomi-mitv-afmu0/README.md)"
}