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 Mi Box S 2nd gen (MiTV-AFKR0, jaws), Google TV 11
Bahriish4d57d04e50c1
diff --git a/README.md b/README.mdindex d49efe57e..05138cd13 100644--- a/README.md+++ b/README.md@@ -110,6 +110,7 @@ NVIDIA Shield · OnePlus · Philips · RCA · SANYO · Toshiba Fire TV · Stella| Toshiba Fire TV (AFTHA004, hazel) | Fire OS 7 / Android 9 || XGIMI Horizon S Pro projector (XK03H, xgimigalileo, MediaTek) | Android TV 11 || Xiaomi Mi Box S (MIBOX4, oneday), streaming box | Android TV 9 |+| Xiaomi Mi Box S 2nd gen (MiTV-AFKR0, jaws), streaming box | Google TV 11 || Xiaomi Mi TV (MiTV-MOOQ0, croods) | Android TV 10 || Xiaomi Mi TV 4A (MiTV-MOOQ1) | Android TV 10 || Xiaomi MiTV-AESP0 stick (aquaman, 1 GB) | Android TV 9 |diff --git a/examples/README.md b/examples/README.mdindex 038cce39f..356efd33e 100644--- a/examples/README.md+++ b/examples/README.md@@ -28,6 +28,7 @@ on that firmware, grouped and commented. These are starting points: comment out| `toshiba-fire-tv-aftha004/` | Toshiba Fire TV (AFTHA004, hazel) | Fire OS 7 / Android 9 | Amazon ACR, metrics, shopping, tutorials, Miracast sink; streaming preloads off by choice; debloat only || `xgimi-horizon-s-pro/` | XGIMI Horizon S Pro projector (XK03H, xgimigalileo, MediaTek) | Android TV 11 | First projector: keystone/autofocus/HDMI player kept, factory and burn-in tools, bug-report uploader, Google preloads; HDMI needs `input_action`; voice, Chromecast off by choice || `xiaomi-mi-box-s/` | Xiaomi Mi Box S (MIBOX4, oneday), streaming box | Android TV 9 | PatchWall, Mi analytics, Alphonso ad tracking, MiLink; voice, casting, phone remote off by choice |+| `xiaomi-mi-box-s-2nd-gen/` | Xiaomi Mi Box S 2nd gen (MiTV-AFKR0, jaws), streaming box | Google TV 11 | Mi ad row and PatchWall, Mi analytics, partner auto-installs, update service off by choice; setup wizard off for the launcher, Wi-Fi password re-entry note || `xiaomi-mitv-mooq0/` | Xiaomi Mi TV (MiTV-MOOQ0, croods) | Android TV 10 | PatchWall, Mi analytics, MiChannel, TV Manager, Alexa bridge; factory test app also claims HOME; notes from #81 || `xiaomi-mi-tv-4a/` | Xiaomi Mi TV 4A (MiTV-MOOQ1) | Android TV 10 | PatchWall, Mi analytics, SmartShare, MiLink || `xiaomi-mitv-aesp0/` | Xiaomi MiTV-AESP0 stick (aquaman, 1 GB) | Android TV 9 | No inputs; Home key sends ALL_APPS, needs `HOME_KEY_SERVICE=1`; Chromecast kept |diff --git a/examples/xiaomi-mi-box-s-2nd-gen/debloat.txt b/examples/xiaomi-mi-box-s-2nd-gen/debloat.txtnew file mode 100644index 000000000..acee83af8--- /dev/null+++ b/examples/xiaomi-mi-box-s-2nd-gen/debloat.txt@@ -0,0 +1,56 @@+# Xiaomi Mi Box S 2nd gen (model MiTV-AFKR0, codename jaws, Amlogic), Google TV / Android 11 (SDK 30),+# 2 GB RAM. Fingerprint: Xiaomi/jaws/jaws:11/RTT0.211222.001/772:user/release-keys+#+# Apply: TV_HOST=<box ip> tools/disable.sh examples/xiaomi-mi-box-s-2nd-gen/debloat.txt+# Undo: TV_HOST=<box ip> tools/restore.sh examples/xiaomi-mi-box-s-2nd-gen/debloat.txt com.google.android.apps.tv.launcherx+# Everything is DISABLED, not uninstalled. Comment out any line you want to keep.+#+# Stock launcher: com.google.android.apps.tv.launcherx. HOME claimants on stock: launcherx (priority 2),+# com.google.android.tungsten.setupwraith/.RecoveryActivity (priority 1), Settings FallbackHome.+# A streaming box: no HDMI-in or tuner, leave live_tv_package empty in config.xml; the Inputs pill hides itself.+#+# Tested: every package below was disabled in batches with screenshots in between, the launcher from+# launcher/ was installed and owns Home, and Home and Wi-Fi both came back by themselves after a reboot.+# That is a first-day report, not the few days CONTRIBUTING.md asks for, so treat the list as provisional.+#+# Notes from this box:+# - The stock adb on macOS connected fine on port 5555 once USB debugging was on; no wireless-debugging+# pairing and no tools/tv.py needed.+# - Disabling launcherx alone makes Home resolve to setupwraith's RecoveryActivity; `cmd package+# set-home-activity` reports Success but does not take effect until setupwraith is disabled too.+# - Right after disabling setupwraith, Wi-Fi dropped for about 20 seconds and the box asked for the Wi-Fi+# password again. Once it was re-entered, it stayed saved across a reboot.+#+# Kept on purpose: Google Assistant (katniss), Chromecast (mediashell), phone remote (tv.remote.service),+# YouTube Music, Xiaomi USB media apps (mimusic2, mitv.gallery, mediaexplorer, mitv.videoplayer),+# Miracast (smartshare, wfdsinkhelperservice), com.xiaomi.tvqs.overseas (quick settings panel),+# com.xiaomi.android.tvsetup.partnercustomizer (remote shortcut buttons), mitv.service, com.mi.bluetooth,+# com.droidlogic* (Amlogic system), com.xiaomi.gtv.settings.++# Telemetry and attribution+com.miui.tv.analytics # Mi analytics+com.xiaomi.statistic # Xiaomi usage stats uploader+com.google.android.feedback+com.google.android.partnersetup # Google RLZ attribution pings++# Ad rows, promos and auto-installs+com.mitv.tvhome.oemtab # Xiaomi ad row+com.mitv.tvhome.michannel # Mi content rows+com.mitv.tvhome.mitvplus # Mi TV+ ad-funded channels+com.mitv.tvhome.atv # PatchWall+com.xm.webcontent # Xiaomi web promos+android.autoinstalls.config.xioami.mibox3 # Play auto-install of partner apps (sic, "xioami")++# Xiaomi update service, off by choice; re-enable to check for a firmware update+com.xiaomi.mitv.updateservice++# Preloaded apps, off by choice+com.amazon.amazonvideo.livingroom # Prime Video+com.google.android.videos # Google TV / Play Movies+com.google.android.play.games+com.android.printspooler++# ONLY AFTER com.gathin.tvhome IS INSTALLED. Disabling launcherx alone hands Home to the setup wizard's+# RecoveryActivity, so the wizard has to go too. Re-enable it before a factory reset (restore.sh does).+# On this box Wi-Fi dropped right after disabling it and the password had to be re-entered once.+com.google.android.tungsten.setupwraith