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
examples: Xiaomi TV Box S 3rd gen (MiTV-AFMU0), second unit notes and remote config.json
fuhobuckyaaec87705b53
diff --git a/examples/xiaomi-mitv-afmu0/config.json b/examples/xiaomi-mitv-afmu0/config.jsonnew file mode 100644index 000000000..6a9e386c3--- /dev/null+++ b/examples/xiaomi-mitv-afmu0/config.json@@ -0,0 +1,13 @@+{+ "dock_apps": [+ "com.google.android.youtube.tv",+ "com.netflix.ninja",+ "com.amazon.amazonvideo.livingroom",+ "com.android.vending"+ ],+ "app_keys": [+ "KEYCODE_BUTTON_3:com.google.android.youtube.tv",+ "KEYCODE_BUTTON_7:com.amazon.amazonvideo.livingroom",+ "KEYCODE_ALL_APPS:home"+ ]+}diff --git a/examples/xiaomi-mitv-afmu0/debloat.txt b/examples/xiaomi-mitv-afmu0/debloat.txtindex 2e6df4bd2..96c6700db 100644--- a/examples/xiaomi-mitv-afmu0/debloat.txt+++ b/examples/xiaomi-mitv-afmu0/debloat.txt@@ -23,6 +23,19 @@# 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.# Telemetry and feedbackcom.miui.tv.analytics@@ -56,7 +69,7 @@ com.xiaomi.mi_connect_service# Preloaded appscom.disney.disneypluscom.wbd.hbomax-com.google.android.youtube.tvmusic+com.google.android.youtube.tvmusic # YouTube Music; the second unit kept it (in use)com.google.android.play.gamescom.google.android.marvin.talkbackcom.xiaomi.mimusic2@@ -65,6 +78,11 @@ com.mitv.videoplayercom.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+# 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 --git a/examples/xiaomi-mitv-afmu0/tv.json b/examples/xiaomi-mitv-afmu0/tv.jsonindex ff3ea12db..1f5b369d6 100644--- a/examples/xiaomi-mitv-afmu0/tv.json+++ b/examples/xiaomi-mitv-afmu0/tv.json@@ -2,5 +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"+ "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"}