Skip to content

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

examples: add X.Vision 50XYU765 (CVTE TP.MT9632.PC752, MediaTek), Android 11

Elyasb50aa42c127c
diff --git a/examples/xvision-50xyu765/README.md b/examples/xvision-50xyu765/README.md
new file mode 100644
index 000000000..ee1624d6c
--- /dev/null
+++ b/examples/xvision-50xyu765/README.md
@@ -0,0 +1,81 @@
+# X.Vision 50XYU765 (CVTE TP.MT9632.PC752, MediaTek m7332), Android 11: notes
+
+One set in Iran, two days of normal use, debloat and the reference launcher. Settings → System Info shows only "Production Model XYU Series",
+"Firmware Version 20221215_115723", Android 11, 4 cores and a Mali-G52; `tools/tv.py --probe` gives manufacturer
+`MAADIRAN`, device `m7332`, build `m7332_eu-userdebug`. The factory menu names the board `TP.MT9632.PC752`. The same
+CVTE software family as `examples/sankey-smart-tv-hi3751v350/` and `examples/vision-2024vision43stv/`, on a MediaTek
+chip.
+
+## Turn on ADB
+
+There is no Developer options screen and no Build number to press: the only settings apps are `com.cvte.settings`
+and `com.cvte.tv.setting`, and `com.android.settings` is not installed at all. ADB is in CVTE's factory menu:
+
+1. Switch to a source first (TV or HDMI). The menu does not open from the home screen.
+2. Press **MENU**, then **1 1 4 7** quickly.
+3. **DEBUG → ADB ENABLE → ON**, then leave with Back. The cursor opens on **SHIPPING INIT**, a factory reset: do not
+ press OK there. Rows marked `>>>` (SHIPPING INIT, AGING MODE, SW UPGRADE, BOARD INIT) run at once; rows marked
+ `--->` open a submenu. Touch nothing but DEBUG.
+
+On the tested set **ADB ENABLE was already ON from the factory**. `ro.adb.secure` is empty on this userdebug build,
+so port 5555 answers with no "Allow USB debugging?" prompt: anyone on the network gets a shell while it is on.
+Switch it **OFF** in the same menu when you are done and check with `tools/adb-closed.py <tv ip>`. While it is on,
+`sys.usb.config` is `adb`, and on a similar CVTE MediaTek board (`docs/devices/mtek-mk32cs1nb.md`) USB devices were
+not seen until it was off and the set had been unplugged once.
+
+Opening the menu this way did not trip a factory mode: the source menu, the inputs and the remote kept working
+through several reboots. Never start the factory packages (`com.cvte.fac.menu`, `com.cvte.factory.*`) over ADB.
+
+## Things this firmware does not have, or has differently
+
+- **Play Store and Play Services were disabled before anything was changed** (`enabled=3`, the user-disabled state),
+ and **enabled again on their own the same evening**: neither this list nor the owner touched them, and they stayed
+ enabled through the two days. Treat their state as the firmware's, not as part of the list. The owner uses
+ Cafe Bazaar and NetStore. Sideloaded stores need the install permission, and with no Android Settings
+ app there is no screen for it: grant it over ADB, e.g.
+ `appops set com.farsitel.bazaar.tv REQUEST_INSTALL_PACKAGES allow`, then `appops write-settings`.
+- **No App info page and no app manager.** `APPLICATION_DETAILS_SETTINGS`, `MANAGE_APPLICATIONS_SETTINGS` and
+ `MANAGE_UNKNOWN_APP_SOURCES` resolve to nothing. The only on-TV uninstall is the stock Apps grid, which is
+ `com.stark.store`; that is why the list keeps the store by default.
+- **No exFAT.** `/proc/filesystems` lists vfat, ntfs and ext4 and nothing loads exFAT; format USB drives as FAT32
+ or NTFS.
+- **No FallbackHome.** `com.cvte.tv.launcher.space` is the only HOME activity, so it stays enabled.
+- **Two Home intents.** `ro.CVT_EN_COMMON_HOME_INTENT=1`: Home and boot send `MAIN` + `HOME` + `COMMON_HOME`.
+ `ro.CVT_EN_HOME_KEY_ENTER_TV=1`: Home pressed while a home screen is in front switches to the last source, so the
+ first Home press from Home lands on live TV and the second comes back.
+- **Inputs are registered** with TvInputManager (HDMI 1-3 are `HW6`-`HW8`, AV `HW2`, the tuners `HW0` and `HW1`),
+ but nothing on the set handles the standard passthrough channel URI. Inputs only switch through CVTE's TIF player:
+ `am start -a com.cvte.intent.ACTION_TIF_PLAYER -n com.cvte.tv.api.impl/com.cvte.tv.api.vendor.common.base.tif.TvSupportActivity --ez tune true --ei sourceId N --es toActivity com.cvte.tv.setting.TvSettingActivity`,
+ with N the number after `/HW`: DTV 0, ATV 1, AV 2, HDMI 1-3 6, 7, 8 (all checked against `dumpsys tv_input`).
+
+## The reference launcher
+
+Install it with the stock launcher left alone and the Home helper on, then push this folder's `config.json`:
+
+```sh
+TV_HOST=<tv ip> STOCK_LAUNCHER=none HOME_KEY_SERVICE=1 launcher/build-and-install.sh
+TV_HOST=<tv ip> tools/theme.sh examples/xvision-50xyu765
+```
+
+- **Home chooser.** `set-home-activity` covers plain `HOME` only, so the first Home press shows Android's chooser
+ ("LauncherSpace4" or "Home"). Pick **Home**, then **Always**, on the real remote: an injected OK on the chooser was
+ taken by CVTE's key handling and switched to live TV instead. After that both intents resolve to the new launcher,
+ and the choice survived reinstalls and reboots.
+- **Power-on.** The new Home is not direct-boot-aware, so the set still boots to the stock launcher (#1201, #1448).
+ `stock_home_redirect` with `HOME_KEY_SERVICE=1` sends it on: the stock home shows for a few seconds, then the new
+ launcher comes up, on every reboot tested.
+- **`key_filter` off.** With the Home helper filtering keys, held Volume Up stepped once per press instead of
+ ramping, the trade `docs/devices/tcl-55p71b-g09-key-repeat.md` describes. `stock_home_redirect` works from window
+ events, not key filtering, so `config.json` sets `key_filter` to false: the volume ramps again (checked on the real
+ remote) and the redirect still worked through a reboot. The price is the helper's button remaps, which this set
+ does not need.
+- **Inputs pill.** With no Live TV package set it opens CVTE's own source picker (`source_panel_service`). The
+ launcher's glass dropdown would list the HDMI ports, but its rows use the passthrough URI, which nothing answers
+ here (see above).
+- **TV and Files tiles.** `com.cvte.tv.setting` (live TV) and `com.android.documentsui` (Android's file manager) have
+ no leanback entry, so `library_apps` puts them on Home, with `app_labels` and the bundled `banner_tv` artwork. The TV
+ tile opens the last source; the remote's channel keys work there.
+- `com.android.traceur` (System Tracing) shows up as a tile and cannot open without Developer options, so
+ `hidden_apps` drops it.
+
+Screenshots work on the stock home screen and the new launcher; live TV and HDMI give a blank frame.
diff --git a/examples/xvision-50xyu765/config.json b/examples/xvision-50xyu765/config.json
new file mode 100644
index 000000000..34cc2aece
--- /dev/null
+++ b/examples/xvision-50xyu765/config.json
@@ -0,0 +1,10 @@
+{
+ "hidden_apps": ["com.android.traceur"],
+ "live_tv_package": "",
+ "source_panel_service": "com.cvte.tv.globalui/.InputSourceActivity",
+ "stock_home_redirect": "com.cvte.tv.launcher.space",
+ "key_filter": false,
+ "library_apps": ["com.cvte.tv.setting", "com.android.documentsui"],
+ "app_labels": ["com.cvte.tv.setting=TV", "com.android.documentsui=Files"],
+ "app_banners": ["com.cvte.tv.setting=banner_tv"]
+}
diff --git a/examples/xvision-50xyu765/debloat.txt b/examples/xvision-50xyu765/debloat.txt
new file mode 100644
index 000000000..13a9ffdb4
--- /dev/null
+++ b/examples/xvision-50xyu765/debloat.txt
@@ -0,0 +1,47 @@
+# X.Vision 50XYU765 ("XYU Series", MAADIRAN), CVTE board TP.MT9632.PC752 (MediaTek m7332), Android 11, firmware 20221215_115723
+# Build m7332_eu-userdebug 11 RP1A.200720.011, security patch 2021-03-05. 1.5 GB RAM (low_ram), 1920x1080, Mali-G52. Iran.
+# Not Google TV: CVTE's own launcher (com.cvte.tv.launcher.space, "LauncherSpace4") and settings (com.cvte.settings);
+# no Developer options. ADB is in CVTE's factory menu; README.md in this folder has the steps.
+# Tested on one set for two days (31 Oct to 2 Nov 2026) with the reference launcher; nothing came back. Notes in README.md.
+#
+# Apply: TV_HOST=<tv ip> tools/disable.sh examples/xvision-50xyu765/debloat.txt
+# Undo: TV_HOST=<tv ip> tools/restore.sh examples/xvision-50xyu765/debloat.txt
+# Everything is DISABLED, not uninstalled. Comment out any line you want to keep.
+#
+# Stock launcher: com.cvte.tv.launcher.space (+ .skin). Keep it ENABLED: it is the only HOME, there is no FallbackHome.
+# Live TV: com.cvte.tv.setting/.TvSettingActivity. Source picker: com.cvte.tv.globalui/.InputSourceActivity.
+# Play Store (com.android.vending) and Play Services (com.google.android.gms) were disabled when the tested set was
+# first read, then enabled again on their own the same evening; this list does not touch them.
+# Kept on purpose: com.cvte.tvservice, com.cvte.tv.api.impl (the TIF player: inputs, tuner), com.cvte.tv.setting
+# (live TV, channel keys), com.cvte.tv.globalui (source menu), com.mediatek.tvinput, com.mediatek.tv.service,
+# com.cvte.settings, com.cvte.tv.media (USB media browser, opens when a drive is plugged in), com.iqqijni.tv1.keyboard
+# (the on-screen keyboard), com.cvte.tv.bluetoothguide (remote pairing), com.cvte.tv.systemupgrade (firmware updates),
+# com.cvte.tv.ucservice and com.cvte.tv.taskmanager (unknown, run from boot), and the factory packages
+# com.cvte.fac.menu, com.cvte.factory.*, com.skyworth.factory.at, com.cvte.tv.tools, com.cvte.tv.burn and
+# com.cvte.license.at (never launched, never disabled).
+
+# CVTE ads
+com.cvte.wonder.cloud.service # "UniAdService", starts at boot
+
+# Manufacturer content
+com.cvte.tv.pictorial # screensaver with ads ("Invisible Art" tile on the stock home)
+com.cvte.tv.steward # "TV Assistant" cleaner / optimiser
+com.cvte.tv.weather # the stock launcher's weather (~54 MB resident); keep it if you keep the stock launcher
+fusion.android.tv.demo # RetailDisplay store demo loop
+
+# Remote customer service
+com.cvte.tv.remotedebug # ifpdos customer service with a screen-recorder service, runs in the background;
+ # the Super General CVTE list keeps it, nothing missed it here
+
+# Google extras
+com.google.android.feedback
+
+# Off by choice on the tested set (keep what you use)
+com.ecloud.eshare.server # EShare ("Kindlink" tile) phone casting, starts at boot; with the next two ~150 MB
+com.ecloud.eairplay # EShare AirPlay receiver
+com.ecloud.emedia # EShare DLNA renderer
+com.mediatek.androidbox # WFDSinkTest: the Miracast receiver
+
+# CVTE app store. The stock launcher's Apps grid and "AppStore" tile are its AppSelectActivity, and the firmware has
+# no other app list or uninstall screen, so keep it if you keep the stock launcher. The tested set turned it off.
+# com.stark.store
diff --git a/examples/xvision-50xyu765/tv.json b/examples/xvision-50xyu765/tv.json
new file mode 100644
index 000000000..4b8c81242
--- /dev/null
+++ b/examples/xvision-50xyu765/tv.json
@@ -0,0 +1,6 @@
+{
+ "tv": "X.Vision 50XYU765 (XYU Series, MAADIRAN; CVTE TP.MT9632.PC752, MediaTek m7332, 1.5 GB), Iran",
+ "os": "Android 11",
+ "brand": "X.Vision",
+ "notes": "First X.Vision list: CVTE ad service, ad screensaver, cleaner, weather, store demo, remote customer-service tool and Google feedback; EShare/AirPlay/DLNA casting and Miracast off by choice; CVTE store kept by default (it hosts the stock Apps grid); no Developer options, ADB from the CVTE factory menu (MENU 1147 on a source), on from the factory with no authorisation; Play Store and Play Services were found disabled and came back on by themselves; stock launcher kept (no FallbackHome), new Home picked with Always for `COMMON_HOME`, power-on through `stock_home_redirect` with `key_filter` off so held volume still ramps"
+}