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
examples: Sber Salute TV 43" (StarOS 1.101 / Android 13)
tryconn299d8390bf96
diff --git a/README.md b/README.mdindex e84c36dbc..6dd6859df 100644--- a/README.md+++ b/README.md@@ -226,6 +226,7 @@ Anker Nebula, BYINTEK, Epson, Formovie, Gadnic, JMGO, Portronics, Stellamore, Wa| RockTek GB1 | Google TV 14 || SANYO ATV R2 (SCBC, Realtek RTD285O) | Android TV 9 || Sankey SMART2KTVSE (Whale OS, SiliconPlayer am30bm) | Android TV 13 |+| Sber Salute TV 43" (CVTE TP.T962D4.PC756, Amlogic T962D4, at30a6, 2 GB), Russia | StarOS 1.101 / Android 13 || SHARP AQUOS TVE21F (AQUOS-TVE21F, banqiao, CVTE/MediaTek), UK | Android TV 14 || Skyworth / Coocaa 8R40_K5C (Realtek rtd285x, 1 GB, 32-bit), China domestic firmware | Android 8.0 (not Google TV) || Skyworth 65A3F (7T641_A3F, MediaTek MT9633), China | Android 13 (CCOS 10.01.250328) |diff --git a/examples/README.md b/examples/README.mdindex 32a0887be..a88af2586 100644--- a/examples/README.md+++ b/examples/README.md@@ -106,6 +106,7 @@ on that firmware, grouped and commented. These are starting points: comment out| `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 |+| `sber-salute-tv-at30a6/` | Sber Salute TV 43" (CVTE TP.T962D4.PC756, Amlogic T962D4, at30a6, 2 GB), Russia | StarOS 1.101 / Android 13 | First StarOS list: Sber content apps, SberPrime, kids room, smart home, Salute browser and screensaver, app catalogue, surveys, beta, bug reporter, cleaner, Huawei Cast/MHshare/DLNA receivers; OTA kept by default; Sber's platform service reinstalls removed apps (disable only) and cannot itself be disabled (its core re-enables it, component disables are refused), so the Salute voice assistant stays; Developer options locked and Sber Studio's ADB switch did not open 5555, see README; app "rotation" limit lowered with `sys_storage_threshold_percentage`; Inputs work through `ru.sberdevices.tvinputs`; reboot-checked || `sharp-aquos-tve21f/` | SHARP AQUOS TVE21F (AQUOS-TVE21F, banqiao, CVTE/MediaTek), UK | Android TV 14 | Anoki ACR, retail demo, factory/test apps, PAI auto-installs; Google recommendations and setup wizard (Wi-Fi owned by system); Assistant, Chromecast and phone remote off by choice; unused streaming off by choice; 1.8 GB; YouTube button stays with the vendor `com.cvte.hotkey.dispatcher` || `skyworth-8r40-k5c/` | Skyworth / Coocaa 8R40_K5C (Realtek rtd285x, 1 GB, 32-bit), China domestic firmware | Android 8.0 (not Google TV) | `com.tianci.*` / `com.coocaa.*` firmware, not the `com.smartdevice.*` Google-TV Skyworth below; 16 packages: Coocaa ad engine, push, app store, Baidu Oases, mall, activity center, browser, PiTV, weather, blockchain and smart-home preloads (six already ship disabled); **keep `com.tianci.de`, `com.skyworthdigital.stb.dataprovider` and `com.coocaa.sky.ccapi`**: disabling them crashes About this TV, which holds the only ADB toggle, and recovery is a factory reset, so install Activity Launcher first (`coocaa.intent.action.TIANCI_FACTORY`); no package declares HOME and `/system/pcfg` resets it at boot, so never disable `com.tianci.movieplatform` (black screen) and no third-party launcher; boot ad off with `persist.sys.bootvideo.time 1`; debloat only; reboot-checked; [device guide](../docs/devices/skyworth-8r40-k5c.md) || `skyworth-65a3f/` | Skyworth 65A3F (7T641_A3F, MediaTek MT9633), China | Android 13 (CCOS 10.01.250328) | Chinese Coocaa firmware, no GMS: boot/shutdown ads (`com.tianci.ad` BootService and PowerOffActivity), vendor screensaver, guide, both stores plus the overseas one, performance monitors, factory test timer, OTA; **keep `com.coocaa.aigc.home`**: disabling it leaves no home at all (hangs on the SKYWORTH logo, no network, factory reset to recover) and the boot screen plus the HOME key are hard-wired to it, so a third-party launcher never owns the boot screen; the launcher can be bound to the remote's colour key (`ShortcutKeySetActivity`) or added to the stock dock, both one press, while `boot_start_tv_source` only switches input source; ADB opens without pairing; a 17 MB APK moves in ~100 s over `toybox nc`, not b64push |diff --git a/examples/sber-salute-tv-at30a6/README.md b/examples/sber-salute-tv-at30a6/README.mdnew file mode 100644index 000000000..31738e129--- /dev/null+++ b/examples/sber-salute-tv-at30a6/README.md@@ -0,0 +1,131 @@+# Sber Salute TV 43" (StarOS on Android 13)++CVTE board `TP.T962D4.PC756` (Amlogic T962D4, platform `t5w`, Mali-G31), 2 GB RAM, 8 GB eMMC with a 3 GB data+partition, panel `LE43VA_V430DJ1_Q01`, codename `at30a6`, `ro.cvte.customer=SBER`. Firmware StarOS+1.101.84-B28350 on Android 13, build `TP1A.220905.004.A2` from 15 February 2026. No Google services.++Both halves work: the debloat list and the Clean Your TV launcher as Home. Tested 19–23 October 2026: the+content apps and screen sharing since the 19th, the rest of the list since the 21st, with several restarts.+The steps were done by hand over `adb`, with the same commands the scripts below run.++| File | What it is |+|---|---|+| `debloat.txt` | The 26 packages to disable, grouped and commented; the two firmware-update packages the tested unit also disabled are left as comments |+| `config.json` | Hidden apps, no Live TV entry, the app library on, Russian names for three Sber apps; push it with `tools/theme.sh` |++All commands run from the repo root, with the TV's IP in `TV_HOST`.++## Turning ADB on++Developer options are locked: pressing OK on the build number seven times does nothing.++Sber documents its own switch ([Подключаем ADB](https://developers.sber.ru/docs/ru/va/native/testing/adb)): sign+in to Studio at developers.sber.ru with the same Sber ID as the TV, open Settings → Service settings → SmartApp →+My devices, add the TV by its serial number from About and turn ADB on. The SmartApp section only appears once the+personal space has a SmartApp project, so create an empty one first. On this unit the switch turned on, but port+5555 stayed closed through several restarts and no prompt appeared on the TV.++What worked is the CVTE factory menu, which has its own ADB switch:++1. Install the `FactoryMenu` shortcut (`com.stb.factorymenu` 1.2, 16 KB) from+ [the 4PDA post](https://4pda.to/forum/index.php?showtopic=1042253&view=findpost&p=114157954) that the CV9632+ thread links under "Сервисное меню / Меню разработчика / Активация ADB". StarOS installs APKs from a USB+ stick through the file manager, or from your own upload at apps.sber.ru/my. The shortcut only starts the+ firmware's own factory menu (`com.cvte.fac.menu`, through its `TvMenuWindowManagerService` with the+ `factory_menu` command); it holds no permissions.+2. Open it, go to **Debug** and turn **ADB Enable** on. Port 5555 opened within seconds; accept "Allow USB+ debugging?" with "Always allow".+3. Leave everything else in that menu alone: it also holds panel, picture and test-tool settings+ (`/system/etc/menu_config_xml/fac_menu_tree.xml` lists them).++Afterwards `adb_enabled=1`, `persist.sys.usb.config=adb` and `service.adb.tcp.port=5555`, so ADB listens on Wi-Fi.+The TCP port is not persistent; to keep it across restarts while you work:++```bash+TV_HOST=<tv-ip> tools/tv.py 'setprop persist.adb.tcp.port 5555'+```++Clear it with `setprop persist.adb.tcp.port ""` and switch debugging off when you are done.++The factory menu on CVTE boards is risky ([Troubleshooting](../../docs/TROUBLESHOOTING.md), the Input key and CEC).+On this unit, after it had been opened to turn ADB on, `sys.factorymenu` stayed unset, `hdmi_control_enabled`+stayed 1 and HDMI and the remote kept working. Don't open the other `com.cvte.*` apps.++## Install++```bash+TV_HOST=<tv-ip> tools/disable.sh examples/sber-salute-tv-at30a6/debloat.txt+TV_HOST=<tv-ip> STOCK_LAUNCHER=ru.sberdevices.starlauncher launcher/build-and-install.sh+TV_HOST=<tv-ip> tools/theme.sh examples/sber-salute-tv-at30a6+TV_HOST=<tv-ip> tools/tv.py 'settings put secure screensaver_components com.gathin.tvhome/.ClockDream'+```++The last line matters: while `screensaver_default_component` points at Sber's screensaver, StarOS re-enabled+`ru.sberdevices.starscreensaver` at boot once. With the launcher's clock as the screensaver it stayed disabled.++Disabling does not free the space an updated system app takes in `/data`: Zvuk's update alone is about 100 MB, and+the screensaver keeps about 220 MB of cached artwork. On the tested unit the list, with those updates removed and+the screensaver's data cleared, took free space on `/data` from 406 MB to 968 MB.++## App "rotation": why apps vanish on their own++StarOS uninstalls ("rotates") apps, keeping their card, whenever free space on `/data` drops below a limit. The+check runs every 10 minutes:++```+SPS/SmartApp.SmartAppWidgetManagerV2: availableSpace 407 Mb more then freeSpaceLimit = 355 Mb+```++The limit is Android's low-storage threshold (`sys_storage_threshold_percentage`, 5 % by default) plus 200 MB from+Sber's remote config, 355 MB on this partition. On the tested unit three sideloaded apps had already been rotated+away before the debloat. Lowering Android's part to 1 % brings the limit to 231 MB after the next restart (the+`SystemLimits` line in logcat shows it):++```bash+TV_HOST=<tv-ip> tools/tv.py 'settings put global sys_storage_threshold_percentage 1'+```++Undo with `settings delete global sys_storage_threshold_percentage`.++## The Sber platform service++`ru.sberdevices.services` runs as the system uid. It holds the Salute voice assistant (`AssistantService` and the+`:assistant_bar` process), Sber ID sign-in, the rotation above and the reinstalling of Sber's "mandatory" apps.+It cannot be taken apart from ADB:++- `pm disable-user` on the package is undone within a second by `ru.sberdevices.services.core`+ (`SPS_CORE/WatchdogManagerImpl`), and the processes come straight back.+- Disabling single components is refused for the shell on Android 13:+ `Shell cannot change component state for ComponentInfo{ru.sberdevices.services/...}`.++So it stays, and with it the voice assistant, which still works with everything in the list disabled. The remote+is a Bluetooth LE HID device; its microphone appears to Android as `AUDIO_DEVICE_IN_BUILTIN_MIC` named `RC In`.++## Launcher notes++- **Inputs** works without extra config: `ru.sberdevices.tvinputs` handles `VIEW` on `content://android.media.tv`+ passthrough URIs, so the pill lists HDMI1, HDMI2, HDMI3 and AV1 and switches to them. Sber's Live TV has no+ leanback entry, so `live_tv_package` is empty.+- **Settings** opens the Android TV settings side panel (network, picture, sound, remotes).+- Sber's own apps have no leanback entry. The app library that `config.json` turns on is where to add the old+ Sber home ("Салют ТВ") or the app catalogue if you keep them enabled.+- Home stays with the launcher across restarts. The remote's Home key goes to it too.++## Undo everything++```bash+TV_HOST=<tv-ip> tools/restore.sh examples/sber-salute-tv-at30a6/debloat.txt ru.sberdevices.starlauncher+TV_HOST=<tv-ip> tools/tv.py 'settings delete global sys_storage_threshold_percentage'+TV_HOST=<tv-ip> tools/tv.py 'settings delete secure screensaver_components'+```++Removed system-app updates come back through the Sber app catalogue. The launcher stays installed but is no+longer Home.++## What stays++The platform service and the assistant (above), `ru.sberdevices.tvinputs` (HDMI and AV playback),+`ru.sberdevices.app.starkeyboard` (the only keyboard), `ru.sberdevices.webview` (the WebView provider), both+system UIs, `SberDevicesServiceSystem`, the location provider, the setup app, Sber's settings, the overlays and+resources, every `com.droidlogic.*` package (tuner, HDMI, picture) and every `com.cvte.*` package (TV API, media+centre, factory apps).diff --git a/examples/sber-salute-tv-at30a6/config.json b/examples/sber-salute-tv-at30a6/config.jsonnew file mode 100644index 000000000..52fccb6ca--- /dev/null+++ b/examples/sber-salute-tv-at30a6/config.json@@ -0,0 +1,20 @@+{+ "hidden_apps": [+ "com.cvte.fac.menu",+ "com.stb.factorymenu",+ "ru.sberdevices.webview",+ "ru.sberdevices.starcleaner",+ "ru.sberdevices.starprofile",+ "ru.sberdevices.parentcontrol",+ "ru.sberdevices.starkidsroom.prod",+ "com.sberbank.settings",+ "com.android.tv.settings"+ ],+ "live_tv_package": "",+ "app_library": true,+ "app_labels": [+ "ru.sberdevices.starlauncher=Салют ТВ",+ "ru.sberdevices.starmarket=Каталог Сбера",+ "ru.sberdevices.settings=Центр управления"+ ]+}diff --git a/examples/sber-salute-tv-at30a6/debloat.txt b/examples/sber-salute-tv-at30a6/debloat.txtnew file mode 100644index 000000000..caa6301b8--- /dev/null+++ b/examples/sber-salute-tv-at30a6/debloat.txt@@ -0,0 +1,63 @@+# Sber Salute TV 43" (CVTE board TP.T962D4.PC756, Amlogic T962D4 "t5w", codename at30a6, panel LE43VA, 2 GB RAM, 8 GB eMMC), Russia+# StarOS (Salute TV) 1.101.84-B28350 on Android 13, build TP1A.220905.004.A2 (2026-02-15), user/release-keys+#+# Apply: TV_HOST=<tv ip> tools/disable.sh examples/sber-salute-tv-at30a6/debloat.txt+# Undo: TV_HOST=<tv ip> tools/restore.sh examples/sber-salute-tv-at30a6/debloat.txt ru.sberdevices.starlauncher+# Everything is DISABLED, not uninstalled. Comment out any line you want to keep.+#+# Stock launcher: ru.sberdevices.starlauncher (pass STOCK_LAUNCHER=ru.sberdevices.starlauncher to the install+# script). Developer options are locked on this firmware; how ADB was turned on is in README.md.+#+# Sber's platform service (ru.sberdevices.services, system uid) reinstalls its "mandatory" apps after every+# uninstall, usually at the next boot: parental control, SberPrime, beta, SberPlay, surveys, kids room, its+# YouTube and smart home all came back. Disabled, they stay put. Do not uninstall anything here.+# The platform service itself cannot be disabled (ru.sberdevices.services.core re-enables it within a+# second) and it hosts the Salute voice assistant. Leave it and ru.sberdevices.assistant alone.+#+# Keep: ru.sberdevices.tvinputs (HDMI/AV playback, it also answers the launcher's Inputs menu),+# ru.sberdevices.app.starkeyboard (the only IME), ru.sberdevices.webview (WebView provider),+# ru.sberdevices.systemui, com.android.systemui (Sber build), ru.sberdevices.SberDevicesServiceSystem,+# ru.sberdevices.location.provider, ru.sberdevices.app.setup, ru.sberdevices.settings, com.sberbank.settings,+# the ru.sberdevices.* overlays and resources, every com.droidlogic.* package and every com.cvte.* package+# (factory and TV API apps: do not open them, see README).++# Sber content apps and preloads+ru.sberdevices.music # Zvuk music; its ~100 MB update stays in /data while disabled+ru.sberdevices.starlivetv # StarLiveTv, Sber's online channels+ru.sberdevices.startube # Sber's own "YouTube" wrapper; installed itself after a reboot+ru.sberdevices.videos # "Видео" catalogue+ru.sberdevices.sberplay # SberPlay games+ru.sberdevices.subscriptions # SberPrime subscriptions+ru.sberdevices.starkidsroom.prod # "Детская комната" (kids room); installed itself after a reboot+ru.sberdevices.parentcontrol # parental control+ru.sberdevices.starprofile # user profiles; the voice assistant still worked without it+ru.sberdevices.smarthome.promo # smart home promo+com.salute.star # "Умный дом" smart home app, ~45 MB resident; installed itself after a reboot+ru.sberdevices.starbrowser # Salute browser+ru.sberdevices.starmarket # Sber app catalogue; re-enable to install apps or apps.sber.ru/my APKs from it+ru.sberdevices.tv # "Настройка провайдеров", TV provider setup for Sber's channel guide; HDMI unaffected++# Sber screensaver: point screensaver_components at another dream first (README), or it comes back enabled+ru.sberdevices.starscreensaver # ~220 MB of cached artwork++# Sber background services+ru.sberdevices.survey # surveys+ru.sberdevices.openbeta # beta programme+ru.sberdevices.bugreporter # StarBugReporter+ru.sberdevices.starcleaner # StarCleaner, the "Очистка памяти" screen+ru.sberdevices.rcfupdater # remote control firmware updater; the paired remote keeps working+ru.sberdevices.gamepad.service # gamepad service stub++# Screen sharing receivers (Chromecast is not part of this firmware)+ru.sberdevices.huaweicast # Huawei Cast Plus+com.maxhub.screenshare.server.tv # MHshare+com.screenshare.platform # ScreenShare platform for MHshare+com.cvte.dssshare.dlna # DLNA renderer (Jetty on a random port); a normal app, gone for good once removed++# Firmware updates stay on by default. The tested unit disabled both at its owner's request since 21 October,+# with no side effects seen; StarServicesCore is still started at boot by the system even when disabled.+# ru.sberdevices.updater # OTA updater+# ru.sberdevices.services.core # StarServicesCore, the updater core++# Stock launcher, replaced by launcher/ (disable.sh skips it while it still owns Home)+ru.sberdevices.starlauncher