Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.
Python adbadblockandroid-tvandroid-tv-launcherapple-tvbloatware-removalclaude-codedebloatfire-tvgoogle-tvlauncherprivacysmart-tvsony-braviatclvibe-codingxiaomi
Merge PR #2409: examples: Xiaomi TV Box S 3rd gen (MiTV-AFMU0), second unit notes and remote config.json
Gathin23e0292fea9199
diff --cc examples/xiaomi-mitv-afmu0/debloat.txtindex 217a508f0,1dc2d9814..a5ef06b73--- a/examples/xiaomi-mitv-afmu0/debloat.txt+++ b/examples/xiaomi-mitv-afmu0/debloat.txt@@@ -23,6 -23,19 +23,18 @@@# 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.++# - Wireless debugging leaves port 5555 open across reboots: switch off USB/Wireless debugging when done.+ # - 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@@@ -70,6 -83,11 +82,11 @@@ com.mitv.videoplayecom.android.printspoolercom.mitv.gallery-# Ad personalisation (Privacy Sandbox and on-device ad services): second unit only, as on xiaomi-mitv-afmu1-com.android.adservices.api-com.android.ondevicepersonalization.services-com.android.federatedcompute.services++# Ad personalisation (Privacy Sandbox and on-device ad services): second unit only, as on xiaomi-mitv-afmu1 (provisional: one evening, one reboot)++# com.android.adservices.api++# com.android.ondevicepersonalization.services++# com.android.federatedcompute.services+# Personal choice: preloaded streaming apps, kept enabled here. Uncomment the ones you don't use# com.netflix.ninja # Netflix# com.google.android.youtube.tv # YouTubediff --cc examples/xiaomi-mitv-afmu0/tv.jsonindex ea3724c2a,9da17511e..1f5b369d6--- a/examples/xiaomi-mitv-afmu0/tv.json+++ b/examples/xiaomi-mitv-afmu0/tv.json@@@ -2,5 -2,6 +2,5 @@@"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: [notes](xiaomi-mitv-afmu0/README.md)"+ "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)"}