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: add Artel 43D1200B (Yandex TV / YaOS, CVTE, MediaTek m5621), Android 9
Vadim Skorovarovb4acee73bdb9
diff --git a/examples/artel-43d1200b/README.md b/examples/artel-43d1200b/README.mdnew file mode 100644index 000000000..8b73c19ac--- /dev/null+++ b/examples/artel-43d1200b/README.md@@ -0,0 +1,68 @@+# Artel 43D1200B (Yandex TV / YaOS, Android 9)++CVTE board, MediaTek `m5621`, Android 9 / API 28, build `PPR2.180905.006.A1`, incremental `2951076306`+(2025-03-21), about 0.9 GB RAM (`low_ram`), armeabi-v7a, Uzbekistan. The first Yandex TV set with a+several-day list here; [`docs/devices/hi-vhix-43f169msy.md`](../../docs/devices/hi-vhix-43f169msy.md) is+the same platform with notes only. IR remote, Ethernet; no Play Store: YouTube (`com.yandex.tv.ytplayer`)+and Kinopoisk come and update through `com.yandex.launcher.updaterapp`.++Tested on one set for a week, used only for YouTube and Kinopoisk. No HDMI or antenna source was+connected, so the Inputs rows were not tried with a signal.++## Connect++Network ADB on port 5555 was open from the factory (`persist.adb.tcp.port=5555`, `ro.adb.secure=1`:+the TV asks to allow the computer once). After `adb_enabled` was cleared from the shell, USB debugging in+Settings > Developer options (tap Build seven times to show them) did not open 5555 again, even through a+restart; the port came back once the network debugging switch in the same menu was turned on. As in+[TROUBLESHOOTING](../../docs/TROUBLESHOOTING.md) (#2632), trust `tools/adb-closed.py <tv ip>`, not the menu.++The TV gets its address by DHCP, and it changed during the week: check it in Settings > Network.++## Debloat++```bash+TV_HOST=<tv ip> tools/disable.sh examples/artel-43d1200b/debloat.txt+```++Five Yandex apps that a household may use (Alice, Browser, Music, the video player, Efir channels) and+the USB player and Miracast receiver are commented out: they were off on the tested set by the owner's+choice. The Yandex system services stay: the Yandex account behind the Kinopoisk sign-in lives there.++Nothing came back after reboots, after the Yandex system apps updated themselves (3.245 to 3.367), or a+week later (`tools/check.py`).++## Launcher++As the CVTE rule says: the launcher was made Home with `cmd package set-home-activity`, the TV rebooted, Home+and ADB came back, and only then was `com.yandex.tv.home` disabled (the last line of the list). The real+remote's Home, Input and Settings buttons all open the launcher's screens with no key service turned on.+[`config.json`](config.json) puts YouTube and Kinopoisk in the dock, hides the stock Home tile and sets+`input_uri_scheme` to `live-tv`, which the YaOS source player answers.++One minute after boot, about 335 MB was available before the stock Home was disabled and about 380 MB after+(`dumpsys meminfo`, not a benchmark).++## Quirks++- Screensaver: `screensaver_components` names the Yandex video screensaver, so after the list there is none+ until another is set, for example the launcher's clock:+ `settings put secure screensaver_components com.gathin.tvhome/.ClockDream`.+- Power: a short press of the power key is MStar suspend-to-RAM standby, not power off; a long press opens a+ menu with a real power off. `tools/tv.py --reboot` leaves the set in standby: press power on the remote.+- The time zone shipped as `Asia/Oral` (the same UTC+5 as Uzbekistan's `Asia/Tashkent`), with automatic time zone on.++## Close ADB afterwards++```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>+```++The port stayed closed after a reboot, and the set stopped announcing `_adb._tcp` over mDNS.++## Undo++```bash+TV_HOST=<tv ip> tools/restore.sh examples/artel-43d1200b/debloat.txt com.yandex.tv.home+```diff --git a/examples/artel-43d1200b/config.json b/examples/artel-43d1200b/config.jsonnew file mode 100644index 000000000..c77fd3470--- /dev/null+++ b/examples/artel-43d1200b/config.json@@ -0,0 +1,6 @@+{+ "dock_apps": ["com.yandex.tv.ytplayer", "ru.kinopoisk.yandex.tv"],+ "hidden_apps": ["com.yandex.tv.home"],+ "input_uri_scheme": "live-tv",+ "reduced_motion": true+}diff --git a/examples/artel-43d1200b/debloat.txt b/examples/artel-43d1200b/debloat.txtnew file mode 100644index 000000000..aeb2ef435--- /dev/null+++ b/examples/artel-43d1200b/debloat.txt@@ -0,0 +1,41 @@+# Artel 43D1200B (Yandex TV / YaOS, CVTE board, MediaTek m5621), Uzbekistan, Android 9 (API 28),+# build PPR2.180905.006.A1, incremental 2951076306 (2025-03-21). About 0.9 GB RAM, low_ram, armeabi-v7a.+# Stock Home: com.yandex.tv.home/.HomeActivity. Same m5621 platform as docs/devices/hi-vhix-43f169msy.md.+#+# Apply: TV_HOST=<tv ip> tools/disable.sh examples/artel-43d1200b/debloat.txt+# Undo: TV_HOST=<tv ip> tools/restore.sh examples/artel-43d1200b/debloat.txt com.yandex.tv.home+# Everything is DISABLED, not uninstalled. Comment out any line you want to keep.+#+# Kept on purpose:+# com.yandex.tv.services*, com.yandex.io.sdk: the Yandex account (Kinopoisk sign-in) and the system glue.+# com.yandex.tv.setupwizard, com.yandex.tv.vendor.config, com.yandex.tv.settings, com.yandex.tv.live,+# ru.yandex.androidkeyboard.tv (the only on-screen keyboard), com.mediatek.tvinput (HDMI, tuner, AV)+# and the rest of the MediaTek/CVTE TV stack.+# com.yandex.launcher.updaterapp: installs and updates YouTube and Kinopoisk, there is no Play Store.+# com.cultraview.osupdate, com.example.upgrad: firmware updates.+# com.android.se: still starts at boot when disabled, so disabling it gains nothing.+# Factory and test packages (com.ctv.newfactorytest, mediatek.factorymenu.ui, com.cultraview.factory.debug,+# com.ctv.autotest.helper): never touched, never started.+#+# Tested on one set for a week with YouTube (com.yandex.tv.ytplayer) and Kinopoisk: every line below,+# active or commented out, was disabled on it. Nothing came back when the Yandex system apps updated+# (3.245 to 3.367), and tools/check.py found nothing re-enabled a week later.++# Yandex telemetry and leftovers+com.yandex.android.advid # Yandex advertising ID+com.yandex.tv.bugreportsender # bug report sender+com.yandex.prebuiltstub # empty stub, no components+com.yandex.tv.daydream # Yandex video screensaver; the screensaver setting still names it (README.md)+com.yandex.tv.webplayer # Yandex web player; YouTube and Kinopoisk play without it++# Off on the tested set by the owner's choice; uncomment what you do not use+# com.yandex.tv.alice # Alice voice assistant+# com.yandex.browser.tv # Yandex Browser+# com.yandex.tv.music # Yandex Music+# com.yandex.tv.videoplayer # Yandex video player, also smart-home camera streams+# com.yandex.tv.input.efir # Yandex online channels ("Efir") input and EPG; HDMI/tuner/AV stay on com.mediatek.tvinput+# com.cultraview.newfilemanager # USB media player and file manager+# com.mediatek.androidbox # WFDSinkTest: the Miracast receiver++# Stock Home, last: only after the new launcher is Home and survived a reboot (CVTE rule)+com.yandex.tv.home # Yandex TV Home, about 80 MB with its Metrica processdiff --git a/examples/artel-43d1200b/tv.json b/examples/artel-43d1200b/tv.jsonnew file mode 100644index 000000000..0df5e5b12--- /dev/null+++ b/examples/artel-43d1200b/tv.json@@ -0,0 +1,6 @@+{+ "tv": "Artel 43D1200B (Yandex TV / YaOS, CVTE, MediaTek m5621), Uzbekistan",+ "os": "Android 9",+ "brand": "Artel",+ "notes": "First Yandex TV list: ad ID, bug reports, the Yandex screensaver and web player, then the Yandex Home after a reboot (CVTE rule); Alice, Browser, Music, video player, Efir channels, USB player and Miracast commented out (off on the tested set by the owner's choice); keep `com.yandex.tv.services*` and `io.sdk` (Kinopoisk sign-in) and `updaterapp` (YouTube and Kinopoisk updates, no Play Store); Home, Input and Settings keys work with no key service; inputs need `input_uri_scheme` `live-tv`"+}