tv-detox:用 Claude Code 或 Codex 提示词给老旧 Android TV 做可回滚清理
开源仓库 Ansub/tv-detox 提供无广告精简主屏,以及可贴进 Claude Code/Codex 的清理提示词:默认禁用而非删除系统应用,覆盖 Android TV 9/11/12 与 Google TV 14,并强调调试风险与回滚。
开源项目 tv-detox(GitHub Ansub/tv-detox)面向「老旧 Android TV 变卡」场景:一边提供极简无广告主屏(应用、HDMI 输入与时钟),一边提供可贴进 Claude Code 或 Codex 的提示词,让编程代理在确认后逐步清理预装垃圾、广告与赞助行。
作者说明清理策略是禁用应用而非删除,并附带回滚脚本与撤销清单。文档称已在 Android TV 9/11/12 与 Google TV 14 上用模拟器自动测变更。操作要点包括:先开开发者模式与 USB/网络调试;电脑与电视同网;提示词在每步变更前要求确认;白名单保留 Play 服务、Settings、System UI、键盘、蓝牙、HDMI 与调谐框架等;收尾等待约 30 秒并重启,对比可用内存后关闭调试。Google TV 从 v1.4.1 起默认保留系统主屏,除非设置 GOOGLE_TV=1。
诚实边界也写进帖文:关掉系统应用有风险,少数机器会卡在 logo 或反复重启,AI 也可能误判。对软件研发智能化读者,这是「把编码代理接到家用设备运维」的可复现实验,而不是无条件的一键刷机;生产或共用设备上应先镜像/可回滚,并禁止代理在未确认时执行远端下载脚本。
tv-detox: clean Android TV with a coding-agent prompt
An old Android TV can get fast again with a prompt. A GitHub repo does the cleanup with Claude Code or Codex.
The repo is tv-detox (Ansub/tv-detox). It ships two things: a tiny ad-free home screen, and a prompt you paste into an AI coding agent. The home screen shows your apps, your HDMI inputs, and a clock. Nothing else.
The cleanup removes bloatware, ads, and sponsored rows. It turns apps off instead of deleting them. The https://t.co/W51VcdKTES script and its undo list turn everything back on.
It works on Android TV 9, 11 and 12, and on Google TV 14. Every change is tested automatically on emulators.
What it means for builders:
-
Turn on developer mode first. Go to Settings, then Device Preferences, then About. Press Build 7 times. Then turn on USB debugging in Developer options.
-
Keep the laptop and the TV on the same Wi-Fi. Paste the prompt into Claude Code or Codex. The prompt asks you to confirm before every change.
-
The prompt names apps that must stay on. The list includes Google Play services, Settings, System UI, the keyboard, Bluetooth, HDMI inputs, and the input and tuner framework. If the agent is not sure, it leaves the app on.
-
After the last change, wait 30 seconds. Restart the TV once. Check that it starts normally. Ask for free memory before and after.
-
Turn debugging off when setup is done. While USB, Network or Wireless debugging is on, other devices on your network can ask to control the TV.
The honest limit: this turns off system apps, and that carries risk. A few TVs got stuck at the logo or kept restarting, and the AI can make mistakes. On Google TV, https://t.co/pw2Ebo5utC keeps the TV's own home screen from v1.4.1 unless you opt in with GOOGLE_TV=1. On an OLED TV, keep the screensaver on so a still picture does not burn in.
Which system app would you never turn off on a TV you depend on?