cleanyour.tv · 提示词 · 30 份电视清单 · 用它的作品 · 那条推文
通过 Wi-Fi 剥离任意 Android TV 或 Google TV 上的臃肿软件,把满是广告的主屏幕替换成一个外观酷似 Apple TV 的简洁启动器。无需 root,无需数据线,不卸载任何应用,如果改变主意,一条命令即可恢复。

今天下午用 vibe coding 搞定了我父母的电视!以前你还没来得及打开 Netflix,它就先给你看赞助广告。我把电视型号告诉了 Claude Code,它在 Wi-Fi 上找到了电视,禁用了 25 个小米软件包,还写了一个新启动器。现在看起来就像一台 Apple TV,哈哈。
@gathin,2026年10月17日。这里的大部分电视清单都来自回复区。这个仓库在 19 日之前叫 tv-vibehack;旧链接仍然有效。
工作原理
Android TV 拥有和 Android 手机相同的调试桥。在电视的开发者选项中打开 USB 调试,在电脑上授权一次,剩下的就是标准 Android 工具操作:
- 备份已安装软件包列表和设置。
- 禁用厂商的遥测、广告服务、内容推荐行和预装垃圾应用,使用
pm disable-user。不会卸载任何东西,因此恢复脚本可以撤销每一步。 - 安装一个小型原生启动器并将其设为默认主屏幕。
不同品牌的臃肿软件各不相同,因此提示词会让你的编程助手在你的电视上自行发现它们,并在触碰任何你可能使用的功能前先询问你。
快速开始
你需要一台与电视处于同一 Wi-Fi 的电脑,以及一个拥有 shell 访问权限的编程助手(Claude Code 或类似工具)。
| 1. 在电视上 | 设置 → 设备偏好设置 → 关于 → 连按 Build(版本号) 七次 → 返回 → 开发者选项 → 打开 USB 调试。如果看到网络调试或 ADB 调试开关,也一并打开。保持电视开机。 |
| 2. 在电脑上 | 将 PROMPT.md 粘贴到你的助手对话中,填入你的电视型号。 |
| 3. 跟随引导 | 在电视上接受“允许 USB 调试?”,然后回答检查清单:你使用哪些应用、哪四个应用放入 dock 栏、是否保留语音助手、Chromecast 和系统更新。 |
助手会备份、瘦身、构建并安装启动器,并通过从电视截取的屏幕截图检查每个步骤。以本仓库作为上下文,整个过程大约需要十五分钟。
你会得到什么
- 一个纯黑的主屏幕,dock 栏中是你最常用的四个应用,呈圆角条状,位置与 Apple TV 相同。
- 一个顶部栏(top shelf),以大号字体显示当前聚焦的应用名称,并带有取自其海报颜色的环境光晕。
- 其余应用以网格展示,按下方向键“下”时向上滑出。
- 一个悬浮玻璃质感高亮框,在磁贴间弹跳移动。聚焦的磁贴会抬起并显示名称。
- 三个磨砂按钮:输入源(HDMI 端口、AV、直播电视)、Wi-Fi 或以太网(显示网络名称)、设置。
- 问候语、纤细时钟和日期,使用 Outfit 字体,以及配套的 Clock 屏保。
- 主题无需重新构建即可更换颜色、壁纸、dock 栏和列数,模块卡片允许其他应用在你授权的前提下插入磁贴。
以及一台不再与你作对的电视:没有赞助推荐行,没有“发现”页打扰,没有偷偷回传的分析数据,没有你从未要求安装的应用。
支持的电视
任何运行 Android TV 或 Google TV 的设备。三星和 LG 运行不同的系统;webOS 移植版见 SHOWCASE.md。Fire TV 只能进行瘦身部分,因为 Fire OS 不会把主屏幕交给第三方启动器。少数中国市场 TCL 电视拒绝安装任何启动器;其清单标题中有说明。
贡献者实测清单,每个型号一个文件夹,位于 examples/:
小米 8 · TCL 7 · 索尼 2 · BenQ · CHiQ · Chromecast with Google TV · Hisense · Insignia Fire TV · NVIDIA Shield · OnePlus · Philips · RCA · SANYO · Toshiba Fire TV · Stellamore 和 XGIMI 投影仪
完整清单
| 电视 | 系统 |
|---|---|
| BenQ E55-735 (Changhong AI PONT, DVB96BQ) | Google TV 14 |
| CHiQ AI PONT (DVB93CQ) | Android TV 11 |
| Chromecast with Google TV 4K (sabrina) | Google TV 14 |
| Hisense SmartTV 4K FFM (huangshan, MediaTek) | Android TV 10 |
| Insignia 55" F30 4K Fire TV (NS-55F301NA25, AFTDCT31, duckie) | Fire OS 7 / Android 9 |
| NVIDIA SHIELD TV Pro 2019 (P2897, mdarcy) | Android TV 11 |
| OnePlus TV (D00, Dubai) | Google TV 14 |
| Philips Smart 4K TV (Skyworth, eleonas, MediaTek),印度 | Google TV 14 |
| RCA AI PONT SA (Changhong, redwood, ISDB92RC;也以 realme 40 英寸销售) | Android 14 |
| SANYO ATV R2 (SCBC, Realtek RTD285O) | Android TV 9 |
| Sony BRAVIA 4K UR2 (BRAVIA_UR2_4K, MediaTek) | Android TV 10 |
| Sony BRAVIA XBR-65X900E (2017, BRAVIA_ATV2) | Android TV 9 |
| Stellamore T950S 投影仪 (Droidlogic be30a3, Amlogic txhd2) | Android 13 |
| TCL 55" 4K Google TV,2023 (G10, G10_4K_US_NF) | Google TV 12 |
| TCL 65C725 (Smart TV Pro, BeyondTV4) | Android TV 11 |
| TCL 55Q10G Pro (中国,tcl_mt5879_cn, MediaTek MT9952) | Android TV 11 |
| TCL ak30a5 (中国,Amlogic) | Android TV 9 |
| TCL BeyondTV (印度) | Android TV 9 |
| TCL QM6K Pro,2025 (G08, MediaTek tcl9618) | Google TV 14 |
| TCL Smart TV Pro (G05, G05_4K_US, MediaTek MT5889) | Google TV 11 |
| Toshiba Fire TV (AFTHA004, hazel) | Fire OS 7 / Android 9 |
| XGIMI Horizon S Pro 投影仪 (XK03H, xgimigalileo, MediaTek) | Android TV 11 |
| Xiaomi Mi Box S (MIBOX4, oneday),流媒体盒子 | Android TV 9 |
| Xiaomi Mi TV (MiTV-MOOQ0, croods) | Android TV 10 |
| Xiaomi Mi TV 4A (MiTV-MOOQ1) | Android TV 10 |
| Xiaomi MiTV-AESP0 电视棒 (aquaman, 1 GB) | Android TV 9 |
| Xiaomi MiTV-AXSO0 (dangal; Mi TV 4C Pro 2019 / 4A Pro) | Android TV 9 |
| Xiaomi MiTV-MOOR2 (venom, MediaTek) | Google TV 11 |
| Xiaomi MiTV-MSSP3 (machuca, MediaTek) | Android TV 11 |
| Xiaomi TV A Pro 75" 2026 (MiTV-MZTU0, river, MediaTek) | Google TV 14 |
你的电视不在列表中?提示词会自行发现臃肿软件。之后添加你的清单,下一个拥有同型号的用户就能跳过这一步:CONTRIBUTING.md。
手动操作
助手所做的一切你都可以自己运行。这些工具只需要 Python 3,无需其他依赖。
python3 -m venv tools/venv && tools/venv/bin/pip install -r tools/requirements.txt
export TV_HOST=192.168.1.50 # 你的电视 IP 地址
tools/venv/bin/python -I tools/tv.py --probe # 型号、Android 版本、固件
tools/venv/bin/python -I tools/tv.py 'pm list packages' # 在电视上执行一条 shell 命令
tools/disable.sh examples/xiaomi-mi-tv-4a/debloat.txt # 应用一份瘦身清单
tools/restore.sh examples/xiaomi-mi-tv-4a/debloat.txt # 撤销,恢复原厂启动器
TV_HOST=192.168.1.50 launcher/build-and-install.sh # 构建启动器并设为主屏幕
tools/theme.sh themes/aurora # 推送主题;--reset 可移除
| 工具 | 功能 |
|---|---|
tools/tv.py | 纯 Python ADB 客户端:shell、批量执行、推送、拉取。在原厂 adb 二进制被屏蔽的环境下也能工作。 |
tools/b64push.py | 以 base64 分块上传 APK 等大文件并校验校验和。 |
tools/disable.sh、restore.sh | 应用或撤销瘦身清单。 |
tools/theme.sh | 将 themes/ 中的文件夹推送到启动器并重启主屏幕。 |
launcher/build-and-install.sh | 构建精简发行版(约 250 KB),安装,切换主屏幕,如果主屏幕未成功切换则自动回滚。 |
每个脚本旁都有对应的 PowerShell 版本。在装有 Android Studio 的 Windows 上无需其他任何东西:
python -m venv tools\venv; tools\venv\Scripts\python.exe -m pip install -r tools\requirements.txt
powershell -ExecutionPolicy Bypass -File launcher\build-and-install.ps1 -TvHost 192.168.1.50
powershell -ExecutionPolicy Bypass -File tools\disable.ps1 -TvHost 192.168.1.50 examples\xiaomi-mi-tv-4a\debloat.txt
安装脚本会询问电视当前哪个启动器拥有主屏幕,并且只禁用它们能识别的启动器(tvlauncher 或 launcherx);传入 STOCK_LAUNCHER=<package>(-StockLauncher)可覆盖,或传 none 保持不动。
启动器
一个小型原生 Android TV 应用(com.gathin.tvhome,安装后约 250 KB),纯 Java 编写,仅使用 AndroidX RecyclerView,没有更重的依赖。为 1 GB 内存的电视打造:无模糊、无视频、无网络、无后台服务。构建需要 JDK 17 和 Android SDK platform 34;在 macOS 上,brew install openjdk@17 android-commandlinetools 和 `sdkmanager “platforms;android
-34” “build-tools;34.0.0”`.
- Configure in
config.xml: dock order, hidden apps, the Live TV package, columns (tiles shrink from 5 up), rows under the dock, an optional VPN app for the network pill. - Themes set the same keys plus a background colour and a wallpaper from a
config.jsonpushed to the TV, no rebuild. Three ship inthemes/, documented there. - Language follows the TV: English, German, Spanish, Catalan, French, Russian, Simplified Chinese, Thai. Android 13+ can set it for the launcher alone:
tools/tv.py 'cmd locale set-app-locales com.gathin.tvhome --locales ca'. - Module cards let any TV app declare its own tile (label, caption, glow). The launcher asks you once per app, Keep hidden by default, and remembers the answer for that app’s signing key and card name. Hold OK on Settings to change your mind. How to make one:
docs/modules.md; the contract:docs/specs/card.md. - Clock screensaver: a drifting clock over the glow, so nothing burns in. Pick “Clock” in the TV’s screensaver settings, or over ADB:
tools/tv.py 'settings put secure screensaver_components com.gathin.tvhome/.ClockDream; settings put secure screensaver_enabled 1' - Remote keys: an optional accessibility service keeps the remote’s Input button working on Google TV (
INPUT_KEY_SERVICE=1at install), another fixes sticks whose Home key sends ALL_APPS (HOME_KEY_SERVICE=1). - Navigation is deliberate: Up and Down move one row, the top buttons never fall through to tiles, the last focused app is remembered, and installing or removing an app refreshes the tiles while Home is open.
Restoring your TV
Keep the list you applied. The restore script re-enables exactly those packages, puts the stock launcher back as Home and resets the animation scales:
TV_HOST=192.168.1.50 tools/restore.sh examples/<your tv>/debloat.txt # Android TV
TV_HOST=192.168.1.50 tools/restore.sh examples/<your tv>/debloat.txt com.google.android.apps.tv.launcherx # Google TV
It leaves the new launcher installed (remove it from the TV’s Settings → Apps if you want it gone) and does not know about packages you disabled outside the list. To switch back later, run the install script again; it works out which launcher to disable even when Home has fallen back to Android’s chooser. If the TV is unreachable, its own Settings → Apps page can re-enable packages too.
When something goes wrong
The full list of things that bit us is in docs/TROUBLESHOOTING.md. The three that matter most:
- macOS blocks
adb connect(“No route to host”) under Local Network privacy.tools/tv.pyavoids the binary. - Disable the stock launcher only after the new one is installed and running, or Home lands on a factory test app. The install script orders this for you.
- On Google TV the setup wizard (
com.google.android.tungsten.setupwraith) can take Home and crash-loop the system after the stock launcher is disabled. Disable it too, and list it in yourdebloat.txtso restore brings it back. Stuck already?tools/tv.py 'pm enable --user 0 com.google.android.apps.tv.launcherx'.
Questions people ask
Is this safe? Can it brick the TV? Nothing is flashed, rooted or deleted; packages are disabled in the user profile. The risk is disabling something the TV leans on, which is why lists are applied in small batches with a restore script ready. The TV’s own Settings → Apps page can re-enable packages even without the tools.
What about firmware updates? Most lists disable the update service, so updates arrive only when you re-enable it. If one lands, the worst case is a package coming back and you re-run the script.
Won’t the apps break? Streaming apps still update through the Play Store, which is left alone. The launcher just lists what is installed and launches it with intents that have been stable for a decade.
Isn’t ADB access a security hole? It is one explicit “allow this computer” tap on the TV, the same as developing an Android app. Switch USB debugging off afterwards; the launcher keeps working.
AirPlay? Not from this repo. Chromecast built-in stays for Android phones. For iPhones, jqssun/android-airplay-server works; an install script for it is in PR #84.
Can I just download the APK? Build it with the one-line script; it takes a minute and you control what goes on your TV. No prebuilt binaries.
Contributing
The most useful contribution is your TV’s debloat list, so the next person with that model does not have to rediscover it. Launcher improvements and sharper prompt wording are welcome too. CONTRIBUTING.md has the format and the testing we ask for. Built something on top, a launcher, a port, a theme? Add it to SHOWCASE.md.
Licence
MIT, see LICENSE. The Outfit typeface is under the SIL Open Font License, see
launcher/FONT-LICENSE-OFL.txt.
