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
add MiTV-AFMU1 & MiTV-AYFR0
steepenergy1461dee1ae56
diff --git a/README.md b/README.mdindex 8b6bd4dca..907f8af40 100644--- a/README.md+++ b/README.md@@ -89,7 +89,7 @@ sets refuse to install any launcher at all; their lists say so in the header.Tested lists from contributors, one folder per model in [`examples/`](examples/):-**TCL** 34 · **Sony** 19 · **Xiaomi** 19 · **Philips** 8 · **Hisense** 7 · **Amazon Fire TV** 5 ·+**TCL** 34 · **Sony** 19 · **Xiaomi** 20 · **Philips** 8 · **Hisense** 7 · **Amazon Fire TV** 5 ·**Panasonic** 3 · **Skyworth** 3 · **BenQ** 2 · **CHiQ** 2 · **Google** 2 · **Haier** 2 · **Hitachi** 2 ·**Kalley** 2 · **NVIDIA Shield** 2 · **OnePlus** 2 · **onn** 2 · **Redmi** 2 · **Thomson** 2 · **Toshiba** 2 · **Vu** 2 ·AiPro2K · AIWA · Artel · Cecotec · Challenger · Compac · Dialog · EKO · FFalcon · Freebox · Insignia Fire TV ·@@ -259,6 +259,8 @@ BYINTEK, JMGO, Portronics, Stellamore, Wanbo and XGIMI projectors| Xiaomi MiTV-MSSP3 (machuca, MediaTek), Android 9 firmware PI.7524 | Android TV 9 || Xiaomi TV A Pro 75" 2026 (MiTV-MZTU0, river, MediaTek) | Google TV 14 || Xiaomi TV Box S 3rd gen (MiTV-AFMU0, twilight, Amlogic), streaming box | Google TV 14 |+| Xiaomi TV Stick 4K 2nd gen (MiTV-AFMU1, twilight, adastra, Amlogic), streaming stick | Google TV 14 |+| Xiaomi TV Stick 4K (MiTV-AYFR0, soul, Amlogic), streaming stick | Android TV 14 || Xiaomi TV S Pro 100 Mini LED 2025 (小米电视 S Pro 100, L100MB-SP, MiTV-MFFU0, finch, MediaTek), China firmware OS3.0.115.0.UFFMATV, 4 GB RAM | Android 14 (HyperOS 3, CN build) |</details>diff --git a/examples/README.md b/examples/README.mdindex 88e0942b6..fd41b6c6e 100644--- a/examples/README.md+++ b/examples/README.md@@ -163,6 +163,8 @@ on that firmware, grouped and commented. These are starting points: comment out| `xiaomi-mitv-mssp3-android9/` | Xiaomi MiTV-MSSP3 (machuca, MediaTek), Android 9 firmware PI.7524 | Android TV 9 | Same model before its Android 11 update: PatchWall, Mi analytics, TV Manager, OTA; voice assistant re-enables itself at every boot (updated system app rescan); screensaver, preloaded apps off; 1.8 GB, swap full before; notes for the older PI.4663 build (two packages absent, old leanback home to disable) || `xiaomi-tv-a-pro-2026/` | Xiaomi TV A Pro 75" 2026 (MiTV-MZTU0, river, MediaTek) | Google TV 14 | PatchWall/Mi Home tab, Mi analytics, TV Manager, updaters; setup wizard off, launcherx crash-loop notes || `xiaomi-mitv-afmu0/` | Xiaomi TV Box S 3rd gen (MiTV-AFMU0, twilight, Amlogic), streaming box | Google TV 14 | Mi analytics, PatchWall/Mi Home tab, Mi connect/SmartShare; voice and phone remote off by choice; setup wizard off so launcherx can go |+| `xiaomi-mitv-afmu1/` | Xiaomi TV Stick 4K 2nd gen (MiTV-AFMU1, twilight, adastra, Amlogic), streaming stick | Google TV 14 | Mi analytics, PatchWall/Mi Home tab, Amlogic auto-installs, preloaded apps off; voice, phone remote and Miracast kept; setup wizard off (re-join Wi-Fi first) so launcherx can go |+| `xiaomi-mitv-ayfr0/` | Xiaomi TV Stick 4K (MiTV-AYFR0, soul, Amlogic), streaming stick | Android TV 14 | Mi analytics, PatchWall, auto-installs (`mibox3` + `soc.amlogic`), update service; `setupwraith` does not claim HOME (kept enabled, Wi-Fi stays intact); remote Home key and CEC One Touch Play verified |Notes for models that have no tested list yet live in [`docs/devices/`](../docs/devices/):diff --git a/examples/xiaomi-mitv-afmu1/debloat.txt b/examples/xiaomi-mitv-afmu1/debloat.txtnew file mode 100644index 000000000..5090117d5--- /dev/null+++ b/examples/xiaomi-mitv-afmu1/debloat.txt@@ -0,0 +1,69 @@+# Xiaomi TV Stick 4K 2nd gen (MiTV-AFMU1, codename twilight, product adastra, Amlogic), Google TV 14 (SDK 34),+# firmware UKG3.250826.001 / V816.0.7.0.UZFAATK.+# Fingerprint: Xiaomi/adastra/twilight:14/UKG3.250826.001/V816.0.7.0.UZFAATK:user/release-keys+#+# Apply: TV_HOST=<stick ip> tools/disable.sh examples/xiaomi-mitv-afmu1/debloat.txt+# Undo: TV_HOST=<stick ip> tools/restore.sh examples/xiaomi-mitv-afmu1/debloat.txt com.google.android.apps.tv.launcherx+# Everything is DISABLED, not uninstalled. Comment out any line you want to keep.+#+# A streaming stick: no HDMI-in or tuner, so leave live_tv_package empty in config.xml.+# Stock launcher: com.google.android.apps.tv.launcherx (disabled by launcher/build-and-install.sh).+#+# Notes from this stick:+# - Shares the twilight board with Xiaomi TV Box S 3rd gen (MiTV-AFMU0), but product is adastra+# and Xiaomi's local media apps (mimusic2, mediaexplorer, mitv.gallery) are not installed.+# - setupwraith's RecoveryActivity (HOME priority 1, launcherx priority 2) takes Home once+# launcherx is off, so setupwraith has to go too, and it has to go FIRST. Re-enable setupwraith+# if you need to re-pair the remote.+# - Disabling setupwraith takes the stick off Wi-Fi if the network was saved during first setup:+# that network belongs to setupwraith, and Android deletes it with the app.+# On the stick, forget the network and join it again in Settings > Network & Internet first.+# The re-joined network belongs to android.uid.system and survives disabling launcherx and setupwraith.+# Check before disabling: tools/tv.py "dumpsys wifi" | grep -o 'cname=[^ ]*'+# - Kept on purpose: Google Assistant (katniss), phone remote (tv.remote.service),+# Miracast / Mi Share (smartshare, wfdsinkhelperservice, mi_connect_service),+# YouTube, Google Ambient screensaver (dreamx).+# - Leave alone: com.xiaomi.android.tvsetup.partnercustomizer, mitv.service, com.droidlogic*.++# Telemetry and feedback+com.miui.tv.analytics+com.xiaomi.statistic+com.xiaomi.tvqs.overseas.y24 # Xiaomi quality-stats uploader+com.google.android.feedback+com.android.tv.feedbackconsent++# PatchWall, content rows, promos, auto-installs+com.mitv.tvhome.atv+com.mitv.tvhome.michannel+com.mitv.tvhome.mitvplus+com.mitv.tvhome.oemtab+com.xm.webcontent+android.autoinstalls.config.soc.amlogic++# Personal choice: voice assistant, phone remote, Mi cast/share (uncomment to disable; the mic button stops working)+# com.google.android.katniss+# com.google.android.tv.remote.service+# com.xiaomi.mitv.smartshare+# com.xiaomi.wfdsinkhelperservice+# com.xiaomi.mi_connect_service++# Preloaded apps+com.google.android.youtube.tvmusic+com.google.android.play.games+com.google.android.marvin.talkback+com.mitv.videoplayer+com.android.printspooler++# Personal choice: preloaded streaming apps, kept enabled here. Uncomment the ones you don't use+# com.netflix.ninja # Netflix+# com.google.android.youtube.tv # YouTube+# com.amazon.amazonvideo.livingroom # Prime Video++# Optional, uncomment if unused+# com.google.android.apps.tv.dreamx # Google ambient screensaver (switch to the Clock dream first)++# Setup wizard, takes Home after the stock launcher is disabled+com.google.android.tungsten.setupwraith++# Stock Google TV launcher, replaced by launcher/ (build-and-install.sh disables it after Home moves)+# com.google.android.apps.tv.launcherx\ No newline at end of filediff --git a/examples/xiaomi-mitv-ayfr0/debloat.txt b/examples/xiaomi-mitv-ayfr0/debloat.txtnew file mode 100644index 000000000..a221bef6b--- /dev/null+++ b/examples/xiaomi-mitv-ayfr0/debloat.txt@@ -0,0 +1,58 @@+# Xiaomi TV Stick 4K (model MiTV-AYFR0, codename soul, Amlogic), Android TV 14 (SDK 34),+# firmware UKG3.250107.001 / V816.0.26.6.10.UZFAATK.+# Fingerprint: Xiaomi/soul/soul:14/UKG3.250107.001/V816.0.26.6.10.UZFAATK:user/release-keys+#+# Apply: TV_HOST=<stick ip> tools/disable.sh examples/xiaomi-mitv-ayfr0/debloat.txt+# Undo: TV_HOST=<stick ip> tools/restore.sh examples/xiaomi-mitv-ayfr0/debloat.txt+# Everything is DISABLED, not uninstalled. Comment out any line you want to keep.+#+# A streaming stick: no HDMI-in or tuner, so leave live_tv_package empty in config.xml.+# Stock launcher: com.google.android.tvlauncher (disabled by launcher/build-and-install.sh).+#+# Notes from this stick:+# - HOME claimants on stock: com.google.android.tvlauncher/.MainActivity and+# com.android.tv.settings/.system.FallbackHome. Unlike Google TV builds (such as MiTV-AFMU0/AFMU1),+# com.google.android.tungsten.setupwraith does NOT claim HOME here, so setupwraith can stay enabled+# and the saved Wi-Fi network (owned by setupwraith) does not need to be forgotten and re-joined.+# - The Bluetooth remote ("Xiaomi RC Consumer Control", vendor 0x2717 product 0x32b9,+# /vendor/usr/keylayout/Vendor_2717_Product_32b9.kl) sends standard KEY_HOMEPAGE (scancode 0x000c0223 -> HOME)+# on the round Home button, not ALL_APPS, so HOME_KEY_SERVICE=1 is not needed.+# - HDMI-CEC One Touch Play works with the custom launcher: system_server (HdmiControlService) sends+# <Text View On> and <Active Source> before starting the HOME activity.+# - Kept on purpose: Google Assistant (katniss), Chromecast (mediashell), phone remote (tv.remote.service),+# Miracast (smartshare, wfdsinkhelperservice), screensavers (com.mitv.dream, com.google.android.backdrop),+# com.xiaomi.tvqs.overseas (quick settings panel), com.xiaomi.android.tvsetup.partnercustomizer,+# com.google.android.tungsten.setupwraith.++# Xiaomi + Google telemetry and attribution+com.miui.tv.analytics+com.xiaomi.statistic+com.google.android.feedback+com.android.tv.feedbackconsent+com.google.android.partnersetup++# PatchWall, content rows, promos, auto-installs+com.mitv.tvhome.atv+com.mitv.tvhome.michannel+com.mitv.tvhome.mitvplus+com.xm.webcontent+com.google.android.tvrecommendations+android.autoinstalls.config.soc.amlogic+android.autoinstalls.config.xiaomi.mibox3+android.autoinstalls.config.xioami.mibox3 # misspelled duplicate present on firmware (sic, "xioami")++# Xiaomi update service (re-enable to check for firmware updates)+com.xiaomi.mitv.updateservice++# Preloaded apps+com.netflix.ninja+com.amazon.amazonvideo.livingroom+com.google.android.youtube.tvmusic+com.google.android.play.games+com.google.android.marvin.talkback+com.mitv.videoplayer+com.xiaomi.mimusic2+com.android.printspooler++# Stock Android TV launcher, replaced by launcher/ (build-and-install.sh disables it after Home moves)+# com.google.android.tvlauncher\ No newline at end of file