Skip to content

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

Merge PR #403: docs: document L43M7-EA startup-ad setting on firmware 2225

Gathin2344df9ae2dc44
diff --cc docs/devices/xiaomi-l43m7-ea-antl0.md
index 000000000,65e476b5b..de1d92ea1
mode 000000,100644..100644
--- a/docs/devices/xiaomi-l43m7-ea-antl0.md
+++ b/docs/devices/xiaomi-l43m7-ea-antl0.md
@@@ -1,0 -1,118 +1,26 @@@
-# Xiaomi L43M7-EA: stock-launcher startup advertisement
++# Xiaomi L43M7-EA (MiTV-ANTL0): startup ad off with one setting
+
-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.
++On this TV `settings put system boot_ad_switch 0` removed the 15-second startup ad, checked after a full
++restart. The stock launcher stays; nothing is disabled or installed.
+
-## Tested configuration
++| Retail model | Internal model | Android | Firmware | Stock launcher |
++| --- | --- | --- | --- | --- |
++| Xiaomi L43M7-EA, 43" | MiTV-ANTL0 / starwars | 5.1.1 (SDK 22) | 23.2.4.2225 | `com.mitv.tvhome` 3.38.1017 |
+
-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:
++The launcher reads the setting, so its version matters as much as the firmware. On this configuration the
++older `persist.bootvideo.bootanim false` method from the [ANTL0 list](../../examples/redmi-mitv-antl0/debloat.txt)
++survived a restart but did not remove the ad.
+
+ ```sh
-settings delete system boot_ad_switch
-settings get system boot_ad_switch
++TV_HOST=<tv ip> tools/venv/bin/python -I tools/tv.py 'settings get system boot_ad_switch' # save it; null here
++TV_HOST=<tv ip> tools/venv/bin/python -I tools/tv.py 'settings put system boot_ad_switch 0'
++TV_HOST=<tv ip> tools/venv/bin/python -I tools/tv.py 'settings delete system boot_ad_switch' # undo, if it was null
+ ```
+
-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.
++If the key had a value before, put that value back instead of deleting it. The ~10-second Xiaomi logo
++still shows. Network ADB closed after the restart; turning ADB debugging off and on brought it back.
+
-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.
++Limits: the launcher defaults the key to 1 and its ad-permission screen (`AuthManageActivity`) can set it
++back to 1, so changing that control may undo this. A separate seven-day timer uses the Global
++`mitv.settings.advertise.*` keys, not this one. Launcher and firmware updates, factory resets and the
++replacement launcher were not tested.
diff --cc examples/README.md
index 5df409ad1,c3bc51e17..91596e698
--- a/examples/README.md
+++ b/examples/README.md
@@@ -129,9 -117,10 +129,6 @@@ Notes for models that have no tested li
- [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).
-
- 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).
-
-
To add your TV, see [CONTRIBUTING.md](../CONTRIBUTING.md). The quickest way to get a list is to
run the prompt in [PROMPT.md](../PROMPT.md) and copy the packages your assistant disabled.
diff --cc examples/redmi-mitv-antl0/debloat.txt
index a37090573,3fe8de826..574b34603
--- a/examples/redmi-mitv-antl0/debloat.txt
+++ b/examples/redmi-mitv-antl0/debloat.txt
@@@ -10,8 -10,13 +10,12 @@@
# | 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.
++# Firmware 23.2.4.2225 with stock launcher 3.38.1017 (L43M7-EA): the property above does not remove
++# the startup ad, but one setting does (docs/devices/xiaomi-l43m7-ea-antl0.md):
++# tools/tv.py 'settings put system boot_ad_switch 0' # undo: 'settings delete system boot_ad_switch'
+ # The package-disable list below was not re-tested on that newer configuration.
# Xiaomi telemetry / analytics / quality uploads
com.miui.tv.analytics