Skip to content

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

examples: TCL 50DP660 (MediaTek MT5658, Android TV 8.0)

intrak64b9a8550215
diff --git a/README.md b/README.md
index 8b6bd4dca..1df2346bf 100644
--- a/README.md
+++ b/README.md
@@ -202,6 +202,7 @@ BYINTEK, JMGO, Portronics, Stellamore, Wanbo and XGIMI projectors
| TCL 43C645 (Smart TV Pro, Realtek RTD2851 / R51MT05, V8-R51MT05-LF1V652) | Google TV launcher on Android TV 11 |
| TCL 43EP660 (Europe, BeyondTV, Realtek rtd285o, V8-R851T02-LF1V378) | Android TV 9 |
| TCL 43S5K (G13, G13_2K_GB, MediaTek MT9221, 1 GB), India | Google TV 14 |
+| TCL 50DP660 (Europe, "Percee TV", MediaTek MT5658 / board mt5891, V8-T658T01-LF1V602) | Android TV 8.0 |
| TCL 50EP680 (Europe, BeyondTV, Realtek rtd285o) | Android TV 11 |
| TCL 55" 4K Google TV, 2023 (G10, G10_4K_US_NF); also TCL 55P6K, Spain (G10_4K_GB_NF_32BIT) | Google TV 12 |
| TCL 55C715 QLED (Europe, BeyondTV2, Realtek RTD2851, V8-R851T02-LF1V606) | Android TV 9 |
diff --git a/docs/devices/tcl-50dp660.txt b/docs/devices/tcl-50dp660.txt
new file mode 100644
index 000000000..c295de327
--- /dev/null
+++ b/docs/devices/tcl-50dp660.txt
@@ -0,0 +1,79 @@
+# TCL 50DP660 (50DP660*, product "Percee TV", MediaTek MT5658, board platform mt5891, armv7).
+# Android TV 8.0 (API 26), firmware V8-T658T01-LF1V602, build OTT1.180130.001, kernel 3.10.79.
+# Checked on a real TV. Companion package list: examples/tcl-50dp660/debloat.txt.
+#
+# ---- ADB -------------------------------------------------------------------------------------
+# Remote-only route, nothing to install:
+# Settings > Picture > Advanced Settings > Brightness, highlight Contrast, type 1 9 5 0
+# > Other > ADB > ON
+# Settings > About > Build (OK x7) > Developer options > USB debugging > ON
+# adb connect <ip>:5555 , then accept the RSA prompt on the TV
+# The two switches do different things: the factory one starts adbd (persist.sys.usb.config=adb),
+# the developer one makes the "Allow USB debugging?" dialog appear. Without the second one every
+# attempt ends as "unauthorized" with nothing on screen, which reads like a network fault.
+# service.adb.tcp.port=5555 is preset by the vendor and survives reboots, so the shell is
+# network-only: the USB-A ports are host-mode and cannot carry ADB.
+# The same menu opens by intent, for automation:
+# am start -a com.tcl.factory.intent.action.FACTORYMENU (com.tcl.factory.view/.MainMenu)
+#
+# ---- Inputs ----------------------------------------------------------------------------------
+# Tuner: com.tcl.tvinput/.TDTVInputService. HDMI and AV: com.tcl.tvpassthrough/.
+# TvPassThroughService. The hardware info registers four HDMI ports (hdmi_port=1..4) plus one
+# composite input; the retail spec lists three HDMI sockets, so at least one registration has no
+# external connector. Not verified by plugging cables into every port.
+# Live TV app: com.tcl.tv/.TVActivity.
+#
+# ---- Boot ------------------------------------------------------------------------------------
+# adbd starts about 6 s in, "Boot is finished" at 18.4 s. HOME resolves to the preferred launcher,
+# then com.tcl.tv/.TVActivity takes over 67 ms later because the factory setting is "Power on mode
+# = LAST". After power-on the set therefore lands on Live TV rather than on the launcher, and one
+# press of HOME goes to the launcher. This is expected, not a launcher bug, and it is not
+# configurable from software.
+#
+# ---- Launcher --------------------------------------------------------------------------------
+# com.google.android.tvlauncher holds HOME with priority 2 on this firmware and must be disabled
+# before "cmd package set-home-activity" takes effect; the command prints Success either way.
+# Launcher config: /sdcard/Android/data/com.gathin.tvhome/files/config.json (no rebuild needed).
+#
+# ---- RAM -------------------------------------------------------------------------------------
+# Kernel 3.10 exposes MemTotal, MemFree, Buffers and Cached but no MemAvailable, so any stats line
+# that keys on MemAvailable silently shows nothing. ActivityManager.MemoryInfo works here.
+#
+# ---- Google services after a factory reset ---------------------------------------------------
+# The stock image carries Play services 13.2.92 (2018) and WebView 58.0.3029.125 (Chrome 58, 2017)
+# while the Play Store updates itself to a 2026 build. Symptoms: E/Finsky "GMS compliance query
+# failed", a Google account that cannot be added (generic "something went wrong"), and Netflix
+# error -121 even with a correct clock and working TLS to api.netflix.com.
+# Installing these two over ADB fixes it:
+# com.google.android.gms 26.40.62 (080306-998995171, armeabi-v7a, 213-320dpi, minAPI 24)
+# com.google.android.webview 138.0.7204.181 (arm-v7a, Android 8.0+, nodpi)
+# They shadow the /system copies, so nothing has to be unlocked; pm uninstall rolls them back.
+# Verify the signing key first with apksigner --print-certs against the APK pulled from
+# /system/priv-app and /system/app - a mismatch fails as INSTALL_FAILED_UPDATE_INCOMPATIBLE.
+# On this unit both matched (GMS f0:fd:6c:5b..., WebView 6faf3c41...).
+#
+# ---- NVM reset -------------------------------------------------------------------------------
+# 1-Factory menu > NVM reset wipes data Android cannot regenerate:
+# - Wi-Fi MAC becomes 02:00:00:00:00:00
+# - the Widevine keybox is gone (WVCdm: "Could not open /factory/wv.keys. Falling Back to L3";
+# /factory is not even mounted on this unit)
+# - the Netflix ESN is gone, which surfaces as ui-800-3 and later -121
+# Recovery is a sequence and the order matters:
+# 1. NVM reset
+# 2. factory data reset
+# 3. full firmware reflash over USB (Update.pkg from V8-T658T01-LF1V602.zip, hold POWER)
+# Only step 3 re-provisions the vendor data. After a reflash the Wi-Fi MAC came back and Netflix
+# and the Play Store started working; Widevine stayed at L3 (software CDM), so HD tiers may not be
+# available. Steps 1-2 alone leave the set broken indefinitely.
+#
+# ---- Audio jack ------------------------------------------------------------------------------
+# After a power cut the set keeps playing through the internal speakers with the 3.5 mm plug in.
+# dumpsys audio reports "speaker" after boot and "headphone" after an activity switch; the
+# MediaTek HAL detects the plug but never closes the internal amplifier, and there is no
+# /sys/class/switch/h2w to poll. Bouncing HOME > TVActivity once after boot forces re-detection.
+#
+# ---- Firmware --------------------------------------------------------------------------------
+# V8-T658T01-LF1V602 is the newest release for this platform (V574/V575 circulating online are
+# older). Update.pkg is fully encrypted - entropy 8.000 bits/byte across all 1.37 GB, no filesystem
+# magic, no repeating-key period - so there is nothing to analyse and nothing to modify. USB
+# flashing is the only route, and it wipes /data.
diff --git a/examples/README.md b/examples/README.md
index 88e0942b6..4349bf6d2 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
| `tcl-43c645/` | TCL 43C645 (Smart TV Pro, Realtek RTD2851 / R51MT05, V8-R51MT05-LF1V652) | Google TV launcher on Android TV 11 | TCL BI analytics/promos, Google partner plumbing, setupwraith (takes HOME once the stock launcher is off); voice and Chromecast kept, firmware updater and Miracast off by choice; tested on a real unit, launcher works |
| `tcl-43ep660/` | TCL 43EP660 (Europe, BeyondTV, Realtek rtd285o, V8-R851T02-LF1V378) | Android TV 9 | TCL BI analytics, user center, TCL Channel, message box, stickers, TV Guard, T-Cast, app store, USB players; voice and Miracast off by choice, Chromecast and updaters kept; stock launcher has HOME priority 2, so it must be disabled; setupwraith owns the setup Wi-Fi and does not claim HOME, so it stays; `StartandroidService` kept (device authentication) |
| `tcl-43s5k/` | TCL 43S5K (G13, G13_2K_GB, MediaTek MT9221, 1 GB), India | Google TV 14 | TCL analytics and the firmware updater are one app (ttvs, kept on for updates), log upload, promo rows, Google partner auto-installs and tracking; Assistant and TCL browser off by choice; Live TV and HDMI are MediaTek's `wwtv.tvcenter`, not `com.tcl.tv`; the Wi-Fi saved during setup belongs to setupwraith, so re-join it before setupwraith goes; launcherx, setupwraith and dreamx off for launcher/; the remote's gear sends keycode 83 (`settings_key_keycodes`) |
+| `tcl-50dp660/` | TCL 50DP660 (Europe, "Percee TV", MediaTek MT5658 / board mt5891, V8-T658T01-LF1V602) | Android TV 8.0 | TCL content tiles (T-Channel), MagiConnect, Alexa bridge, OTA updater, USB players, Rakuten preload and ODM test apps; Assistant and speech recognition off (no microphone), Cast kept; stock launcher has HOME priority 2 and must be disabled; three PERSISTENT `android.uid.system` packages survive `disable-user`; factory menu from the remote via Picture > Advanced Settings > Brightness > Contrast > `1950` with network ADB on 5555; an NVM reset needs a factory reset and a USB reflash afterwards or the Wi-Fi MAC, Widevine keybox and Netflix ESN stay wiped; [compatibility notes](../docs/devices/tcl-50dp660.txt) |
| `tcl-50ep680/` | TCL 50EP680 (Europe, BeyondTV, Realtek rtd285o) | Android TV 11 | TCL analytics + content feed, giftbox dashboard, partner customizer, preloaded games/news; UK Freeview apps already off at the factory; voice off by choice; launcher works (stock `com.google.android.tvlauncher`, Live TV `com.tcl.tv`) |
| `tcl-g10-google-tv/` | TCL 55" 4K Google TV, 2023 (G10, G10_4K_US_NF); also TCL 55P6K, Spain (G10_4K_GB_NF_32BIT) | Google TV 12 | TCL TV+, TCL Live, store demo, smartlink installer; setupwraith also claims Home once the stock launcher is disabled |
| `tcl-55c725/` | TCL 55C725 (Smart TV Pro, BeyondTV4, G03_4K_GB, Realtek R51MT05, V8-R51MT05-LF1V620), Italy | Google TV launcher on Android TV 11 | Same software as tcl-43c645 with launcherx: TCL content, TCL Channel, T-Cast, TCL WebView, partner setup and auto-installs, ambient mode; firmware updater, Chromecast, Miracast kept; RC902V (BT) and RC802NU YUI1 (IR) buttons remapped with `HomeKeyService` by keycode (4062/4065/4099/4001/4020, gear 4077); the service can stay unbound after a reinstall; notes in README.md |
diff --git a/examples/tcl-50dp660/debloat.txt b/examples/tcl-50dp660/debloat.txt
new file mode 100644
index 000000000..2b8dd3df9
--- /dev/null
+++ b/examples/tcl-50dp660/debloat.txt
@@ -0,0 +1,77 @@
+# TCL 50DP660 (50DP660*, product "Percee TV", MediaTek MT5658 / board mt5891, armv7), Europe.
+# Android TV 8.0 (API 26), firmware V8-T658T01-LF1V602, build OTT1.180130.001.
+# Checked on a real TV; this list was applied and survived several reboots.
+#
+# Apply: TV_HOST=<tv ip> tools/disable.sh examples/tcl-50dp660/debloat.txt
+# Undo: TV_HOST=<tv ip> tools/restore.sh examples/tcl-50dp660/debloat.txt
+# Everything is DISABLED, not uninstalled. Comment out any line you want to keep.
+#
+# Stock launcher is com.google.android.tvlauncher and it has HOME priority 2 on this firmware: it
+# must be disabled, or set-home-activity reports Success and HOME still lands on it. Install the
+# replacement launcher first, otherwise disable.sh will skip that line for its own HOME guard.
+# Live TV is com.tcl.tv, the tuner input is com.tcl.tvinput, HDMI and AV are com.tcl.tvpassthrough.
+#
+# Factory menu from the remote, no software needed:
+# Settings > Picture > Advanced Settings > Brightness, highlight Contrast, type 1 9 5 0
+# then Other > ADB. Developer options > USB debugging must be on as well, or the RSA dialog never
+# appears and adb says "unauthorized". service.adb.tcp.port is preset to 5555 by the vendor, so
+# ADB comes up on the network, not USB.
+#
+# WARNING - 1-Factory menu > NVM reset wipes the Wi-Fi MAC, the Widevine keybox and the Netflix
+# ESN. It is not a one-step operation: after the NVM reset do a factory data reset AND reflash the
+# full firmware over USB. Only the reflash re-provisions the vendor data; stopping earlier leaves a
+# 02:00:00:00:00:00 Wi-Fi MAC and Netflix error -121 for good.
+#
+# Keep these enabled (disabling any of them breaks something obvious):
+# com.tcl.inputmethod.international the on-screen keyboard - no text input without it
+# com.tcl.tv, com.tcl.tvinput, com.tcl.tvpassthrough, com.tcl.sourcemananger
+# com.tcl.settings, com.tcl.autopair, com.tcl.virtualkey, com.tcl.factory.view
+# com.mediatek.wifi, com.mediatek.tunerservice, mtktvapi.agent
+# com.google.android.apps.mediashell Google Cast receiver - keep it if you cast
+# com.google.android.backdrop ambient screensaver
+
+# Stock launcher and its recommendation rows, replaced by launcher/
+com.google.android.tvlauncher
+com.google.android.tvrecommendations
+com.google.android.leanbacklauncher.recommendations
+
+# Google media and voice - this set has no microphone
+com.google.android.videos # Play Movies
+com.google.android.play.games
+com.google.android.katniss # Assistant / voice search, runs two processes
+com.google.android.speech.pumpkin # speech recognition engine, see the note at the bottom
+
+# TCL content, mirroring, updaters and bundled players
+com.tcl.MultiScreenInteraction_TV # MagiConnect screen mirroring
+com.tcl.partnercustomizer # "T-Channel" content tiles on the stock home
+com.tcl.smartalexa # Alexa bridge, persistent - see the note at the bottom
+com.tcl.versionUpdateApp # OTA updater; re-enable to check for firmware updates
+com.tcl.ui_mediaCenter # media centre plus USB scanning
+com.tcl.xian.StartandroidService # TCL start-up service
+com.tcl.appmarket2 # TCL app store (21.2 MB APK)
+com.tcl.esticker # retail demo stickers
+com.tcl.tvweishi # "cleaner" widget
+com.tcl.m # MenuHelp
+com.tcl.eletronicpolicy # e-warranty sheet
+com.tcl.videoplayer
+com.tcl.audioplayer
+com.tcl.imageplayer
+com.tcl.pvr.pvrplayer
+
+# ODM leftovers and third-party preloads
+android.autoinstalls.config.tcl.device
+com.example.copydatatotv # factory test app, persistent
+com.example.tvcapture # factory test app
+tv.wuaki.apptv # Rakuten TV
+
+# Two quirks worth knowing when the list does less than it says:
+#
+# 1. com.google.android.speech.pumpkin accepted disable-user and came back as enabled=0 after the
+# next boot. Disabling it a second time stuck (enabled=3). If a Google component reappears,
+# re-apply and check: dumpsys package <pkg> | grep enabled=
+#
+# 2. com.tcl.smartalexa, com.tcl.versionUpdateApp and com.example.copydatatotv are PERSISTENT and
+# signed with android.uid.system. disable-user records them as disabled (enabled=3) but the
+# processes start at boot anyway, and am force-stop is followed by an immediate restart, so
+# roughly 88 MB stays resident until the TV is rooted. pm disable is refused to the shell:
+# SecurityException: Shell cannot change component state.