Skip to content

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

examples: add Sankey SMART_TV (CVTE, HiSilicon Hi3751V350), Android 12

fgarciag9704ad5f6863c3
diff --git a/README.md b/README.md
index e84c36dbc..af70e07a1 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 |
+| Sankey SMART_TV (CVTE, HiSilicon Hi3751V350, 1 GB) | Android 12 |
| 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.md
index 32a0887be..b7d4bb017 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -105,6 +105,7 @@ on that firmware, grouped and commented. These are starting points: comment out
| `redmi-mitv-mftp0/` | Redmi TV (MiTV-MFTP0, alita), China firmware 23.2.10.6129 | Android TV 9 (CN build) | CN-firmware Redmi, no Google apps: Mi analytics, tvqs, after-sales survey upload, cloud control, promo web container, shop plugin and store, preloaded apps, Mi Home off; `pm disable-user` works; **keep PatchWall enabled**: Home is a package-name allowlist like MiTV-AETP0, the `com.ts.launcher` application-ID build became Home and survived a reboot, do not run `build-and-install.sh` with defaults; startup ad off with `boot_ad_switch 0` on launcher 3.49.1601; `com.gitvdemo.video` is 银河奇异果 (iQIYI), kept; push service (installer whitelist), voice, casting, OTA, payments kept |
| `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-smart-tv-hi3751v350/` | Sankey SMART_TV (CVTE, HiSilicon Hi3751V350, 1 GB) | Android 12 | CVTE ad and push services (`gaia.ad`, `wonder.cloud`, `industries`), the ad screensaver, the "cleaner", the stock weather and Google feedback; Miracast off by choice; the CVTE store off (it hosts the stock launcher's Apps grid and kept pushing a CVTE-signed "WebTube" as a YouTube update); no Developer options and no App info page, ADB from the CVTE factory menu (MENU 1147); stock launcher kept (no FallbackHome, `COMMON_HOME`, #1201); Inputs pill opens `com.cvte.tv.globalui/.InputSourceActivity` |
| `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 |
| `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) |
diff --git a/examples/sankey-smart-tv-hi3751v350/README.md b/examples/sankey-smart-tv-hi3751v350/README.md
new file mode 100644
index 000000000..8f43d16ce
--- /dev/null
+++ b/examples/sankey-smart-tv-hi3751v350/README.md
@@ -0,0 +1,54 @@
+# Sankey SMART_TV (CVTE, HiSilicon Hi3751V350), Android 12: notes
+
+One set, one day, debloat and the reference launcher. Settings → System info shows only "Firmware version
+20231115_180213_01", "Production model SMART_TV", Android 12, 4 cores and Mali-450; `tools/tv.py --probe` gives
+`Hi3751V350` / `Hi3751V352E_DMO`, manufacturer Hisilicon, and every app around the TV is `com.cvte.*`.
+
+## Turn on ADB
+
+There is no Developer options screen and no Build number to press, and Activity Launcher finds no development
+activity: the only settings apps are `com.cvte.settings` and `com.cvte.tv.setting`. ADB is in CVTE's factory menu:
+
+1. Switch to a source first (TV or HDMI). The menu does not open from the launcher.
+2. Press **MENU**, then **1 1 4 7** quickly.
+3. **DEBUG → ADB ENABLE → ON**, then leave with Back. Touch nothing else in that menu.
+
+`ro.adb.secure` is empty: port 5555 answers with no "Allow USB debugging?" prompt, so 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>`.
+
+Opening the menu this way did not trip a factory mode: `sys.factorymenu` stayed 0, `persist.sys.AgingMode` 0, and
+Play services, Play Store and YouTube were still enabled after four reboots. `com.cvte.fac.menu` runs from boot
+anyway; it shows in `dumpsys meminfo` whether or not the menu was opened. Never start it over ADB.
+
+## Things this firmware does not have
+
+- **No App info page and no app manager.** `android.settings.APPLICATION_DETAILS_SETTINGS` and
+ `MANAGE_APPLICATIONS_SETTINGS` resolve to nothing. The only way to uninstall an app on the TV is the stock
+ launcher's Apps grid, which is `com.stark.store/.ui.select.AppSelectActivity`, so keep `com.stark.store` while you
+ use the stock launcher. Settings and Wi-Fi do resolve, to `com.cvte.settings`.
+- **No FallbackHome.** `com.cvte.tv.launcher.space` is the only HOME activity: never disable it (the Vision CVTE notes
+ in `vision-2024vision43stv/` show what happens). `ro.crypto.state` is `unsupported`, but Android still starts Home
+ before the user unlock, so the stock launcher (direct-boot-aware) is what comes up at power-on.
+- **Two Home intents.** `ro.CVT_EN_COMMON_HOME_INTENT=1`: the Home key and boot send `MAIN` + `HOME` +
+ `COMMON_HOME`. `ro.CVT_EN_HOME_KEY_ENTER_TV=1`: Home pressed on the stock home screen switches to the last source.
+
+## The reference launcher
+
+Install it with the stock launcher left alone:
+`launcher\build-and-install.ps1 -TvHost <tv ip> -StockLauncher none` (or `STOCK_LAUNCHER=none`). It installs,
+starts and becomes the default for plain `HOME`, but as built today:
+
+- the Home key still opens the stock launcher, because the launcher has no `COMMON_HOME` filter;
+- power-on still opens the stock launcher, because the launcher's Home activity is not direct-boot-aware.
+
+On the tested set both were fixed by a local build (a second intent filter with `COMMON_HOME`, and a direct-boot-aware
+Home activity that waits on a black screen for `ACTION_USER_UNLOCKED` before reading its settings), then choosing
+the launcher with **Always** in Android's home picker once. That is a change to the Home path, proposed to the
+maintainer in #1201 rather than carried here. The firmware's missing App info page is #1202.
+
+`config.json` in this folder makes the **Inputs** pill open the TV's own source picker (DTV, ATV, AV, HDMI 1-3):
+the HDMI ports are not registered with TvInputManager, only an IPTV app's input is. It also hides System Tracing
+(`com.android.traceur`), which shows up as a tile and cannot open without Developer options. Push it with
+`tools/theme.sh examples/sankey-smart-tv-hi3751v350`.
+
+Screenshots work on the stock home screen too, live TV preview included.
diff --git a/examples/sankey-smart-tv-hi3751v350/config.json b/examples/sankey-smart-tv-hi3751v350/config.json
new file mode 100644
index 000000000..fcad13c1d
--- /dev/null
+++ b/examples/sankey-smart-tv-hi3751v350/config.json
@@ -0,0 +1,13 @@
+{
+ "dock_apps": [
+ "com.google.android.youtube.tv",
+ "com.android.chrome",
+ "com.android.vending",
+ "com.maxhub.screenshare.server.tv"
+ ],
+ "hidden_apps": [
+ "com.android.traceur"
+ ],
+ "live_tv_package": "",
+ "source_panel_service": "com.cvte.tv.globalui/.InputSourceActivity"
+}
diff --git a/examples/sankey-smart-tv-hi3751v350/debloat.txt b/examples/sankey-smart-tv-hi3751v350/debloat.txt
new file mode 100644
index 000000000..826676f71
--- /dev/null
+++ b/examples/sankey-smart-tv-hi3751v350/debloat.txt
@@ -0,0 +1,39 @@
+# Sankey SMART_TV (CVTE firmware, HiSilicon Hi3751V350 "bigfish"), Android 12, build Hi3751V352E_DMO, firmware 20231115_180213_01
+# 1 GB RAM (low_ram), 1280x720 panel. Not the SMART2KTVSE (Whale OS, Amlogic) in sankey-smart2ktvse/: different board.
+# Tested on one set for one day, with the launcher; notes in README.md in this folder.
+#
+# Apply: TV_HOST=<tv ip> tools/disable.sh examples/sankey-smart-tv-hi3751v350/debloat.txt
+# Undo: TV_HOST=<tv ip> tools/restore.sh examples/sankey-smart-tv-hi3751v350/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.
+# Kept on purpose: com.cvte.tvservice, com.cvte.tv.api.impl, com.cvte.tv.setting and com.cvte.tv.globalui (inputs,
+# channels, remote keys), com.cvte.settings, com.hisilicon.rmservice (the remote's accessibility service),
+# com.vendor.vnaudiomanager, com.cvte.tv.media and com.hisilicon.higallery (the file browser that opens when a USB
+# drive is plugged in), com.cvte.tv.systemupgrade (firmware updates), com.maxhub.screenshare.server.tv,
+# com.screenshare.platform and com.cvte.dssshare.dlna (MHshare phone casting, the "ShareServer" tile),
+# com.cvte.tv.ucservice (unknown, runs from boot), and the factory packages com.cvte.fac.menu, com.cvte.factory.*,
+# com.cvte.license.at and com.cvte.tv.tools (never launched).
+
+# CVTE ads and telemetry
+com.cvte.gaia.ad.service # ad service, the largest app process after Play services (~27 MB)
+com.cvte.wonder.cloud.service # "UniAdService"
+com.cvte.industries # push messenger and ad receiver
+
+# Manufacturer content
+com.cvte.tv.pictorial # screensaver with ads
+com.cvte.tv.steward # "cleaner" with scheduled optimisation
+com.cvte.tv.weather # the stock launcher's weather; keep it if you keep the stock launcher
+
+# CVTE app store. The stock launcher's Apps grid is its AppSelectActivity: with the store disabled that grid does
+# nothing, and the firmware has no other app list or uninstall screen, so keep it if you keep the stock launcher.
+# It also kept offering "WebTube" (1.9 MB, signed CN=cvte, package name com.google.android.youtube.tv) as an update
+# for Google's YouTube; the install fails on the signature and the prompt comes back.
+com.stark.store
+
+# Google extras
+com.google.android.feedback
+
+# Off by choice on the tested set
+com.hisilicon.miracast # Miracast receiver