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 #148: Redmi TV (MiTV-ANTL0, Android 5.1.1)
Gathin236df6bbe8b222
diff --cc README.mdindex 9de94b10d,342045d65..69113641d--- a/README.md+++ b/README.md@@@ -87,45 -105,30 +87,46 @@@ NVIDIA Shield · OnePlus · Philips ·| TV | OS ||---|---|-| Xiaomi Mi TV 4A (MiTV-MOOQ1) | Android TV 10 |-| TCL 55" 4K Google TV, 2023 (G10, G10_4K_US_NF) | Google TV 12 |-| Xiaomi MiTV-AXSO0 (dangal) | Android TV 9 |-| Xiaomi Mi Box S (MIBOX4, oneday), streaming box | Android TV 9 |-| SANYO ATV R2 (SCBC, Realtek RTD285O) | Android TV 9 |-| OnePlus TV (D00, Dubai) | Google TV 14 || BenQ E55-735 (Changhong AI PONT, DVB96BQ) | Google TV 14 |+| CHiQ AI PONT (DVB93CQ) | Android TV 11 |+| Chromecast with Google TV 4K (sabrina) | Google TV 14 || Hisense SmartTV 4K FFM (huangshan, MediaTek) | Android TV 10 |-| TCL 65C725 (Smart TV Pro, BeyondTV4) | Android TV 11 |+| Insignia 55" F30 4K Fire TV (NS-55F301NA25, AFTDCT31, duckie) | Fire OS 7 / Android 9 |+| NVIDIA SHIELD TV Pro 2019 (P2897, mdarcy) | Android TV 11 |+| OnePlus TV (D00, Dubai) | Google TV 14 |+| Philips Smart 4K TV (Skyworth, eleonas, MediaTek), India | Google TV 14 |+| RCA AI PONT SA (Changhong, redwood, ISDB92RC; also sold as realme 40-inch) | Android 14 |+| SANYO ATV R2 (SCBC, Realtek RTD285O) | Android TV 9 |+| Sony BRAVIA 4K GB (BRAVIA_ATV2_EU, BRAVIA_ATV2) | Android TV 9 || Sony BRAVIA 4K UR2 (BRAVIA_UR2_4K, MediaTek) | Android TV 10 |-| Xiaomi Mi TV (MiTV-MOOQ0, croods) | Android TV 10 |+| Sony BRAVIA 9 II (K-65XR90M2, BRAVIA_AE3, MediaTek MT5838) | Google TV 14 |+| Sony BRAVIA 4K VH2 (KD-55X80J, BRAVIA_VH2, MediaTek), EU | Google TV 12 || Sony BRAVIA XBR-65X900E (2017, BRAVIA_ATV2) | Android TV 9 |+| Stellamore T950S projector (Droidlogic be30a3, Amlogic txhd2) | Android 13 |+| TCL 55" 4K Google TV, 2023 (G10, G10_4K_US_NF) | Google TV 12 |+| TCL 65C725 (Smart TV Pro, BeyondTV4) | Android TV 11 |+| TCL 55Q10G Pro (China, tcl_mt5879_cn, MediaTek MT9952) | Android TV 11 |+| TCL ak30a5 (China, Amlogic) | Android TV 9 || TCL BeyondTV (India) | Android TV 9 |-| NVIDIA SHIELD TV Pro 2019 (P2897, mdarcy) | Android TV 11 |-| Xiaomi MiTV-MOOR2 (venom, MediaTek) | Google TV 11 |-| Xiaomi MiTV-AESP0 stick (aquaman, 1 GB) | Android TV 9 || TCL QM6K Pro, 2025 (G08, MediaTek tcl9618) | Google TV 14 |-| RCA AI PONT SA (Changhong, redwood, ISDB92RC) | Android 14 |-| CHiQ AI PONT (DVB93CQ) | Android TV 11 |-| Redmi TV (MiTV-ANTL0, starwars) | Android TV 5.1.1 |+| TCL Smart TV Pro (G05, G05_4K_US, MediaTek MT5889) | Google TV 11 |+| Thomson 32HE5800 (TCL-built UnionTV, Realtek RT2841), Spain | Android TV 9 |+| 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 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 |+| Xiaomi MiTV-AXSO0 (dangal; Mi TV 4C Pro 2019 / 4A Pro) | Android TV 9 |+| Xiaomi MiTV-MOOR2 (venom, MediaTek) | Google TV 11 |+| Xiaomi MiTV-MSSP3 (machuca, MediaTek) | Android TV 11 |+| Xiaomi TV A Pro 75" 2026 (MiTV-MZTU0, river, MediaTek) | Google TV 14 |++| Redmi TV (MiTV-ANTL0, starwars) | Android 5.1.1 (not Android TV) |++</details>-Your TV not here? The prompt works regardless, it discovers the bloat itself. If you add your-list afterwards, the next person with your model skips that step. See-[Contributing](#contributing).+Your TV not here? The prompt discovers the bloat itself. Add your list afterwards and the next+person with your model skips that step: [CONTRIBUTING.md](CONTRIBUTING.md).## Doing it by handdiff --cc examples/README.mdindex 14d164c72,69cfcad4c..1f20c9297--- a/examples/README.md+++ b/examples/README.md@@@ -5,45 -5,26 +5,46 @@@ on that firmware, grouped and commented| Folder | TV | OS | Notes ||---|---|---|---|-| `xiaomi-mi-tv-4a/` | Xiaomi Mi TV 4A (MiTV-MOOQ1) | Android TV 10 | PatchWall, Mi analytics, SmartShare, MiLink |-| `tcl-g10-google-tv/` | TCL 55" 4K Google TV, 2023 (G10, G10_4K_US_NF) | Google TV 12 | TCL TV+, TCL Live, store demo, smartlink installer |-| `xiaomi-mitv-axso0/` | Xiaomi MiTV-AXSO0 (dangal) | Android TV 9 | PatchWall, Mi analytics, MiLink; voice, Chromecast, unused streaming apps 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 |-| `sanyo-atv-r2/` | SANYO ATV R2 (SCBC, Realtek RTD285O) | Android TV 9 | S-Channels, E-SHOW demo, Vewd, TV Booster, SANYO OTA |-| `oneplus-tv-dubai/` | OnePlus TV (D00, Dubai) | Google TV 14 | HeyTap/OnePlus extras, OnePlus Connect, Smart Home || `benq-e55-735/` | BenQ E55-735 (Changhong AI PONT, DVB96BQ) | Google TV 14 | Homwee store/help, Anoki ACR, Google TV recommendations; wireless-debugging pairing, setupwraith, deep-standby notes |+| `chiq-ai-pont/` | CHiQ AI PONT (DVB93CQ) | Android TV 11 | Anoki ACR, FAST channels, AI PONT, Homwee services |+| `chiq-gtvu65/` | CHiQ AI PONT (Changhong GTVU65, dangni, MediaTek mt5867) | Google TV 14 | Google ad services and auto-installs, Homwee store/help; 1 GB; setupwraith must go (RecoveryActivity component cannot be disabled alone); MediaTek partnercustomizer safe to disable (reboot-checked) |+| `google-chromecast-gtv-4k/` | Chromecast with Google TV 4K (sabrina) | Google TV 14 | Google telemetry and ad services, ambient mode, launcherx + setupwraith; wireless-debugging pairing, YouTube button remap || `hisense-smarttv-4k-ffm/` | Hisense SmartTV 4K FFM (huangshan, MediaTek) | Android TV 10 | ACR (evservice), VIDAA preload, store/hotel mode, OTA; smartsense must stay enabled |-| `tcl-65c725/` | TCL 65C725 (Smart TV Pro, BeyondTV4) | Android TV 11 | TCL analytics/promos, Google recommendation rows; voice off, OTA off by choice |+| `hitachi-65qledsm20/` | Hitachi 65QLEDSM20 (MTC, bangbae, MediaTek m7322), Australia | Android TV 11 | Anoki ACR and FAST channels, JVC auto-installs; the "demo" package handles the Input key and remote pairing; 1.3 GB |+| `insignia-ns55f301na25/` | Insignia 55" F30 4K Fire TV (NS-55F301NA25, AFTDCT31, duckie) | Fire OS 7 / Android 9 | Amazon ACR telemetry, Fire TV ads/shopping, Alexa, OTA updates; AirPlay and TIF HDMI inputs kept |+| `nvidia-shield-tv-pro-2019/` | NVIDIA SHIELD TV Pro 2019 (P2897, mdarcy) | Android TV 11 | NVIDIA telemetry, GameStream leftovers, sponsored rows, partner auto-installs |+| `oneplus-tv-dubai/` | OnePlus TV (D00, Dubai) | Google TV 14 | HeyTap/OnePlus extras, OnePlus Connect, Smart Home |+| `panasonic-4ktv-jup/` | Panasonic 4KTV-JUP (Jupiter_PA, MediaTek) | Android TV 11 | Google recommendation rows and screensaver, Panasonic demo/hotel/help apps, calendar/print/backup leftovers; streaming apps off by choice; keep `com.mediatek.*` |+| `philips-smart-4k-google-tv/` | Philips Smart 4K TV (Skyworth, eleonas, MediaTek), India | Google TV 14 | Skyworth recommendations, after-sale/activation trackers, iCast; Chromecast, Assistant off by choice; wireless-debugging pairing, setupwraith |+| `rca-ai-pont/` | RCA AI PONT SA (Changhong, redwood, ISDB92RC; also sold as realme 40-inch) | Android 14 | Homwee store and installers, Anoki ACR, FAST channels; 1 GB |+| `sanyo-atv-r2/` | SANYO ATV R2 (SCBC, Realtek RTD285O) | Android TV 9 | S-Channels, E-SHOW demo, Vewd, TV Booster, SANYO OTA |+| `sony-bravia-4k-gb/` | Sony BRAVIA 4K GB (BRAVIA_ATV2_EU, BRAVIA_ATV2) | Android TV 9 | Samba TV ACR, Sony Select/promos/Discover, demo mode, device agents; same firmware as the X900E; Chromecast, mirroring, DLNA and USB media kept on purpose || `sony-bravia-4k-ur2/` | Sony BRAVIA 4K UR2 (BRAVIA_UR2_4K, MediaTek) | Android TV 10 | Samba TV, Sony promos/Select, demo mode; Assistant, Chromecast, unused streaming apps off by choice |-| `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 |+| `sony-bravia-9-ii/` | Sony BRAVIA 9 II (K-65XR90M2, BRAVIA_AE3, MediaTek MT5838) | Google TV 14 | Samba TV ACR, Sony/Qterics device agents, IDD, My BRAVIA promos, Sony Select and Sony tab, demo mode; setupwraith off for the launcher, but it owns Wi-Fi saved during setup and disabling it deletes that network; Chromecast off by choice |+| `sony-bravia-4k-vh2/` | Sony BRAVIA 4K VH2 (KD-55X80J, BRAVIA_VH2, MediaTek), EU | Google TV 12 | Samba TV ACR, Sony/Qterics device agents, demo mode, help tiles; setupwraith off for a custom launcher; Assistant, Chromecast, firmware updates kept || `sony-xbr-x900e/` | Sony BRAVIA XBR-65X900E (2017, BRAVIA_ATV2) | Android TV 9 | Samba TV ACR, Sony Select, My BRAVIA promos, Discover, device agents; Chromecast, DLNA, mirroring off by choice |+| `stellamore-t950s/` | Stellamore T950S projector (Droidlogic be30a3, Amlogic txhd2) | Android 13 | Zeasn App Store and stock launcher both bundle Google Ads (doubleclick); Zeasn device portal/OTA, Stellamore factory/test/guide; 1 GB; keystone correction must stay enabled |+| `tcl-g10-google-tv/` | TCL 55" 4K Google TV, 2023 (G10, G10_4K_US_NF) | Google TV 12 | TCL TV+, TCL Live, store demo, smartlink installer |+| `tcl-65c725/` | TCL 65C725 (Smart TV Pro, BeyondTV4) | Android TV 11 | TCL analytics/promos, Google recommendation rows; voice off, OTA off by choice |+| `tcl-ak30a5/` | TCL ak30a5 (China, Amlogic) | Android TV 9 | No Google services, TCL boot ad + analytics, no TvInputManager, installs via USB only; debloat only, third-party launchers cannot be installed on this firmware |+| `tcl-q10g-pro/` | TCL 55Q10G Pro (China, tcl_mt5879_cn, MediaTek MT9952) | Android TV 11 | No Google services, TCL boot ad + analytics/BI, OTA and account services; ADB opens from Device info + UP/DOWN/LEFT/RIGHT, not the build number; debloat only, stock launcher cannot be replaced (signature check at install time) || `tcl-beyondtv/` | TCL BeyondTV (India) | Android TV 9 | TCL analytics, content feed, TCL app store, Google recommendation rows; Jio/Airtel/Hotstar apps untouched |-| `nvidia-shield-tv-pro-2019/` | NVIDIA SHIELD TV Pro 2019 (P2897, mdarcy) | Android TV 11 | NVIDIA telemetry, GameStream leftovers, sponsored rows, partner auto-installs |-| `xiaomi-mitv-moor2/` | Xiaomi MiTV-MOOR2 (venom, MediaTek) | Google TV 11 | Mi ad row and PatchWall, Mi analytics, MiLink, store demo; setup wizard off so a third-party launcher can own Home |+| `tcl-beyondtv-rt2851/` | TCL BeyondTV, EU/Nordic (Realtek RTD2851, V8-R851T02-LF1V606) | Android TV 9 | TCL BI analytics, promo rows, cyberui, cleaner and store; mirroring, voice and firmware updater off by choice; Chromecast kept; installer note for appmarket2/tvweishi |+| `tcl-qm6k-google-tv/` | TCL QM6K Pro, 2025 (G08, MediaTek tcl9618) | Google TV 14 | Samba TV ACR (ttvs), TCL TV+, TCL Live, store/hotel demo; setupwraith must go for a custom launcher (also AU14, #23) |+| `tcl-g05-google-tv/` | TCL Smart TV Pro (G05, G05_4K_US, MediaTek MT5889) | Google TV 11 | TCL Channel, waterfall, ttvs BI, TGuard; Quick Panel off by choice; setupwraith returned after a reboot, launcher half unverified |+| `thomson-32he5800/` | Thomson 32HE5800 (TCL-built UnionTV, Realtek RT2841), Spain | Android TV 9 | TCL BI analytics, TCL app store/user center, TV Guard cleaner, Google recommendation rows; 1.4 GB low-RAM; voice, USB media players off by choice |+| `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-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 |-| `tcl-qm6k-google-tv/` | TCL QM6K Pro, 2025 (G08, MediaTek tcl9618) | Google TV 14 | Samba TV ACR (ttvs), TCL TV+, TCL Live, store/hotel demo; setupwraith must go for a custom launcher |-| `rca-ai-pont/` | RCA AI PONT SA (Changhong, redwood, ISDB92RC) | Android 14 | Homwee store and installers, Anoki ACR, FAST channels; 1 GB |-| `chiq-ai-pont/` | CHiQ AI PONT (DVB93CQ) | Android TV 11 | Anoki ACR, FAST channels, AI PONT, Homwee services |-| `redmi-mitv-antl0/` | Redmi TV (MiTV-ANTL0, starwars) | Android TV 5.1.1 | Mi push/web-content/cloud-control ads, TV Taobao, stock screensaver, OTA; needs `pm hide` instead of `pm disable-user`, boot ad is a `setprop` |+| `xiaomi-mitv-astp1/` | Xiaomi MiTV-ASTP1 (maverick), China firmware 2.40.641.0514.cn, 1 GB RAM, 720p | Android TV 9 (CN build) | First CN-firmware Xiaomi: no Google apps; stock launcher `com.mitv.tvhome` (pass `STOCK_LAUNCHER`); ADB closes on every reboot; Mi analytics/push/ads, shop plugin, TV Manager, updater off; casting and app store kept |+| `xiaomi-mitv-axso0/` | Xiaomi MiTV-AXSO0 (dangal; Mi TV 4C Pro 2019 / 4A Pro) | Android TV 9 | PatchWall, Glance ads, Mi TV+, Sensara, Mi analytics, MiLink; voice, Chromecast, unused streaming apps off by choice |+| `xiaomi-mitv-moor2/` | Xiaomi MiTV-MOOR2 (venom, MediaTek) | Google TV 11 | Mi ad row and PatchWall, Mi analytics, MiLink, store demo; setup wizard off so a third-party launcher can own Home |+| `xiaomi-mitv-mssp3/` | Xiaomi MiTV-MSSP3 (machuca, MediaTek) | Android TV 11 | PatchWall, Mi analytics, Netflix observer; Chromecast, screensavers, unused streaming apps off by choice |+| `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 |++| `redmi-mitv-antl0/` | Redmi TV (MiTV-ANTL0, starwars) | Android 5.1.1 (not Android TV) | Mi push/web-content/cloud-control ads, TV Taobao, stock screensaver, OTA; needs `pm hide` instead of `pm disable-user`, boot ad is a `setprop` |To add your TV, see [CONTRIBUTING.md](../CONTRIBUTING.md). The quickest way to get a list is torun the prompt in [PROMPT.md](../PROMPT.md) and copy the packages your assistant disabled.diff --cc examples/redmi-mitv-antl0/debloat.txtindex 000000000,ec4327190..a37090573mode 000000,100644..100644--- a/examples/redmi-mitv-antl0/debloat.txt+++ b/examples/redmi-mitv-antl0/debloat.txt@@@ -1,0 -1,50 +1,52 @@@+ # Redmi TV (MiTV-ANTL0, codename starwars), Android 5.1.1 (SDK 22), firmware 22.8.17.1977, Amlogic.+ # Discovered on-device 2026-10-19; every package verified with dumpsys before being listed.+ # Chinese-market firmware: no Google services at all, Sogou TV is the ONLY input method.+ #+ # FIRMWARE QUIRK: `pm disable-user` / `pm disable` are refused for the shell user with a+ # SecurityException on this build. The equivalent here is `pm hide` / `pm unhide` - just as+ # reversible, and `tools/restore.sh`'s `pm enable` must be swapped for `pm unhide`.+ # Apply (one pm command per shell call):+ # grep -vE '^\s*(#|$)' examples/redmi-mitv-antl0/debloat.txt | sed -E 's/\s+#.*$//' \+ # | awk '{print "pm hide " $1}' | TV_HOST=<tv ip> tools/venv/bin/python -I tools/tv.py --batch+ # Undo: same, but `pm unhide`.+ #+ # Boot-video ad is a property, not a package (reversible, survives reboots):+ # tools/tv.py 'setprop persist.bootvideo.bootanim false' # true restores it++ # Xiaomi telemetry / analytics / quality uploads+ com.miui.tv.analytics+ com.xiaomi.statistic+ com.xiaomi.tvqs # quality system: uploads crash/perf/dropbox entries++ # Ad delivery: push service, promo web-content renderer, cloud app-push+ com.xiaomi.mitv.tvpush.tvpushservice+ com.xm.webcontent # webview/RN container for promos; fetches screensaver ads too+ com.mitv.cloudcontrol # cloud control: starts on connectivity, remotely pushes apps++ # Shopping plugin (Alibaba Baichuan / TV Taobao SDK)+ com.mitv.shoplugin++ # Stock screensaver, replaced by the launcher's ClockDream:+ # settings put secure screensaver_components com.gathin.tvhome/.ClockDream+ com.mitv.screensaver+-# OTA updater: stops firmware updates re-enabling everything above++# OTA updater: stops firmware updates re-enabling everything above. Trade-off: no security updates++# either; re-enable it for a while when you want an OTA.+ com.xiaomi.mitv.upgrade++ # Cleaner app and game SDK; both have a /system base, hiding the package is enough+ com.xiaomi.mitv.tvmanager+ com.xiaomi.gamecenter.sdk.service.mibox++ # Stock launcher (duokan content wall, incl. a PREDETAIL_AD_ACTIVITY); replaced by launcher/.-# Unhide it first if you ever factory-reset the TV.-com.mitv.tvhome++# Unhide it first if you ever factory-reset the TV. Left commented out: the launcher needs the++# minSdk-22 build proposed in PR #146, which is not merged, so for now take the debloat half only.++# com.mitv.tvhome++ # Owner's-choice removals NOT listed above (uninstalled with APKs backed up first, restore by+ # installing the APK again): gala demo video, KKTv, Bilibili TV (xiaodianshi), Tencent TV+ # (ktcp), Mi app store (27 MB background updater), phone-remote service, voice control.+ #-# Launcher notes for this model: needs the minSdk-22 build (see the launcher PR); the Settings++# Launcher notes for this model: needs the minSdk-22 build (PR #146, not merged yet); the Settings+ # and Wi-Fi pills require the com.xiaomi.mitv.settings fallback keys in config.xml - the+ # firmware never registers the standard android.settings.* actions.