Skip to content

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

examples: add SunWind SUN-LED32XS305 (Yandex TV, CVTE MT9256), Android 11

AsitOne4ca7ceb51075
diff --git a/examples/sunwind-sun-led32xs305/README.md b/examples/sunwind-sun-led32xs305/README.md
new file mode 100644
index 000000000..d35ccae51
--- /dev/null
+++ b/examples/sunwind-sun-led32xs305/README.md
@@ -0,0 +1,64 @@
+# SunWind SUN-LED32XS305 (Yandex TV / YaOS, Android 11)
+
+32" HD set sold in Russia. CVTE board `TP.MT9256.PB721` (MediaTek MT9256, the chip of
+[sber-salute-tv-pb766](../sber-salute-tv-pb766/)), Android 11 / API 30, build `RP1A.200720.011 dev-keys`,
+`armeabi-v7a`, no file-based encryption (`ro.crypto.type` empty). YaOS: no Play Store, Yandex app store only.
+The app set matches [artel-43d1200b](../artel-43d1200b/), which this list follows.
+
+## Getting ADB
+
+Developer options appear after pressing Build seven times, but YaOS removed the Debugging section, and opening
+`com.android.tv.settings/.system.development.DevelopmentActivity` directly (with Activity Launcher from F-Droid,
+installed from a USB stick) shows the same cut page. `com.yandex.io.sdk`'s `UsbDebuggingActivity` is only the
+"Allow USB debugging?" prompt, not a switch.
+
+ADB is **Debug > ADB ENABLE** in the full CVTE factory menu (`com.cvte.fac.menu`). On Android 11 that package has
+no launchable activity, so it was opened with a small community shortcut APK that starts the menu's service, as
+[artel-cvte-mt5863](../artel-cvte-mt5863/debloat.txt) describes for another CVTE board. Change nothing else in
+that menu: it also holds backlight, panel and factory-mode settings. Network ADB then answered on 5555.
+
+`ro.adb.secure=0` on this firmware: there is no "Allow" prompt and any device on the network gets a shell, so
+close it when done:
+
+```bash
+TV_HOST=<tv ip> tools/venv/bin/python -I tools/tv.py 'settings put global adb_enabled 0'
+tools/venv/bin/python -I tools/adb-closed.py <tv ip>
+```
+
+## Debloat
+
+```bash
+TV_HOST=<tv ip> tools/disable.sh examples/sunwind-sun-led32xs305/debloat.txt
+```
+
+Applied in two batches with a cold boot (power cable out) after each; `tools/check.py` found nothing re-enabled, also four days later.
+Kinopoisk, VK Video, Rutube, Flex (`innova.films.android.tv`), Yandex Music and Yandex Browser kept working.
+Kinopoisk, Efir and Yandex Music have no launcher entry of their own: they open from the Yandex Home tile, so
+`com.yandex.tv.home` stays enabled and sits in the dock.
+
+## Launcher
+
+Built with `tools/docker-build.sh` and installed with `STOCK_LAUNCHER=none`, as the CVTE rule asks:
+
+```bash
+SKIP_BUILD=1 STOCK_LAUNCHER=none TV_HOST=<tv ip> launcher/build-and-install.sh
+TV_HOST=<tv ip> tools/theme.sh examples/sunwind-sun-led32xs305
+```
+
+`set-home-activity` took: the remote's Home key opens the new launcher, also after a cold boot. Right after
+power-on the Yandex Home is shown once; one press of Home switches to the launcher. The Yandex Home was not
+disabled, as no list for this board has tried that boot.
+
+## Quirks
+
+- The Yandex YouTube client (`com.yandex.tv.ytplayer`, a Cobalt build) did not load in Russia while other apps
+ reached YouTube; [SmartTube](https://github.com/yuliskov/SmartTube) (`org.smarttube.stable`) is in the dock instead.
+- With `com.yandex.tv.daydream` disabled there is no screensaver until another is set:
+ `TV_HOST=<tv ip> tools/venv/bin/python -I tools/tv.py 'settings put secure screensaver_components com.gathin.tvhome/.ClockDream'`.
+- The Miracast receiver (`com.mediatek.androidbox`, shown as "KindLink") is hidden from Home but kept.
+
+## Undo
+
+```bash
+TV_HOST=<tv ip> tools/restore.sh examples/sunwind-sun-led32xs305/debloat.txt
+```
diff --git a/examples/sunwind-sun-led32xs305/config.json b/examples/sunwind-sun-led32xs305/config.json
new file mode 100644
index 000000000..fcf4d0592
--- /dev/null
+++ b/examples/sunwind-sun-led32xs305/config.json
@@ -0,0 +1,6 @@
+{
+ "dock_apps": ["com.yandex.tv.home", "com.vk.tv", "ru.rutube.app", "innova.films.android.tv", "org.smarttube.stable"],
+ "hidden_apps": ["com.stb.factorymenu", "de.szalkowski.activitylauncher", "com.mediatek.androidbox"],
+ "input_uri_scheme": "live-tv",
+ "reduced_motion": true
+}
diff --git a/examples/sunwind-sun-led32xs305/debloat.txt b/examples/sunwind-sun-led32xs305/debloat.txt
new file mode 100644
index 000000000..275174764
--- /dev/null
+++ b/examples/sunwind-sun-led32xs305/debloat.txt
@@ -0,0 +1,41 @@
+# SunWind SUN-LED32XS305 32" HD (Yandex TV / YaOS, CVTE board TP.MT9256.PB721, MediaTek MT9256), Russia,
+# Android 11 (API 30), build RP1A.200720.011 dev-keys, armeabi-v7a.
+# Stock Home: com.yandex.tv.home/.HomeActivity. Fallback Home: com.android.tv.settings/.system.FallbackHome.
+# Same MT9256 chip as examples/sber-salute-tv-pb766, same YaOS app set as examples/artel-43d1200b.
+#
+# Apply: TV_HOST=<tv ip> tools/disable.sh examples/sunwind-sun-led32xs305/debloat.txt
+# Undo: TV_HOST=<tv ip> tools/restore.sh examples/sunwind-sun-led32xs305/debloat.txt
+# Everything is DISABLED, not uninstalled. Comment out any line you want to keep.
+#
+# Getting ADB on this firmware (see README.md):
+# - Developer options open (Build seven times), but YaOS removed the whole Debugging section, and
+# com.android.tv.settings/.system.development.DevelopmentActivity opened directly shows the same cut page.
+# - ADB is "Debug > ADB ENABLE" in the full CVTE factory menu (com.cvte.fac.menu). On Android 11 it has no
+# launchable activity; it was opened with a small community shortcut APK that starts its service.
+# Touch nothing else in that menu.
+# - Network ADB then answered on 5555 with ro.adb.secure=0: no "Allow" prompt, any device on the network
+# gets a shell. Close it afterwards with `settings put global adb_enabled 0`.
+#
+# Kept on purpose:
+# com.yandex.tv.home: stock Home stays enabled (CVTE rule); Kinopoisk, Efir and Yandex Music live inside it.
+# com.yandex.io.sdk, com.yandex.tv.services*: the Yandex account and system glue (Kinopoisk sign-in).
+# com.yandex.launcher.updaterapp: installs and updates Yandex apps, there is no Play Store.
+# com.yandex.tv.setupwizard, com.yandex.tv.settings, com.yandex.tv.vendor.config, com.yandex.tv.live,
+# com.yandex.webview, ru.yandex.androidkeyboard.tv (the only on-screen keyboard), com.yandex_uni.rro.*,
+# com.mediatek.tvinput and the rest of the MediaTek/CVTE TV stack.
+# com.mediatek.androidbox: the Miracast receiver ("KindLink"), hidden in config.json, not disabled.
+# Factory and test packages (com.cvte.fac.menu, com.cvte.factory.at, com.cvte.license.at, com.cvte.tv.burn,
+# com.stb.factorymenu): never disabled; com.cvte.factory.at was never started.
+
+# Yandex telemetry and ads
+com.yandex.android.advid # Yandex advertising ID
+com.yandex.tv.bugreportsender # bug report sender
+com.yandex.tv.daydream # Yandex video screensaver (ad slot); set the launcher's ClockDream instead
+com.yandex.prebuiltstub # empty stub
+com.yandex.tv.webplayer # Yandex web player; Kinopoisk, VK Video and Rutube play without it
+
+# Voice assistant (the remote's voice key stops working; all other keys keep working)
+com.yandex.tv.alice # Alice
+
+# Disabled once, re-enabled by the owner's choice; uncomment if unused
+# com.yandex.tv.input.efir # Yandex online channels ("Efir"), no antenna needed
diff --git a/examples/sunwind-sun-led32xs305/tv.json b/examples/sunwind-sun-led32xs305/tv.json
new file mode 100644
index 000000000..2fa5f6487
--- /dev/null
+++ b/examples/sunwind-sun-led32xs305/tv.json
@@ -0,0 +1,6 @@
+{
+ "tv": "SunWind SUN-LED32XS305 32\" (Yandex TV / YaOS, CVTE TP.MT9256.PB721, MediaTek MT9256), Russia",
+ "os": "Android 11",
+ "brand": "SunWind",
+ "notes": "Yandex ad ID, bug reports, screensaver, web player and Alice; Yandex Home stays enabled (CVTE) and Home goes to the launcher with `set-home-activity`; ADB only through the CVTE factory menu, `ro.adb.secure=0`: [notes](sunwind-sun-led32xs305/README.md)"
+}