Skip to content

Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.

docs: document L43M7-EA startup-ad setting on firmware 2225

Castor68912f5926863
diff --git a/docs/devices/xiaomi-l43m7-ea-antl0.md b/docs/devices/xiaomi-l43m7-ea-antl0.md
new file mode 100644
index 000000000..65e476b5b
--- /dev/null
+++ b/docs/devices/xiaomi-l43m7-ea-antl0.md
@@ -0,0 +1,118 @@
+# Xiaomi L43M7-EA: stock-launcher startup advertisement
+
+On this TV, setting `Settings.System.boot_ad_switch` to `0` removed the approximately
+15-second startup advertisement after a full restart. The stock launcher was retained.
+This is a device-specific settings note, not a tested package-disable list.
+
+## Tested configuration
+
+Checked on a real TV on 2026-10-20:
+
+| Field | Value |
+| --- | --- |
+| Retail model | Xiaomi L43M7-EA, 43-inch, 1920 x 1080 |
+| Internal model / device | MiTV-ANTL0 / starwars |
+| Android | 5.1.1, SDK 22 |
+| Build (`ro.build.display.id`) | 23.2.4.2225 |
+| Settings UI version | MiTV OS 2.12.2225 |
+| Active stock launcher | `com.mitv.tvhome`, version 3.38.1017, versionCode 1017 |
+
+The launcher was an updated system app. Record its version as well as the firmware:
+the setting is read by the launcher, so the internal model alone is not a compatibility
+guarantee. No root commands, package disabling, APK replacement or launcher installation
+were needed.
+
+## Difference from the older ANTL0 example
+
+The [existing ANTL0 list](../../examples/redmi-mitv-antl0/debloat.txt) reports firmware
+22.8.17.1977 and a `persist.bootvideo.bootanim` property change. On the configuration
+above, changing that property from `true` to `false` survived a restart but did **not**
+remove the 15-second advertisement. It was restored to its original value, `true`,
+before the successful test.
+
+That result limits the old method's applicability; it does not invalidate the report
+from the older firmware.
+
+## Read, change and verify
+
+Commands below run in the TV's ADB shell. With the repository client, wrap each command
+as `TV_HOST=YOUR_TV_IP tools/venv/bin/python -I tools/tv.py 'COMMAND'`, replacing
+`YOUR_TV_IP` and `COMMAND`.
+
+1. Read and save the original setting before changing it:
+
+ ```sh
+ settings get system boot_ad_switch
+ ```
+
+ On the tested TV this key was absent (`null`). Keep the original value or absence
+ so it can be restored.
+
+2. Change this one setting, then read it back:
+
+ ```sh
+ settings put system boot_ad_switch 0
+ settings get system boot_ad_switch
+ ```
+
+ The readback should be `0`. Do not infer success from an empty command response.
+
+3. Perform a full restart using the TV's normal controls and observe the startup.
+ After reconnecting ADB, read the setting again. On this TV, network ADB became
+ unavailable after a restart; toggling ADB debugging off and on in the TV's account
+ and security settings restored the connection.
+
+The owner confirmed that the 15-second advertisement disappeared. A subsequent
+post-restart settings snapshot still contained `boot_ad_switch=0`. An approximately
+10-second Xiaomi brand startup screen remained; this test does not establish a
+reduction in the time required to initialize Android or the desktop.
+
+## Restore the saved state
+
+If the key was originally absent, restore that absence:
+
+```sh
+settings delete system boot_ad_switch
+settings get system boot_ad_switch
+```
+
+The readback should be `null`. If the key had a value before the change, use
+`settings put system boot_ad_switch ORIGINAL_VALUE` with that saved value instead,
+then read it back. Setting it to `1` is not an exact restoration of an originally
+absent key.
+
+This is the restoration procedure, not a claim that the successful setting was
+subsequently undone and the advertisement re-tested.
+
+## Timed closure and persistence limits
+
+Inspection of the installed launcher found that `BootUpADManager.canPlayBootAd()`
+checks the Global `mitv.settings.advertise.state` setting and separately checks
+`AdPreference.getBootAdSwitchValue()`. The latter reads the **System** key
+`boot_ad_switch`, with a default of `1`; a value of `0` prevents boot-ad playback.
+The settings namespace matters.
+
+A temporary native closure was also investigated. Its Global keys were:
+
+- `mitv.settings.advertise.closetime`
+- `mitv.settings.advertise.state`
+- `mitv.settings.advertise.tv.incremental`
+
+Those keys were originally absent on this TV. After that experiment, all three were
+restored to their original absence before the successful restart, and were still
+absent in the later snapshot. They are not required steps in the procedure above.
+Do not delete another TV's pre-existing values merely to copy this case.
+
+The inspected seven-day reset path in `mitv.service.advertise.AdvertiseUtil` updates
+those Global keys, not `System.boot_ad_switch`. This is code-inspection evidence
+that the tested switch is separate from the timed closure, **not** a seven-day
+observation or a promise of permanent removal.
+
+The stock launcher's `AuthManageActivity` can write `boot_ad_switch=1` when handling
+its `persist.sys.adswitch` ad-permission control. Changing that UI control may undo
+the setting. Launcher/firmware updates and factory resets were not tested.
+
+Validation covers this configuration and the observed restart only. It does not
+establish long-term persistence, applicability to every Xiaomi TV, compatibility
+with the project's replacement launcher, or the safety of the older example's
+package-disable list on this firmware.
diff --git a/examples/README.md b/examples/README.md
index da48e71be..c3bc51e17 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -48,7 +48,7 @@ on that firmware, grouped and commented. These are starting points: comment out
| `portronics-beem-470/` | Portronics Beem 470 Smart LED Projector (Allwinner H713, 1 GB), India | Android 11 | First Portronics list: HTC stock launcher/OTA/telemetry and app store, Allwinner Live TV/media/theme apps, stock YouTube replaced by SmartTube, AOSP phone/print/cell leftovers; casting/EShare kept; HOME key needs both setup flags, and Settings needs an explicit component because the firmware answers no ACTION_SETTINGS |
| `prismplus-q65-ultra-r10g/` | PRISM+ Q65 Ultra 2026 QLED 4K AI Google TV (R10G, PRISMPLUS_FFM, MOKA, Realtek RTD2875 SoC, RTD6748 platform) | Google TV 14 | Realtek partner customizer, Google partner setup and auto-installs, ambient mode, unused DTMB/ISDB/ATSC tuners, karaoke, preloaded apps; Max off by choice; keep com.realtek.dtv and com.realtek.tv.atv for inputs |
| `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 |
-| `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` |
+| `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) |
| `sanyo-atv-r2/` | SANYO ATV R2 (SCBC, Realtek RTD285O) | Android TV 9 | S-Channels, E-SHOW demo, Vewd, TV Booster, SANYO OTA |
| `skyworth-swtv-21ae/` | Skyworth SWTV-21AE (sunnyvale, MediaTek) | Android TV 14 | Skyworth home-row customizer, shop demo, e-manual; Google feedback; FAST channels, YouTube, ambient mode off by choice; port 5555 opens without pairing; 1 GB |
| `skyworth-swtv-24na-4k-nf/` | Skyworth SWTV-24NA-4K NF (eleonas, MediaTek mt5896), US | Google TV 14 | Same platform as the India Philips Smart 4K: Skyworth recommendations, after-sale/activation trackers, partner customizer, Ginga/MHEG; casting, karaoke, OTA kept by choice; wireless-debugging pairing only; setupwraith owned the Wi-Fi saved at setup and disabling it deleted the network |
@@ -117,6 +117,7 @@ Notes for models that have no tested list yet live in [`docs/devices/`](../docs/
- [TCL `75c63b`](../docs/devices/tcl-75c63b.md), owner-reported retail model, `Smart TV Pro` / `BeyondTV4`, Android 11, `V8-R51MT05-LF1V652`: launcher-only installation, HOME priorities and component restrictions, correct Live TV player package, restoration and explicit test limits.
- [Xiaomi MiTV-MFTR0 "freeguy"](../docs/devices/xiaomi-mitv-mftr0-freeguy.txt), China, Android 14: inputs, Xiaomi settings intents, app discovery.
+- [Xiaomi L43M7-EA / MiTV-ANTL0](../docs/devices/xiaomi-l43m7-ea-antl0.md), Android 5.1.1, firmware 23.2.4.2225 and stock launcher 3.38.1017: startup-ad setting verified after a restart, restoration and persistence limits; no package-disable list.
Notes for a model that has no tested list yet live in [`docs/devices/`](../docs/devices/) (Xiaomi MiTV-MFTR0 "freeguy", China, Android 14: inputs, Xiaomi settings intents, app discovery).
diff --git a/examples/redmi-mitv-antl0/debloat.txt b/examples/redmi-mitv-antl0/debloat.txt
index a37090573..3fe8de826 100644
--- a/examples/redmi-mitv-antl0/debloat.txt
+++ b/examples/redmi-mitv-antl0/debloat.txt
@@ -10,8 +10,13 @@
# | 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):
+# Boot-video property method reported on firmware 22.8.17.1977 (reversible):
# tools/tv.py 'setprop persist.bootvideo.bootanim false' # true restores it
+# On L43M7-EA with firmware 23.2.4.2225 and stock launcher 3.38.1017, this property
+# survived a restart but did not remove the startup ad. That configuration used
+# Settings.System.boot_ad_switch instead; see docs/devices/xiaomi-l43m7-ea-antl0.md
+# for the verified setting, restoration procedure and validation limits.
+# The package-disable list below was not re-tested on that newer configuration.
# Xiaomi telemetry / analytics / quality uploads
com.miui.tv.analytics