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
Add TCL/FFalcon MT9655 China (Android 14) example: USB-only ADB, launcher blocked
moqilin258-commitsca5ead4b1d1c
diff --git a/docs/devices/tcl-mt9655-cn-android14.md b/docs/devices/tcl-mt9655-cn-android14.mdnew file mode 100644index 000000000..8b672c68c--- /dev/null+++ b/docs/devices/tcl-mt9655-cn-android14.md@@ -0,0 +1,138 @@+# TCL / FFalcon MT9655 China (Android 14): debloat works, launcher and sideloading do not++Checked on a real TV in one session on 2026-10-21, using upstream+`Gathin23/cleanyourtv` at the commit cloned that day (launcher 2.4 built from source).+The debloat list lives in [`examples/tcl-mt9655-cn-android14/`](../../examples/tcl-mt9655-cn-android14/debloat.txt).++## Identify the firmware, not the brand++| Field | Observed value |+|---|---|+| Retail brand | IFFALCON (雷鸟) / TCL, reported in Settings as `TCL Smart TV Pro` |+| `ro.product.manufacturer` | `TCL` |+| `ro.product.model` | `Smart TV Pro` (generic, shared with other TCL sets) |+| `ro.product.name` | `MT9655_4K_CN` |+| `ro.product.device` | `MT9655` |+| `ro.board.platform` / `ro.hardware` | `merak` / `mtktv` |+| Android / SDK | `14` / `34` |+| `ro.build.display.id` | `tcl9655_cn_an64-user 14 UTT2.250416.001 AU01 release-keys` |+| `ro.build.version.incremental` | `AU01` |+| Security patch | `2025-09-05` |+| `ro.product.cpu.abilist` | `arm64-v8a,armeabi-v7a,armeabi` |+| RAM | 3.7 GB (3,704,512 K) |+| `ro.adb.secure` | `1` |++This is the generation after the MT9653 sets already covered by+[`ffalcon-65s585c-pro`](../../examples/ffalcon-65s585c-pro/debloat.txt) and+[`tcl-q10g-pro`](../../examples/tcl-q10g-pro/debloat.txt). The package list is close to those, but+**the ADB access method is completely different**, so the "Device info + UP/DOWN/LEFT/RIGHT"+procedure from those notes does not apply.++## ADB: TLS on a random port, no pairing UI, USB is the only way in++The only switch is `通用设置 → 更多 → ADB`. There is no Developer options screen at all: the AOSP+settings package is not installed (`com.android.settings` is absent, the stock settings app is+`com.tcl.setting` and declares only `MainActivity`, `SceneActivity`, `StartOtherAppActivity` and+`SlicePermissionActivity`), and `android.settings.APPLICATION_DEVELOPMENT_SETTINGS` has no handler.++With the toggle on:++- adbd listens on a **random high port that changes on every toggle** (40769, 35879, 41629 and+ 46493 were seen on the same unit in one session);+- the port answers an ADB `CNXN` with `STLS` and never speaks plaintext, so the ADB-over-TLS+ upgrade is mandatory;+- `adb connect <ip>:<port>` fails and the daemon trace shows+ `Post-handshake SSL_peek failed [SSLV3_ALERT_CERTIFICATE_UNKNOWN]`, i.e. the TV does not know the+ host key;+- mDNS advertises `_adb-tls-connect._tcp` (`adb-<serial>-xxxx`) but **never**+ `_adb-tls-pairing._tcp`, so `adb pair` has no pairing service to talk to;+- 5555 is closed, and a full 1–65535 scan finds no second ADB listener.++Switching Wi-Fi brings up the stock Android dialog `要允许通过此网络进行无线调试吗` with the SSID and+BSSID and an "always allow on this network" checkbox. Allowing it does not change the TLS+behaviour, but it does show the wireless-debugging framework is present with the pairing UI removed.++**The working path is USB**, and the port choice matters:++1. dual male USB-A cable, PC side in a **USB 3.0** port, TV side in a **USB 2.0** port;+2. ADB toggle on, then `adb devices`: Windows enumerates `USB\VID_18D1&PID_4EE7` bound to WinUSB+ (`Class_FF / SubClass_42 / Prot_01`, the ADB interface) with a serial equal to the mDNS instance;+3. the TV shows the standard "Allow USB debugging" prompt; accept it (tick "always allow");+4. `adb tcpip 5555`, then `adb connect <ip>:5555` for wireless work.++Caveats: the USB path only exists while the ADB toggle stays on, and `adb tcpip 5555` does not+survive a reboot — plug the cable in and run it again. A cable that is charge-only, or a TV-side+port that is not the USB 2.0 one, makes the TV enumerate nothing at all, which is easy to mistake+for "this firmware has no USB ADB".++## Sideloading is closed, and the check is in the package manager++Every APK is refused over adb, including apps that do not declare HOME:++```+adb install / pm install / cmd package install+ -> INSTALL_FAILED_VERIFICATION_FAILURE: Install not allowed for file:///data/app/vmdl*.tmp+```++Spoofing the installer package (`-i com.tcl.guard`, `com.tcl.appmarket2`,+`com.android.packageinstaller`) makes no difference. The line `PackageManager: Install not allowed`+is logged by `system_server`, so this is not only the `com.android.packageinstaller` verifier+(`verifier: signature not match ...`) that can be worked around by driving the installer UI.++The only channel that installs ordinary APKs is a USB stick through 电视卫士 (`com.tcl.guard`).+An activity launcher installed that way (`de.szalkowski.activitylauncher`, sideloaded from USB)+was used to confirm there is no hidden development screen.++## The launcher cannot be replaced++Building `launcher/` from source works (`./gradlew assembleRelease` with JDK 17 and SDK 34,+394 KB APK), but installing it fails at the verifier:++```+verifier: signature not match for tcl com.gathin.tvhome, will not be installed !+```++Driving the installer UI over adb gets further than `adb install` — `file://` URIs are refused on+Android 14, but a MediaStore content URI does open the "应用未被认证,是否继续安装" dialog:++```+am start -a android.intent.action.VIEW -t application/vnd.android.package-archive \+ -d content://media/external/file/<id> --grant-read-uri-permission \+ -n com.android.packageinstaller/.InstallStart+```++Pressing 继续 then fails with the same signature error. The rule is readable:++```+content query --uri content://com.tcl.providers.config/all | grep InstallConfig+{"enable":"true","strategies":[+ {"name":"safeStrategy","enable":"true","priority":"0"},+ {"name":"blackListStrategy","enable":"true","packages":[],"priority":"1"},+ {"name":"thridStrategy","enable":"false","packages":["com.dangbeimarket","com.shafa.market","com.ant.store.appstore"],"priority":"2"},+ {"name":"launcherStrategy","enable":"true","packages":[],"priority":"3"},+ {"name":"overDueStrategy","enable":"true","packages":[],"priority":"4"},+ {"name":"pmStrategy","enable":"true","priority":"5"}]}+```++`launcherStrategy` is enabled with an **empty allowlist**, so a HOME package is only accepted if it+is signed with `com.tcl.cyberui`'s key. The row is read-only from the shell:++- `content update` on it returns 0 and silently ignores the write (verified by rewriting the+ `Version` row and reading the old value back);+- the `content` CLI splits `--bind` on every `:`, so a JSON value cannot be passed at all;+- `/data/user_de/0/com.tcl.providers.config/databases/` is not readable as `shell`.++So on this generation the honest summary is: **debloat only**. Replacing Home needs a TCL-signed+build, root, or a firmware downgrade.++The stock launcher (`com.tcl.cyberui`) also renders its own home-screen cards and promo banner from+inside the app, so those cannot be removed by disabling packages either — `com.tcl.atomic.servicecenter`+being disabled does not stop the launcher's own feed.++## What the debloat does change++28 packages disabled with `pm disable-user`, one full reboot afterwards: Home, the source panel,+Settings, the app store, 电视卫士, Media Center and Multi-screen still worked, the crash buffer was+empty, and free RAM went from 1.97 GB to 1.15 GB of 3.7 GB. The boot ad, telemetry upload, push+connection, home recommendation service, shop, OTA and the bundled content entries stay off across+the reboot.diff --git a/examples/README.md b/examples/README.mdindex 701c189ac..ff5aab44c 100644--- a/examples/README.md+++ b/examples/README.md@@ -87,6 +87,7 @@ on that firmware, grouped and commented. These are starting points: comment out| `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-55c815/` | TCL 55C815 (2020, Europe/Denmark, BeyondTV2, Realtek rtd285o) | Android TV 11 | TCL analytics, content feeds (TCL Channel), message box, sticker, Google recommendation rows, Play Movies/Games; voice, Chromecast, mirroring and updates kept by choice; setupwraith owns a setup Wi-Fi network, so it stays; TCL's updater re-enabled TCL Channel by pushing an update after a reboot (also hide it in the launcher); launcher works (stock `com.google.android.tvlauncher`, Live TV `com.tcl.tv`); reboot-checked |+| `tcl-mt9655-cn-android14/` | TCL / FFalcon China (tcl9655_cn, MediaTek MT9655 "merak", UTT2.250416.001 AU01) | Android 14 | No Google services; no Developer options at all — the ADB toggle opens adbd in TLS mode on a random port with no pairing service, so the only way in is a dual male USB-A cable (PC USB 3.0 → TV USB 2.0) and then `adb tcpip 5555`; every adb install is refused (`Install not allowed` from system_server), only a USB stick through 电视卫士 installs apps; debloat only, stock launcher cannot be replaced (`launcherStrategy` allowlist empty, verifier demands the cyberui signature); reboot-checked || `tcl-q10g-pro/` | TCL 55Q10G Pro (China, tcl_mt5879_cn, MediaTek MT9952) | Android TV 11 | No Google services, TCL boot ad + analytics/BI, OTA and account services; ADB opens from Device info + UP/DOWN/LEFT/RIGHT, not the build number; debloat only, stock launcher cannot be replaced (signature check at install time) || `tcl-55s470g/` | TCL 55S470G (G10, G10_4K_US_NF, Realtek), US | Google TV 12 | Same build as the G10 list, but Samba TV, logkit and ttvs ship enabled; ttvs kept (it hosts the firmware updater) and re-enables Samba's front end at boot, so opt out in Settings > Privacy too; Assistant voice and Chromecast off by choice; setupwraith off (Wi-Fi belonged to android.uid.system); remote gear button (keycode 83) opens the quick settings panel and the app buttons are remapped (Pluto TV opens Tubi); `APP_AUTO_START` must be allowed for the launcher or TclAppBoot stops the key service at boot; reboot-checked || `tcl-65c725/` | TCL 65C725 (Smart TV Pro, BeyondTV4) | Android TV 11 | TCL analytics/promos, Google recommendation rows; voice off, OTA off by choice |diff --git a/examples/tcl-mt9655-cn-android14/debloat.txt b/examples/tcl-mt9655-cn-android14/debloat.txtnew file mode 100644index 000000000..341c782d8--- /dev/null+++ b/examples/tcl-mt9655-cn-android14/debloat.txt@@ -0,0 +1,125 @@+# TCL / FFalcon China 2026, device tcl9655_cn / product MT9655_4K_CN, MediaTek MT9655 ("merak"),+# Android 14 (SDK 34), build tcl9655_cn_an64-user 14 UTT2.250416.001 AU01, security patch+# 2025-09-05, 3.7 GB RAM, arm64-v8a. ro.adb.secure=1.+# Retail name reported as "TCL Smart TV Pro" / IFFALCON (雷鸟); ro.product.model is generic, so+# identify this unit by ro.product.name=MT9655_4K_CN and the build id above, not by the brand.+#+# Apply: TV_HOST=<tv ip> tools/disable.sh examples/tcl-mt9655-cn-android14/debloat.txt+# Undo: TV_HOST=<tv ip> tools/restore.sh examples/tcl-mt9655-cn-android14/debloat.txt com.tcl.cyberui+#+# ============================================================================+# ADB: read this before anything else. This build is much harder than the 2026 MT9653 sets.+# ============================================================================+# There is no "Developer options" screen and no "Wireless debugging" row anywhere in the UI.+# TCL replaced the whole Settings app: com.android.settings is NOT installed, the stock settings+# package is com.tcl.setting and it only declares MainActivity, SceneActivity,+# StartOtherAppActivity and SlicePermissionActivity. Searching every activity for "adb", "debug"+# or "develop" through an activity launcher returns nothing, and+# android.settings.APPLICATION_DEVELOPMENT_SETTINGS has no handler.+#+# The only switch is 通用设置 -> 更多 -> ADB. It opens adbd in **TLS mode on a random high port**+# (observed 40769, 35879, 41629, 46493 on the same unit, a new one on every toggle):+# - the port answers an ADB CNXN with STLS and never speaks plaintext;+# - `adb connect ip:port` fails, daemon trace shows+# "Post-handshake SSL_peek failed [SSLV3_ALERT_CERTIFICATE_UNKNOWN]";+# - mDNS advertises _adb-tls-connect._tcp (instance adb-<serial>-xxxx) but never+# _adb-tls-pairing._tcp, so `adb pair` has nothing to talk to;+# - 5555 is closed and no other listener speaks ADB (full 1-65535 scan: adbd, two TCL services,+# DLNA on 16626, AirPlay on 38171).+# Switching Wi-Fi shows the stock Android prompt "要允许通过此网络进行无线调试吗" (per-BSSID), which+# proves the wireless-debugging framework is present but the pairing UI was removed.+#+# The working path is USB:+# 1. dual male USB-A cable, PC side in a USB 3.0 port, TV side in a **USB 2.0** port;+# 2. ADB toggle ON, then `adb devices`: Windows enumerates USB\VID_18D1&PID_4EE7 with the serial+# that matches the mDNS instance, and the TV shows "Allow USB debugging";+# 3. accept it (and "always allow"), then `adb tcpip 5555` and `adb connect <ip>:5555`.+# The USB path only works while the ADB toggle stays on, and 5555 is lost on every reboot+# (re-run `adb tcpip 5555` with the cable attached).+#+# ============================================================================+# Sideloading and the launcher: both are locked, and the lock is not in the installer app.+# ============================================================================+# Every APK is refused over adb, including apps that do not declare HOME:+# adb install / pm install / cmd package install+# -> INSTALL_FAILED_VERIFICATION_FAILURE: Install not allowed for file:///data/app/vmdl*.tmp+# Spoofing the installer package (-i com.tcl.guard, com.tcl.appmarket2, com.android.packageinstaller)+# changes nothing. The rejection is logged by system_server (PackageManager), not only by the+# com.android.packageinstaller verifier.+#+# The only channel that installs normal APKs is a USB stick through 电视卫士 (com.tcl.guard).+# Driving the system installer UI over adb gets further but still fails: file:// URIs are refused+# outright on Android 14, and a MediaStore content:// URI+# am start -a android.intent.action.VIEW -t application/vnd.android.package-archive \+# -d content://media/external/file/<id> --grant-read-uri-permission \+# -n com.android.packageinstaller/.InstallStart+# does show "应用未被认证,是否继续安装" and then fails with+# verifier: signature not match for tcl com.gathin.tvhome, will not be installed !+#+# Root cause, readable with:+# content query --uri content://com.tcl.providers.config/all | grep InstallConfig+# {"enable":"true","strategies":[+# {"name":"safeStrategy","enable":"true","priority":"0"},+# {"name":"blackListStrategy","enable":"true","packages":[],"priority":"1"},+# {"name":"thridStrategy","enable":"false","packages":["com.dangbeimarket","com.shafa.market","com.ant.store.appstore"],"priority":"2"},+# {"name":"launcherStrategy","enable":"true","packages":[],"priority":"3"},+# {"name":"overDueStrategy","enable":"true","packages":[],"priority":"4"},+# {"name":"pmStrategy","enable":"true","priority":"5"}]}+# launcherStrategy is enabled with an empty allowlist, so a HOME package is only accepted if it is+# signed with com.tcl.cyberui's key. The row cannot be edited from the shell: `content update`+# returns 0 and silently ignores the write (verified by writing the Version row and reading it+# back), the `content` CLI splits --bind on every ':' so a JSON value cannot be passed at all, and+# /data/user_de/0/com.tcl.providers.config/databases/ is not readable as shell.+#+# Stock launcher: com.tcl.cyberui, the only activity that resolves MAIN+HOME. Never disable it.+# Net effect for this generation: debloat only. A replacement launcher is impossible without a+# TCL-signed build, root, or a firmware downgrade.+#+# Tested on a real unit: 28 packages disabled, one full `reboot` afterwards, Home, source panel,+# Settings, app store, 电视卫士, Media Center and Multi-screen all still worked, crash buffer empty,+# free RAM went from 1.97 GB to 1.15 GB (of 3.7 GB). Wait at least 10 seconds after applying before+# rebooting.+#+# Not present on this unit, so they are absent from the list: com.tcl.bi,+# com.tcl.recognize.service, com.tcl.weixin, com.tcl.videocall.+# Kept on purpose: com.tcl.cyberui, com.tcl.tv, com.tcl.settings, com.tcl.systemserver, com.tcl.ttvs,+# com.tcl.providers.config, com.tcl.guard (USB install), com.tcl.appmarket2 (store),+# com.tcl.ui_mediaCenter (USB playback), com.sohu.inputmethod.sogou.tv (only keyboard),+# com.tcl.autopair (remote pairing), com.tcl.miracast, com.tcl.MultiScreenInteraction_TV,+# com.tcl.systemui.plugin.* (source panel and quick settings), com.tcl.usercenter,+# com.tcl.walleve (voice, left on by owner choice).++# Ad and telemetry reporting+com.tcl.bootadservice # full-screen ad before Home+com.tcl.profilemanager # audience / profile reporting+com.tcl.xian.StartandroidService # background reporting service+com.tcl.logkit # log collection and upload+com.tcl.atomic.servicecenter # home-screen recommendation cards+com.tcl.c2dm.client # TCL push, long-lived connection+com.tcl.wholenetsearch # whole-net search with VOD promotions+com.tcl.playskill # "tips" promo app+com.tcl.repairguide # repair-guide app+com.tcl.useragreement # user-agreement popup+com.tcl.appreciate.art # art-wallpaper / screensaver promo content+com.tcl.ffeducation # kids / education content+com.tcl.ffkaraoke # karaoke++# OPTIONAL: OTA. Re-enable when you want firmware updates. Keeping it off also stops an update from+# bringing the packages above back.+com.tcl.versionUpdateApp # system OTA and app auto-update+com.tcl.UpdatePeripheral # peripheral firmware OTA, ~200 MB resident+com.snm.upgrade # updateos, a second updater++# OPTIONAL: home widgets and content apps+com.tcl.common.weather # weather widget and its background service+com.tcl.tshop # TCL shop / shopping entry+com.tcl.gamebar # game bar+com.tcl.t_solo # game centre+com.tcl.micmanager # microphone manager (karaoke)+com.audiocn.karaoke.micmanager # karaoke microphone manager+com.tcl.tvsmartalbum # smart photo album+com.tcl.hotelmenu # hotel mode+com.tcl.hearaid # hearing aid+com.tcl.vod # TCL VOD entry+com.tcl.qiyiguo # iQIYI content entry+com.tcl.tliveplay # live TV content entry