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 #825: docs: what the RTD2851 (TCL BeyondTV2, V660) charges for a clip, a gradient and a layer
Gathin231e02a6d9da62
diff --cc docs/devices/tcl-beyondtv2-v660.mdindex 000000000,b5a924467..7ca440a96mode 000000,100644..100644--- a/docs/devices/tcl-beyondtv2-v660.md+++ b/docs/devices/tcl-beyondtv2-v660.md@@@ -1,0 -1,65 +1,66 @@@+ # TCL BeyondTV2 (RTD2851, R851T02 V660): rendering notes++ Checked on a real TV on 2026-10-21, one session, with a launcher derived from this project (Eddy TV,+ TCL-only fork). These are properties of the GPU and firmware, not of one launcher, so they are+ recorded for anyone tuning a Home on this board.++ ## Device identifiers++ | Field | Observed value |+ |---|---|+ | Model / device | `BeyondTV2` / `BeyondTV` |+ | Board | `RTD2851` |+ | Android / API | Android TV 9 / 28, 32-bit userspace |+ | Build fingerprint | `TCL/BeyondTV2/BeyondTV:9/PPR1.180610.011/AP08:user/release-keys` |+ | Firmware | `V8-R851T02-LF1V660` (client `TCL-LA-RT2851-S1`, Latin America) |+ | Reported memory | 2 GB (`2097152 kB`), zRAM ~800 MB |+ | Remote | `TCL_RC802VLA` (Bluetooth, mic) + IR |+-This is the V660 firmware. The AP08 debloat example in `examples/tcl-beyondtv/` is the same family-and was used as a starting point; the package list here is the one that survived.++This is the V660 firmware, the same build, client and fingerprint as the list in++[`examples/tcl-beyondtv2-latin-america/`](../../examples/tcl-beyondtv2-latin-america/debloat.txt): use that++list for the debloat. This note only covers what the launcher's drawing costs on this GPU.++ ## Why this note++ While adding an opt-in news banner (1680x500) to the Home, a few ordinary drawing choices cost far+ more than they should on this board. Each row below is an A/B on the same APK with one thing+ changed, measured as **janky frames** (`dumpsys gfxinfo`, frames above 16.7 ms) during 20 D-pad+ presses after the Home had settled.++ | What | Cost on this board | What replaced it |+ |---|---:|---|+ | `canvas.clipPath` (rounded rect) over the banner | ~8 points of janky frames | fill a pre-built rounded `Path` with a `BitmapShader` |+ | `setClipToOutline(true)` on the same view | 83% janky frames | not used: it forces a layer per frame |+ | Full-bleed `<shape>` gradient, 1700x250, redrawn each frame | ~42 points | constant scrim baked into the bitmap once |+ | `android:shadowRadius` on four TextViews | ~34 points | removed; the scrim gives the contrast |+ | Two `LinearGradient` objects built inside `onDraw` | ~1.5 ms per frame | built in `onSizeChanged` |+ | A static banner behind the grid's spring animation | ~2-3 ms per frame of the spring | hardware layer on the banner (`setLayerType`) |++ Two conclusions that surprised us:++ - **`clipPath` is a software fallback here.** A rounded clip on a large view turned every frame into+ a CPU rasterisation of the whole banner, photo included. It looked like "the photo is expensive"+ until the photo was tested without any photo at all: the cost stayed.+ - **A layer is cheaper than being redrawn.** The static banner was re-recorded on every frame of the+ grid's focus spring even though nothing in it changed; `LAYER_TYPE_HARDWARE` dropped those frames+ back to the same numbers as with the banner absent.++ ## Method++ - Steady state, not "since process start": `force-stop`, open Home, wait 20 s for decode/cache/layout,+ `dumpsys gfxinfo reset`, 20 D-pad presses 0.4 s apart, read after 3 s.+ - Frames are matched to keys through `framestats`; columns are 1-based in `awk` (`$1` Flags, `$2`+ IntendedVsync, `$14` FrameCompleted). `OldestInputEvent` is `INT64_MAX` for key events and cannot+ be used as the frame's start.+ - Five or more runs per side. A single run can catch a rotation/refresh and read 10 points higher;+ the late frames cluster in bursts, which is how a transition is told apart from a per-frame cost.++ ## One firmware quirk++ `am send-trim-memory <pid> <level>` refuses background levels on this firmware when an accessibility+ service keeps the launcher process at `curProcState=2`, even with another app in front. So+ `onTrimMemory` for background levels can only be exercised by real system pressure here, not by the+ shell command.++ Full numbers, the code and the seven fixes:+ <https://github.com/eddysangalli/CleanMyTCL-Android9/blob/main/benchmarks/results/2026-10-21-rss-row.md>diff --cc examples/README.mdindex 91de7b971,1fd77920d..9d4fb56b5--- a/examples/README.md+++ b/examples/README.md@@@ -172,7 -164,7 +172,7 @@@ on that firmware, grouped and commented| `tcl-beyondtv/` | TCL BeyondTV (India) | Android TV 9 | TCL analytics, content feed, TCL app store, Google recommendation rows; Jio/Airtel/Hotstar apps untouched || `tcl-beyondtv-pl/` | TCL BeyondTV, Poland (Realtek RTD2851, AP03, 2 GB) | Android TV 9 | TCL BI analytics, promo rows, cyberui, TV Guard and app store, preloads; voice, Miracast/T-Cast, YouTube, player.pl, Spotify and Steam Link off by choice; Chromecast and firmware updater kept; `com.tcl.notereminder` is re-enabled at every boot; launcher installed as default home, stock launcher disabled; one session plus a reboot, not yet lived with for days || `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-beyondtv2-latin-america/` | TCL BeyondTV2 (Latin America / Brazil, Realtek RTD2851) | Android TV 9 | TCL analytics and boot content feed; `com.tcl.esticker` does not stay disabled on this firmware; UK Freeview apps already off at the factory |++| `tcl-beyondtv2-latin-america/` | TCL BeyondTV2 (Latin America / Brazil, Realtek RTD2851) | Android TV 9 | TCL analytics and boot content feed; `com.tcl.esticker` does not stay disabled on this firmware; UK Freeview apps already off at the factory; [draw-cost notes](../docs/devices/tcl-beyondtv2-v660.md) || `tcl-beyondtv2-android-11/` | TCL BeyondTV2, Android 11 build (AR05, Realtek rtd285o) | Android TV 11 | Different package set from the Android 9 BeyondTV2 above (adds `overseasappshow`, `usercenter`, MagiConnect, `notereminder`); **`com.tcl.overseasappshow` re-enables MagiConnect, notereminder and tclhome_master on every boot**, so it is the key entry; partnercustomizer kept (it carries the remote's TKey activity on this unit); voice, mirroring, phone remote and backdrop off by choice, OTA kept; 3 HDMI ports, TvInputManager works, setupwraith safe || `tcl-c755-google-tv/` | TCL C755 QD-Mini LED, 2024, Australia (G08, MediaTek tcl9618) | Google TV 14 | Samba TV ACR (ttvs), TCL Live, store/hotel demo, Stan; casting and mirroring off by choice; keep `tv.remote.service` (it carries the remote's mic) || `tcl-55c7k-uk/` | TCL 55C7K QD-Mini LED, 2025, UK (G08, MediaTek tcl9618) | Google TV 14 | Same build as the C755 list (UTT2.250416.001 AU02): Samba TV ACR (ttvs), TCL Live, promos, store demo, Alexa, partner auto-installs; Assistant, Netflix, Miracast/T-Cast, game bar, USB media and T-Solo off by choice, Chromecast and AirPlay kept; setupwraith owned the Wi-Fi until re-joined; launcherx, setupwraith and dreamx off for the launcher and Clock screensaver; reboot-checked on the day it was applied |diff --cc examples/tcl-beyondtv2-latin-america/debloat.txtindex 265be00ae,265be00ae..eb0dab388--- a/examples/tcl-beyondtv2-latin-america/debloat.txt+++ b/examples/tcl-beyondtv2-latin-america/debloat.txt@@@ -2,6 -2,6 +2,7 @@@# (API 28), build PPR1.180610.011, security patch 2021-01-05. Realtek RTD2851 family# (ro.board.platform = rtd285o), firmware V8-R851T02-LF1V660, client TCL-LA-RT2851-S1.# Fingerprint: TCL/BeyondTV2/BeyondTV:9/PPR1.180610.011/AP08:user/release-keys++# What the launcher's clips, gradients and layers cost on this GPU: docs/devices/tcl-beyondtv2-v660.md# 2 GB RAM with 800 MB zRAM, 32-bit userspace, eMMC with 10 GB /data. Latin America set# (TCL app store, no India Jio/Airtel/Hotstar; a set of UK Freeview catch-up apps is preloaded# and was already disabled at the factory).