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 Redmi Smart TV A75 2025 energy edition (L75MA-RAE, MiTV-ASTP0)
imjonma8d37f48603e6
diff --git a/README.md b/README.mdindex e84c36dbc..1bffe4bca 100644--- a/README.md+++ b/README.md@@ -114,7 +114,7 @@ Tested lists from contributors, one folder per model in [`examples/`](examples/)**TCL** 57 · **Sony** 31 · **Xiaomi** 28 · **Philips** 12 · **Hisense** 9 · **Skyworth** 9 · **Amazon Fire TV** 7 ·**Thomson** 4 · **BenQ** 3 · **Google** 3 · **OnePlus** 3 · **Panasonic** 3 · **CHiQ** 2 · **FFalcon** 2 · **Haier** 2 ·-**Hitachi** 2 · **Kalley** 2 · **Motorola** 2 · **Nokia** 2 · **NVIDIA Shield** 2 · **onn** 2 · **Redmi** 2 ·+**Hitachi** 2 · **Kalley** 2 · **Motorola** 2 · **Nokia** 2 · **NVIDIA Shield** 2 · **onn** 2 · **Redmi** 3 ·**Toshiba** 2 · **Vu** 2 ·AiPro2K · AIWA · Artel · Caxium · Cecotec · Challenger · Compac · Dialog · EKO · Freebox · Grundig · Insignia Fire TV ·JVC · Karbonn · Kogan · Lumio · MTC · Noblex · OK. · PEAQ · Polytron · PRISM+ · RCA · RockTek · Sankey · SANYO · SHARP ·@@ -223,6 +223,7 @@ Anker Nebula, BYINTEK, Epson, Formovie, Gadnic, JMGO, Portronics, Stellamore, Wa| RCA AI PONT SA (Changhong, redwood, ISDB92RC; also sold as realme 40-inch and AIWA AW32B4SMG) | Android 14 || Redmi TV (MiTV-ANTL0, starwars) | Android 5.1.1 (not Android TV) || Redmi TV (MiTV-MFTP0, alita), China firmware 23.2.10.6129 | Android TV 9 (CN build) |+| Redmi Smart TV A75 2025 energy edition (L75MA-RAE, MiTV-ASTP0), China firmware 26.3.17.OS3.0.101 | Android TV 9 (CN build) || RockTek GB1 | Google TV 14 || SANYO ATV R2 (SCBC, Realtek RTD285O) | Android TV 9 || Sankey SMART2KTVSE (Whale OS, SiliconPlayer am30bm) | Android TV 13 |diff --git a/docs/devices/redmi-l75ma-rae.md b/docs/devices/redmi-l75ma-rae.mdnew file mode 100644index 000000000..31e517c79--- /dev/null+++ b/docs/devices/redmi-l75ma-rae.md@@ -0,0 +1,89 @@+# Redmi Smart TV A75 2025 energy edition (L75MA-RAE): 2026-firmware Home takeover++Tested on Redmi Smart TV A75 2025 energy edition, sold in China as L75MA-RAE; internal model+`MiTV-ASTP0` (codename `mulan`), Android 9 / API 28, firmware `26.3.17.OS3.0.101.0.PSTAATV`+(HyperOS era, 2026-03), Amlogic, 2 GB RAM. **32-bit only**: `ro.product.cpu.abilist` is+`armeabi-v7a,armeabi`, so arm64-only apps (Tubi, Red Bull TV, Rakuten TV) fail to install. Stock+Home is `com.mitv.tvhome/.MainActivityUserMode`. Debloat list:+[`examples/redmi-l75ma-rae/debloat.txt`](../../examples/redmi-l75ma-rae/debloat.txt).++This record covers the debloat plus what it took to make a third-party launcher usable as the+actual Home screen on this 2026 firmware. The debloat half alone works exactly like the older+[`examples/xiaomi-mitv-astp0`](../../examples/xiaomi-mitv-astp0/debloat.txt).++## What failed and why++- `cmd package set-home-activity --user 0 com.ts.launcher/com.gathin.tvhome.MainActivity` prints+ `Success`, but HOME still resolves to `com.mitv.tvhome`. Unlike MiTV-AETP0 and MiTV-MFTP0+ (where the `com.ts.launcher` application-ID build became Home and survived a reboot), this+ 2026-03 build no longer accepts that ID: resolving HOME to it lands in+ `android/com.android.internal.app.ResolverActivity`.+- Letting the Home key through and redirecting later does not work either: the framework defers+ any third-party HOME-category activity start (explicit component included) until the stock+ launcher has fully settled - measured 4.5 s of PatchWall on screen before the deferred start+ ran, with animations off. `window_animation_scale 0` does not change this.+- The deferral is not the MIUI background-start restriction: a shell `am start` of the same+ component in the same moment is instant. It only applies to HOME-category starts (and was seen+ once for a later explicit start while the stock home was still settling).+- `appops` has no `AUTO_START`, `APP_AUTO_START` or `START_ANY_ACTIVITY` operation on this+ firmware, so the MIUI-style grants in `launcher/build-and-install.sh` are no-ops here.++## What works: consume the key, start by explicit component++`HomeKeyService` (HOME_KEY_SERVICE=1) receives the remote's HOME key before the system resolves+it. Two local patches to `launcher/`:++1. The `KEYCODE_HOME` branch consumes the key (returns true) and opens `MainActivity` by+ **explicit component** (`new Intent(this, MainActivity.class)` instead of the+ HOME-category intent). If the service is ever unbound the key falls through to the system and+ Home resolves to the stock launcher, so the TV never loses its Home button.+2. `openHome()` uses the same explicit component, without an animation flag delay.++The result: pressing Home lands on the new launcher instantly, with no PatchWall flash.++## Reaching the stock launcher on demand++Directly starting `com.mitv.tvhome/.MainActivityUserMode` from an app is denied:+it carries the signature-level `com.mitv.tvhome.permission.HOME_STATE` (`dumpsys package`+shows `prot=signature`), and the denial fires for explicit and implicit intents alike, from a+foreground caller too. Shell `am start` bypasses it (uid 2000), an app cannot.++The working path: a tiny bridge app (installed as its own package, icon and label free) starts+`com.ts.launcher/com.gathin.tvhome.GlobalHomeActivity`, a `Theme.NoDisplay` activity that calls+`performGlobalAction(GLOBAL_ACTION_HOME)` on the accessibility service instance. The framework's+global Home action runs HOME resolution itself - it needs no HOME_STATE permission and lands on+the stock launcher, which the system still prefers. From PatchWall, Home comes back through the+key service. Both directions are instant.++## Keeping the key service alive++- Android takes accessibility services off the enabled list when the app is force-stopped, and+ this firmware additionally clears `enabled_accessibility_services` over standby through a+ normal unbind. Two local patches keep `ServiceRepair` effective:+ 1. `onUnbind` no longer drops the repair record (the standby clear arrives as an unbind, so+ dropping the record there defeats the repair).+ 2. `ServiceRepair.restore()` adds `HomeKeyService` unconditionally instead of trusting the+ prefs record.+- `pm grant com.ts.launcher android.permission.WRITE_SECURE_SETTINGS` plus+ `restore_key_services: true` in the launcher's `config.json` turn the repair on; starting+ `MainActivity` (by hand from the stock launcher's app list, or from a `BOOT_COMPLETED`+ receiver) then writes the service back onto the enabled list.+- `dumpsys deviceidle whitelist +com.ts.launcher` and+ `am set-standby-bucket com.ts.launcher ACTIVE` reduce the chances of the process being killed+ in the first place.++## Miscellaneous++- Startup ad: `settings put system boot_ad_switch 0` (see the debloat header).+- The TV sleeps its Wi-Fi in standby; network ADB closes on every power cycle and must be+ re-enabled under 账号与安全 -> ADB 调试.+- `input keyevent 3` from the shell does **not** go through accessibility key filtering, so it+ lands on the stock launcher even when the service is bound - test the Home key with the real+ remote.+- Sideloads: YouTube TV installs from base + `config.armeabi_v7a` splits via+ `pm install-create`; Netflix installs but the service rejects the uncertified device (both+ 11.0.1 and 8.3.11); Pluto TV needs the full XAPK (base + `armeabi_v7a` + resource splits) - the+ base-only APK crashes inflating `androidx.media3.ui.PlayerView` with a+ `Resources$NotFoundException`. Pluto TV works; its region check passed on a non-US+ datacenter exit, so region availability is looser than the app's error screen suggests, but+ check your own exit node.diff --git a/examples/README.md b/examples/README.mdindex 32a0887be..4c7df963f 100644--- a/examples/README.md+++ b/examples/README.md@@ -103,6 +103,7 @@ on that firmware, grouped and commented. These are starting points: comment out| `rca-ai-pont/` | RCA AI PONT SA (Changhong, redwood, ISDB92RC; also sold as realme 40-inch and AIWA AW32B4SMG) | Android 14 | Homwee store/tools (incl. chtvmanager) and installers, Anoki ACR, FAST channels (re-enabled by firmware at boot); keep partnercustomizer (crash-loops tv.service); 1 GB; AIWA variant notes (updaters kept, Live TVx back at every boot, config.json) || `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`; startup-ad method depends on firmware and stock-launcher version, see the [L43M7-EA settings-only case](../docs/devices/xiaomi-l43m7-ea-antl0.md) || `redmi-mitv-mftp0/` | Redmi TV (MiTV-MFTP0, alita), China firmware 23.2.10.6129 | Android TV 9 (CN build) | CN-firmware Redmi, no Google apps: Mi analytics, tvqs, after-sales survey upload, cloud control, promo web container, shop plugin and store, preloaded apps, Mi Home off; `pm disable-user` works; **keep PatchWall enabled**: Home is a package-name allowlist like MiTV-AETP0, the `com.ts.launcher` application-ID build became Home and survived a reboot, do not run `build-and-install.sh` with defaults; startup ad off with `boot_ad_switch 0` on launcher 3.49.1601; `com.gitvdemo.video` is 银河奇异果 (iQIYI), kept; push service (installer whitelist), voice, casting, OTA, payments kept |+| `redmi-l75ma-rae/` | Redmi Smart TV A75 2025 energy edition (L75MA-RAE, MiTV-ASTP0, mulan), China firmware 26.3.17.OS3.0.101 (HyperOS era, 2026-03), 2 GB RAM, **32-bit only** | Android TV 9 (CN build) | Newest CN Xiaomi record: 11-package debloat (analytics, tvqs, cloud control, push, promo web container, shop plugin, TV Manager, game SDK, karaoke, self-diagnosis, gallery), voice/casting/OTA/store kept; startup ad off with `boot_ad_switch 0`; **2026 firmware Home behaviour changed**: the `com.ts.launcher` application-ID build no longer takes Home (HOME starts are deferred seconds behind the stock launcher and `set-home-activity` is ignored), the owner consumes the Home key in `HomeKeyService` and opens the launcher by explicit component, plus a GLOBAL_ACTION_HOME bridge app for reaching PatchWall and a `restore_key_services` repair that survives standby clears - [full record](../docs/devices/redmi-l75ma-rae.md); arm64-only apps (Tubi, Red Bull TV, Rakuten TV) cannot install || `rocktek-gb1/` | RockTek GB1 | Google TV 14 | Provisional seven-package list: Android privacy-sandbox services, feedback and unused media apps; setupwraith and launcherx off only after a confirmed Home handover and Wi-Fi ownership check; [gear and Macro buttons restored](rocktek-gb1/README.md) through the device overlay || `sanyo-atv-r2/` | SANYO ATV R2 (SCBC, Realtek RTD285O) | Android TV 9 | S-Channels, E-SHOW demo, Vewd, TV Booster, SANYO OTA || `sankey-smart2ktvse/` | Sankey SMART2KTVSE (Whale OS, SiliconPlayer am30bm) | Android TV 13 | Whale OS (Zeasn) telemetry/services, factory apps, AI voice assistant, ad services, updaters; stock launcher `com.whaletv.launcher` replaced with CleanYourTV; Live TV `com.zeasn.livetv` kept (needed for HDMI inputs); camera `com.android.camera2` disabled (system app, cannot uninstall); MENU+1147 does NOT work on this model; ADB enabled via Activity Launcher app; 1 GB RAM; ADB over WiFi on port 5555 after enabling Developer Options via Activity Launcher app |diff --git a/examples/redmi-l75ma-rae/debloat.txt b/examples/redmi-l75ma-rae/debloat.txtnew file mode 100644index 000000000..281b3a8a3--- /dev/null+++ b/examples/redmi-l75ma-rae/debloat.txt@@ -0,0 +1,57 @@+# Redmi Smart TV A75 2025 energy edition (L75MA-RAE, MiTV-ASTP0, codename mulan),+# China-market firmware 26.3.17.OS3.0.101.0.PSTAATV (HyperOS era, 2026-03), Android 9 (SDK 28),+# Amlogic, 2 GB RAM, 75" 4K, 144 Hz panel. 32-bit only: ro.product.cpu.abilist is+# "armeabi-v7a,armeabi" (arm64-only apps such as Tubi, Red Bull TV and Rakuten TV cannot install).+# Stock launcher: com.mitv.tvhome (HOME activity .MainActivityUserMode) - KEEP IT ENABLED, see+# "Home" below and docs/devices/redmi-l75ma-rae.md.+#+# Applied 2026-10-23; owner lived with it for days (streaming, casting, voice remote all fine).+#+# Apply: TV_HOST=<tv ip> tools/disable.sh examples/redmi-l75ma-rae/debloat.txt+# Undo: TV_HOST=<tv ip> tools/restore.sh examples/redmi-l75ma-rae/debloat.txt+# Everything is DISABLED, not uninstalled. Comment out any line you want to keep.+#+# Notes from this firmware:+# - ADB: Settings -> About -> press OK on 产品型号 (product model) 7 times to unlock developer+# options, then Settings -> 账号与安全 -> ADB 调试 -> 允许. Network ADB (5555) closes on every+# power cycle and must be turned back on there; standby drops Wi-Fi too.+# - Startup ad: `settings put system boot_ad_switch 0` (null before) removes it; undo with+# `settings delete system boot_ad_switch`. The stock launcher's ad-consent screen can write the+# key back to 1, so re-check after launcher updates.+# - Home: unlike the older MiTV-ASTP0 firmware in examples/xiaomi-mitv-astp0 and MiTV-MFTP0+# (where the com.ts.launcher application-ID build became Home and survived a reboot), this+# 2026-03 firmware defers every third-party HOME-category start until the stock launcher has+# fully settled (4-5 s flash of PatchWall) and ignores `cmd package set-home-activity`. The+# owner's setup instead consumes the Home key in HomeKeyService and opens the launcher by+# explicit component (source patch), plus a small bridge app that goes through the service's+# GLOBAL_ACTION_HOME to reach PatchWall on demand. See docs/devices/redmi-l75ma-rae.md.+# - ServiceRepair: force-stop puts accessibility services off the enabled list, and this firmware+# clears enabled_accessibility_services over standby via a normal unbind, so the record must+# survive onUnbind. With `pm grant com.ts.launcher android.permission.WRITE_SECURE_SETTINGS` and+# `restore_key_services: true`, ServiceRepair restores the service unconditionally (v14 patch).+# - Deliberately NOT disabled: voice (com.xiaomi.voicecontrol, com.xiaomi.wakeupservice), casting+# (com.xiaomi.miplay, com.xiaomi.mitv.smartshare, com.xiaomi.mi_connect_service,+# com.xiaomi.hyper_connect.tv), OTA (com.xiaomi.mitv.upgrade), app store+# (com.xiaomi.mitv.appstore), settings, inputs (com.droidlogic.tvinput), the only input method+# (com.sohu.inputmethod.sogou.tv), account, screensaver (com.xiaomi.mitv.hyper.screensaver) and+# all streaming apps (com.cibn.tv Youku TV, com.ktcp.video Tencent, com.xiaodianshi.tv.yst+# Bilibili TV, com.netease.cloudmusic.tv NetEase Cloud Music).+# - APK install (b64push + pm install) works; YouTube TV installs as base + config.armeabi_v7a+# splits via pm install-create.++# Xiaomi telemetry / push / cloud control+com.miui.tv.analytics # TV usage statistics+com.xiaomi.tvqs # quality/crash uploads+com.mitv.cloudcontrol # cloud control: remote config, pushes apps+com.xiaomi.mitv.tvpush.tvpushservice # push service++# Ads / promoted content / shopping+com.xm.webcontent # promo web container, also fetches screensaver ads+com.mitv.shoplugin # TV Taobao shopping plugin++# Background junk+com.xiaomi.mitv.tvmanager # "TV Manager" cleaner+com.xiaomi.gamecenter.sdk.service.mibox # game centre SDK+com.xiaomi.mitv.karaoke.service # karaoke service+com.xiaomi.mitv.healthdiagnosis # self-diagnosis+com.mitv.gallery # photo album (USB files still open in media explorer)