Skip to content

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

docs: keep hancock note to firmware interfaces

sofarxb6d08dfcc858
diff --git a/docs/devices/xiaomi-mitv3s-48-hancock-follow-up.md b/docs/devices/xiaomi-mitv3s-48-hancock-follow-up.md
index 8c759eb15..c0860241c 100644
--- a/docs/devices/xiaomi-mitv3s-48-hancock-follow-up.md
+++ b/docs/devices/xiaomi-mitv3s-48-hancock-follow-up.md
@@ -1,76 +1,14 @@
-# Xiaomi Mi TV 3S 48: native source popup and API 19 follow-up
-
-Independent observations from 2026-10-21, with an owner follow-up on 2026-10-23
-reporting several days of household use. This supplements the earlier
-[Mi TV 3S contribution, PR #686](https://github.com/Gathin23/cleanyourtv/pull/686),
-which covers this model's package-manager behavior and vendor playback routes.
-The additional findings here are a working native source popup with PatchWall
-hidden, API 19 port constraints, a bounded HDMI-on-boot experiment and the
-owner's later casting feedback. It does not duplicate that PR's debloat list.
-
-The reference launcher requires API 26; this TV is API 19 and cannot install
-that APK. Launcher observations below came from a separate local compatibility
-port, not an upstream release or a `config.json` that makes upstream run on
-KitKat. This is a device note, with no APKs, vendor libraries, launcher changes
-or changes to the normal PROMPT procedure.
-
-## Identify the exact firmware
-
-| Field | Observed value |
-|---|---|
-| Manufacturer | `Xiaomi` |
-| Model | `MiTV3S-48` (48-inch Mi TV 3S) |
-| Device | `hancock` |
-| Android | `4.4.4`, SDK `19` |
-| Firmware / `ro.build.display.id` | `7.7.21.1653` |
-| Primary ABI | `armeabi-v7a` |
-| RAM visible to Linux | `MemTotal: 774392 kB` |
-| Stock launcher | `com.mitv.tvhome` |
-| Native settings | `com.xiaomi.mitv.settings`; AOSP recovery entry `com.android.settings` |
-| Native TV player | `com.xiaomi.mitv.tvplayer` |
-
-These values were read from the TV. Do not infer compatibility from the retail
-name alone, or apply this to a different Mi TV 3S size or newer Xiaomi firmware.
-The owner described the set as 1 GB RAM / 8 GB storage; the measured RAM above
-is what the kernel exposes, not a storage measurement.
-
-ADB worked after the owner enabled debugging and used a DHCP address. It
-closed again after a reboot in a later test. Rediscover the current address
-and check the actual connection instead of assuming the debugging toggle
-guarantees a listening port. Turn debugging off after the work is complete.
-
-## Package-state context
-
-The session confirmed the `pm block --user 0` / `pm unblock --user 0` behavior
-also described in PR #686. This changes per-user visibility without deleting
-the APK or clearing data. Record and inspect `blocked` as well as `enabled`:
-`enabled` can remain unchanged while `blocked=true`. Restore original states,
-not a blanket enabled state. The matching undo for the tested ad package is:
+# Xiaomi Mi TV 3S 48: native inputs, package-state recovery and casting
-```sh
-adb -s <tv-ip>:5555 shell pm unblock --user 0 com.miui.systemAdSolution
-```
+Device observations from 2026-10-21 on Xiaomi `MiTV3S-48` / `hancock`, Android
+4.4.4 (API 19), firmware `7.7.21.1653`. These findings apply to this firmware,
+not every Mi TV 3S variant. See the [device lists and notes](../../examples/README.md)
+for other models. The reference launcher requires API 26; this note does not
+establish compatibility with API 19 or provide an alternative launcher.
+
+## Open the native source popup
-Eight ad/push/reporting/ACR packages were hidden in this household's session:
-`com.miui.systemAdSolution`, `com.xiaomi.mitv.tvpush.tvpushservice`,
-`com.miui.tv.analytics`, `com.xiaomi.devicereport`, `com.xiaomi.statistic`,
-`com.xiaomi.mitv.osstatistic`, `com.xiaomi.mitv.kuyun.acr` and
-`com.kuyun.common.androidtv`. This is a state-history record, not an additional
-apply file or a claim about every package in another owner's list.
-`com.xiaomi.mitv.advertise` was already `enabled=2` and was left untouched.
-The owner confirmed no boot ad on the tested restart; the session did not
-isolate which existing or new setting suppressed each advertisement.
-
-Kept enabled: Xiaomi/AOSP settings, `com.mstar.tv.service`,
-`com.xiaomi.mitv.tvplayer`, `com.mitv.videoplayer`, both gallery packages,
-`com.xm.webcontent`, the keyboard, Bluetooth, networking, media/providers,
-installer/app store, parental controls and casting. Firmware updaters were not
-part of the eight-package change. No boot-animation property was changed.
-
-## Native settings and source selection survive without the content desktop
-
-Opening an app called "TV" or launching an arbitrary settings activity was
-not a working replacement for the native source popup. The tested popup entry
+The native source picker still worked with `com.mitv.tvhome` hidden. Its entry
is an explicit broadcast to Xiaomi's settings receiver:
```sh
@@ -79,17 +17,15 @@ adb -s <tv-ip>:5555 shell am broadcast \
-n com.xiaomi.mitv.settings/.SettingsBroadcastReceiver
```
-The physical remote could then move between HDMI entries and confirm a choice,
-with the stock launcher hidden. An app using this route should first check
-that the receiver exists, is enabled/exported and does not require a permission
-the app lacks. On an unknown firmware, fall back to native settings.
+The owner confirmed direction-key navigation and HDMI selection with the
+physical remote. Keep `com.xiaomi.mitv.settings`, `com.mstar.tv.service` and
+`com.xiaomi.mitv.tvplayer`. An app using this route should check that the
+receiver exists, is enabled/exported and does not require a permission it
+lacks. On unknown firmware, fall back to native settings.
-For general settings, the local port tried `android.settings.SETTINGS`
-restricted to `com.xiaomi.mitv.settings`, then that package's launch intent,
-then generic settings. Do not substitute a newer Xiaomi activity name without
-checking this firmware's manifest.
+## Open HDMI 1 through the vendor player
-Direct HDMI 1 playback was also tested:
+The tested HDMI 1 route uses Xiaomi's external-source activity:
```sh
adb -s <tv-ip>:5555 shell am start \
@@ -97,22 +33,38 @@ adb -s <tv-ip>:5555 shell am start \
-n com.xiaomi.mitv.tvplayer/.ExternalSourceActivity --ei input 23
```
-The `input` extra must be an **integer**. Value `23` identified HDMI 1 on this
-firmware. Keep the native TV player and MStar TV services; do not assume that
-Android's later `TvInputManager` routing or source IDs from another model apply.
+The `input` extra is an **integer**, not a string. Value `23` identified HDMI 1
+on this firmware, and the native HDMI 1 picture was verified. Keep the native
+player and TV services; source IDs or standard Android input routes from
+another model are not established by this check.
+
+## Reversible package hiding and its undo
+
+The ordinary package-disable operation was refused on this firmware. Its
+package manager accepts `pm block --user 0` and the matching `pm unblock
+--user 0` without deleting the APK or clearing data. Record the original state
+before making a change, and inspect it afterwards:
+
+```sh
+adb -s <tv-ip>:5555 shell dumpsys package com.miui.systemAdSolution
+```
-## Home handover and recovery
+For that package, the tested hide operation and its undo are alternatives:
-The local port used its own package, `com.gathin.tvhome.legacy`. It was installed
-and opened first, before changing any HOME claimant. Navigation, app launching,
-settings and input selection were checked while the original desktop was still
-available. These observations do not supply a supported upstream API 19 build.
+```sh
+# Hide, only after reviewing the package and saving its original state:
+adb -s <tv-ip>:5555 shell pm block --user 0 com.miui.systemAdSolution
+# Undo that change if it was originally unblocked:
+adb -s <tv-ip>:5555 shell pm unblock --user 0 com.miui.systemAdSolution
+```
-Only after that check was `com.mitv.tvhome` hidden with the same firmware-specific
-`pm block --user 0` operation. The owner confirmed the physical Home key opened
-the replacement and that source selection still worked after a restart.
+Check both `blocked` and `enabled`: the observed result was `blocked=true`
+while `enabled` could stay unchanged. Restore the original state rather than
+blanket-unblocking packages. In particular, `com.xiaomi.mitv.advertise` was
+already `enabled=2` before the session and was left untouched.
-Before removing a replacement Home, restore the original:
+If the original desktop was hidden after a replacement had been installed,
+opened and confirmed as Home, restore it **before removing the replacement**:
```sh
adb -s <tv-ip>:5555 shell pm unblock --user 0 com.mitv.tvhome
@@ -120,111 +72,22 @@ adb -s <tv-ip>:5555 shell am start -n com.android.settings/.Settings \
--es :android:show_fragment com.android.settings.HomeSettings
```
-Choose the original desktop in that UI and check the actual remote's Home
-button before removing or otherwise changing the replacement. Preserve the
-initial package-state backup; do not blanket-unblock unrelated packages.
-The old `pm` implementation and HomeSettings UI should not be replaced with
-assumed support for modern `cmd package set-home-activity` commands.
-
-## Screensaver and casting follow-up
-
-Android's screensaver switch and Xiaomi's screensaver timeout in native
-settings were separate controls. The latter was changed from four minutes to
-disabled and its persisted UI state rechecked. Turning off only Android's
-dream switch was not taken as proof that the vendor saver was off. Gallery
-and USB photo functions were kept.
-
-On 2026-10-23 the owner reported several days of use with noticeably improved
-responsiveness, working AirPlay and working Android casting again. This is
-household feedback, not a quantified speed benchmark or proof that one
-particular disabled package fixed casting. The casting components found in
-the package inventory and preserved included `com.xiaomi.mitv.smartshare`,
-`com.duokan.airkan.tvbox`, `com.xiaomi.dlnatvservice` and `com.xiaomi.upnp`.
-Keep the receiver stack while replacing the content desktop. The feedback
-did not identify the sending-device models, individual Android casting
-protocols, DRM apps or a full receiver interoperability matrix. Bluetooth
-was preserved but not comprehensively tested.
-
-## API 19 compatibility findings for a separate port
-
-Lowering `minSdk` alone is insufficient, and is not a proposed change to this
-repository. A reproducible old-Android launcher belongs in a separate public
-source project under the contribution rules; this note does not provide that
-project or ask maintainers to merge a second launcher.
-
-The local compatibility work found these constraints:
-
-- Use API 19-compatible Activity, scrolling/grid, focus and drawing paths.
- App discovery needs ordinary `CATEGORY_LAUNCHER` entries; a TV-only category
- does not cover these older apps. Persist app order independently of the
- fixed first source tile, and recheck focus after scrolling and returning.
-- Avoid unconditional newer APIs and resources: newer network callbacks,
- Material themes, platform vector drawables and clipping helpers need an
- older implementation. Date/file APIs also need an API audit, not just a
- lower manifest requirement. Check the final APK with API-level lint.
-- The tested APK was single DEX and had a V1 signature verified for API 19.
- A current V2-only APK is not a KitKat installation candidate.
-- In the optional network-wallpaper experiment, old HTTPS needed a per-request
- TLS provider. It retained certificate and hostname validation, rather than
- trusting every certificate or changing the system trust store. The final
- wallpaper build used Conscrypt `2.5.3` and its `armeabi-v7a` native library;
- it was no longer dependency-free. This is not a dependency proposal for the
- offline reference launcher.
-- Decode one cached still image within GPU/memory limits. The local cap was
- about 2.1 million pixels and at most 2048 pixels per decoded dimension using
- `RGB_565` sampling. Cancel obsolete downloads, do network work off the UI
- thread, and fall back to a plain background. Avoid per-tile hardware-layer
- churn: one local focus implementation left traversed icons grey until fixed.
-
-These are porting findings, not new options in the reference APK. The upstream
-launcher's minimum Android version and offline behavior remain unchanged.
-
-## Optional HDMI-on-boot experiment and its limits
-
-The local port's opt-in experiment read the vendor class
-`com.mstar.android.tvapi.common.TvManager`, called `getInstance()`, then
-`setTvosCommonCommand("GetInputSourceStatus")`. It returned a `short[]`; index
-`23` was observed as `1` with the cable box on/outputting and `0` with that box
-off and its HDMI cable still connected. `isSignalStable(int)` was not a usable
-per-port check from Home on this firmware. These are vendor details, not an
-Android SDK contract.
-
-The experiment was off by default, gated to Xiaomi / `hancock` / SDK 19 and
-designed to fail closed on missing methods, unexpected data or unreadable boot
-identity. It consumed `/proc/sys/kernel/random/boot_id` once per full boot before
-starting a background query window of at most 30 seconds, and required two
-consecutive positive samples before using the explicit HDMI 1 intent above.
-Any key, click or departure from Home cancelled it. Returning Home in the same
-boot, or waking from standby, was not a new attempt. There was no added boot
-receiver or persistent service; bounded polling was confined to that local
-experiment and is not being proposed for the reference launcher.
-
-In the 2026-10-23 follow-up, the owner confirmed using HDMI signal detection
-to enter the source in full-screen playback automatically. **Both reboot
-branches were not captured in ADB logs:** the television closed ADB after
-reboot. Do not label no-signal retention, every standby mode,
-or every cable box as fully verified. Some boxes continue reporting a signal
-while nominally off. Validate on/off states on the target hardware before
-offering such a feature, and keep an accessible off switch.
-
-## Validation scope
-
-- Basic port: install/hash check, app launch, order save/cancel/restart,
- settings entry and 20 settings/Home cycles were recorded. Sampled PSS was
- about 9.6-10.9 MiB in that early minimal build. This is not a performance
- guarantee or a measurement of the later wallpaper/HDMI build.
-- Later local wallpaper/focus build: cached images, manual change, process
- restart and unchanged non-focused icon pixels were checked. Sampled PSS
- was roughly 14-18 MiB with wallpaper, not a long-duration memory test.
-- Owner confirmations: physical Home, native source selection and no boot ad
- on the tested restart; fixed focus colours/source-first layout; later,
- direct TV picture on boot. These are separate from automated checks.
-- Owner follow-up on 2026-10-23: several days of improved responsiveness,
- HDMI-triggered full-screen playback, AirPlay and Android casting working.
-- Not established: stock upstream APK support, a measured speed-up, long-term
- stability, fully logged HDMI boot branches, standby/CEC behavior,
- future firmware updates or other Mi TV 3S firmware variants.
-
-No TV was reconnected or changed for the documentation contribution. Only
-sanitized model/firmware findings are shared; personal backups and device or
-network identifiers are excluded.
+Select the original desktop and verify the physical Home button. Preserve
+Xiaomi/AOSP settings, the TV player, MStar TV services, the keyboard, Bluetooth,
+networking, media/providers and the installer. This note is not a batch cleanup
+list or an instruction to hide the stock desktop on an untested configuration.
+
+## Keep the casting stack
+
+These components were present in the package inventory and preserved:
+
+- `com.xiaomi.mitv.smartshare`
+- `com.duokan.airkan.tvbox`
+- `com.xiaomi.dlnatvservice`
+- `com.xiaomi.upnp`
+
+On 2026-10-23 the owner reported AirPlay and Android casting working again
+after several days of household use. Keep the receiver stack when cleaning
+the content desktop. This is owner feedback, not proof that any one disabled
+package fixed casting, or a test of every sending device, casting protocol
+and DRM app.
diff --git a/examples/README.md b/examples/README.md
index fd7dc2657..d260255cc 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -256,7 +256,7 @@ on that firmware, grouped and commented. These are starting points: comment out
Notes for models that have no tested list yet live in [`docs/devices/`](../docs/devices/):
-- [Xiaomi Mi TV 3S 48 follow-up](../docs/devices/xiaomi-mitv3s-48-hancock-follow-up.md), `hancock`, Android 4.4.4 / API 19, firmware `7.7.21.1653`: supplements [#686](https://github.com/Gathin23/cleanyourtv/pull/686) with the native source popup while PatchWall is hidden, API 19 port constraints and owner-reported HDMI auto-entry, AirPlay and Android casting after several days; device note, no second debloat list or upstream KitKat support.
+- [Xiaomi Mi TV 3S 48](../docs/devices/xiaomi-mitv3s-48-hancock-follow-up.md), `hancock`, Android 4.4.4 / API 19, firmware `7.7.21.1653`: native source popup with PatchWall hidden, HDMI 1's integer `input` extra, reversible `pm block`/`pm unblock` state and casting packages to keep; device note, not an upstream API 19 launcher build.
- [TCL 55P71B Pro](../docs/devices/tcl-55p71b-g09-key-repeat.md) (`G09`, Google TV 12, `STT2.230203.001.AS23`, Amlogic): holding volume steps once per press as soon as any key-filtering accessibility service is bound - one helper or both, all or nothing - so the remote's app and gear buttons and a ramping volume are mutually exclusive on this build; the bisect, the capability in `dumpsys accessibility`, the way back to either behaviour and what was not tested; no debloat list of its own.
- [Strong LEAP-S3](../docs/devices/strong-leap-s3.md) (SkyworthDigital `4K Google TV Box`, device `YDA`, Amlogic S905Y4, Google TV 14 `UKG3.260128.001.C3.0.12_20260904`): a box on the same firmware family as Wanbo X5 Pro, a one-day list kept as a note, the setupwraith/launcherx order that avoided a black screen, remote keycodes (YouTube 266, gear 83) and why `com.oemservice` and `com.sdt.deviceinfo` were looked at.
- [TCL BeyondTV AP08](../docs/devices/tcl-beyondtv-ap08.md), `RTD2851`, Android TV 9, patch `2021-01-05`: single-session launcher and package-change report, streaming apps/voice/casting preserved, physical remote and casting checked after restart; no several-day debloat list.