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
docs: align README guides with current launcher behavior
roninriddle1730562c4549
diff --git a/README.md b/README.mdindex c09d4e126..2a27c1983 100644--- a/README.md+++ b/README.md@@ -32,9 +32,9 @@</a></p>-Strip the bloatware from any Android TV or Google TV over Wi-Fi, and replace the ad-filled home-screen with a clean launcher that looks like an Apple TV. **No root, no cable, nothing uninstalled,-and a one-line restore if you change your mind.**+Strip the bloatware from an Android TV or Google TV over Wi-Fi, and on Android 8.0 (API 26) or newer,+replace the ad-filled home screen with a clean launcher that looks like an Apple TV. **No root, no+cable, nothing uninstalled, and a restore script if you change your mind.**<h3 align="center">93 TV models · 31 brands · 17 languages · 370 KB launcher</h3>@@ -71,7 +71,8 @@ and a one-line restore if you change your mind.**Android TVs have the same debug bridge as Android phones. Switch on USB debugging in the TV'sdeveloper options, allow your computer once, and the rest is standard Android tooling:-1. **Back up** the list of installed packages and settings.+1. **Back up** the list of installed packages and settings. The prompt asks your assistant for a full+ snapshot; `tools/disable.sh` records only the state needed to undo its debloat list.2. **Disable** the manufacturer's telemetry, ad services, content rows and preloaded junk with`pm disable-user`. Nothing is uninstalled, so a restore script can undo every step.3. **Install** a small native launcher and make it the default home screen.@@ -100,8 +101,8 @@ screenshots pulled from the TV. With this repo as context it takes about fifteen- **A top shelf** naming the focused app in large type, with an ambient glow in a colour taken from its artwork.- **The rest of your apps in a grid** that slides up when you press Down.- **One floating glass highlight** that springs from tile to tile. The focused tile lifts and shows its name.-- **Three frosted buttons**: Inputs (HDMI ports under the names you gave them in the TV's settings, AV, Live TV), Wi-Fi or Ethernet with the network name, Settings.-- **A greeting, a thin clock and the date** in [Outfit](https://fonts.google.com/specimen/Outfit), and a matching Clock screensaver. Set `show_stats` in config or a theme for one line under the clock: CPU, free memory and free storage. It stays off unless you turn it on, and it refreshes only while Home is on screen.+- **Frosted buttons**: Wi-Fi or Ethernet with the network name, and Settings. Inputs (HDMI ports under the names you gave them in the TV's settings, AV, Live TV) appears when the TV has a usable input, Live TV app or configured source panel; it is hidden on streaming boxes with none of these.+- **A greeting, a thin clock and the date** in [Outfit](https://fonts.google.com/specimen/Outfit), and a matching Clock screensaver. Set `show_stats` in config or a theme for one line under the clock: CPU when the TV allows it, free memory and free storage. It stays off unless you turn it on, and it refreshes only while Home is on screen.- **Themes** that change colours, wallpaper, dock and columns without a rebuild, and **module cards** that let other apps plug a tile in, only with your say-so.And a TV that stops working against you: no sponsored rows, no "Discover" nags, no analytics@@ -118,10 +119,12 @@ phoning home, no apps you never asked for.## Supported TVs-Anything running **Android TV** or **Google TV**. Samsung (Tizen) and LG (webOS) run different-systems; see [SHOWCASE.md](SHOWCASE.md) for a webOS port. **Fire TV** takes the debloat half only,-since Fire OS will not hand Home to a third-party launcher. A few China-market TCL sets refuse to-install any launcher at all; their lists say so in the header.+The launcher requires **Android TV** or **Google TV** on Android 8.0 (API 26) or newer. A model's+debloat list does not guarantee the launcher can be installed; the list below includes older TVs.+Samsung (Tizen) and LG (webOS) run different systems; see [SHOWCASE.md](SHOWCASE.md) for a webOS port.+**Fire TV** lists are for adapting the debloat steps manually: the [prompt](PROMPT.md) does not cover+Fire TV, and Fire OS will not hand Home to this launcher. Some China-market TVs refuse sideloaded+APKs or third-party Home apps; the known TCL cases are examples, not the only possible ones.Tested lists from contributors, one folder per model in [`examples/`](examples/):@@ -236,7 +239,9 @@ person with your model skips that step: [CONTRIBUTING.md](CONTRIBUTING.md).## Doing it by hand-Everything the assistant does, you can run yourself. The tools need Python 3 and nothing else.+Everything the assistant does, you can run yourself. The ADB tools need Python 3. `tools/tv.py`+connects to classic TCP ADB on port 5555 by default; if your TV only offers paired Wireless debugging,+follow the connection steps in [PROMPT.md](PROMPT.md) to pair and enable port 5555 first.```bashpython3 -m venv tools/venv && tools/venv/bin/pip install -r tools/requirements.txt@@ -271,9 +276,12 @@ powershell -ExecutionPolicy Bypass -File launcher\build-and-install.ps1 -TvHostpowershell -ExecutionPolicy Bypass -File tools\disable.ps1 -TvHost 192.168.1.50 examples\xiaomi-mi-tv-4a\debloat.txt```-The install scripts ask the TV which launcher owns Home and only disable one they recognise-(`tvlauncher` or `launcherx`); pass `STOCK_LAUNCHER=<package>` (`-StockLauncher`) to override, or-`none` to leave it alone.+The install scripts ask the TV which launcher owns Home and automatically disable only one of four+known stock packages (`tvlauncher`, `launcherx`, `leanbacklauncher` or `mitv.tvhome`); pass+`STOCK_LAUNCHER=<package>` (`-StockLauncher` on Windows) after checking your TV to override, or+`none` to leave the stock launcher enabled. Both forms still set CleanYourTV as Home. The shell script+checks that the new launcher starts before changing Home; the current PowerShell script requests the+Home change before that startup check, so keep ADB recovery available on Windows.## The launcher@@ -288,21 +296,22 @@ the install script finds `~/Android/Sdk` and the `java` on your PATH.- **On-TV launcher settings:** click Settings for the TV's system settings, or hold OK on Settings and choose Launcher settings to set 4, 5, 6 or 7 apps per row, turn animations on or off, and opt into advanced effects. The advanced option adds tile lift, icon zoom and smooth ambient-colour transitions; it may use more memory. Use Follow theme to clear on-TV choices. Pushing or resetting a theme also clears them.- **Change the default home:** Launcher settings and the optional Default-home tile (`show_home_settings_shortcut`) open Android's home picker. Choose the original launcher to stop using CleanYourTV as Home, or CleanYourTV to return. The original launcher must be enabled. If the install script disabled it, use the restore script below first. Some TVs provide no home picker.- **Themes** set the same keys plus a background colour and a wallpaper from a `config.json` pushed to the TV, no rebuild. Four ship in [`themes/`](themes/), documented there.-- **Language** follows the TV: English, German, Spanish, Catalan, French, Russian, Serbian (Latin), Polish, Portuguese, Turkish, Arabic, Hebrew, Simplified Chinese, Traditional Chinese (Taiwan), Thai, Finnish, Vietnamese. Android 13+ can set it for the launcher alone: `tools/tv.py 'cmd locale set-app-locales com.gathin.tvhome --locales ca'`.+- **Language** follows the TV: English, German, Spanish, Catalan, French, Russian, Serbian (Latin), Polish, Portuguese, Turkish, Arabic, Hebrew, Simplified Chinese, Traditional Chinese (Taiwan), Thai, Finnish, Vietnamese. Android 13+ can set it for the launcher alone: `tools/venv/bin/python -I tools/tv.py 'cmd locale set-app-locales com.gathin.tvhome --locales ca'`.Hebrew places the menu buttons on the left and the date and clock on the right, with the greeting above the clock. The Clock screensaver right-aligns its date and time, and Hebrew dates include the month prefix ב (for example, 19 באוקטובר). Hebrew dock and app-grid rows start on the right, with matching left/right remote navigation. The Hebrew input selector places icons and labels on the right, status on the left, and aligns the dropdown with the Inputs button’s right edge. Other languages keep their original layouts.Russian includes the module-card approval and management screens and the VPN-off badge.- **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 and choose Module cards to change your mind. How to make one: [`docs/modules.md`](docs/modules.md); the contract: [`docs/specs/card.md`](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=1` at install), another fixes sticks whose Home key sends ALL_APPS and opens Settings from the remote's gear button, even one Android does not map (`HOME_KEY_SERVICE=1`, scancodes or keycodes in `config.xml`). With `settings_key_panel` the gear opens a [small quick settings panel](docs/quick-settings-panel.jpg) instead, over Home or any app: TV settings, Display, Network, Apps and Launcher settings.+ `tools/venv/bin/python -I 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=1` at shell install, `-InputKeyService` on Windows), another fixes sticks whose Home key sends ALL_APPS and opens Settings from the remote's gear button, even one Android does not map (`HOME_KEY_SERVICE=1` or `-HomeKeyService`, scancodes or keycodes in `config.xml`). Pass these options again on reinstall. With `settings_key_panel` the gear opens a [small quick settings panel](docs/quick-settings-panel.jpg) instead, over Home or any app: TV settings, Display, Network, Apps and Launcher settings.- **Navigation** is deliberate: Up and Down move one row, the top buttons never fall through to tiles and Down from them returns to the dock tile you came from, the last focused app is remembered, and installing or removing an app refreshes the tiles while Home is open.- **Artwork**: app banners load at xhdpi or better, so low-density TV UIs do not downsample them before the focus zoom.## Restoring your TV-Before `tools/disable.sh` changes anything it writes down what the TV looked like: for every package-in the list whether it was enabled, already disabled or not installed, which component owned Home,-and the three animation scales. That record lives in `~/.cleanyourtv/`, one file per TV and list, and+Before `tools/disable.sh` changes anything it records the state of each package in the list, the+package and component that owned Home, and the three animation scales. It does not save a full package+or settings snapshot; the [prompt](PROMPT.md) asks your assistant to do that separately. The recovery+record lives in `~/.cleanyourtv/`, one file per TV and list, anda second run of the same list keeps the first record instead of saving the cleaned-up state over it.If you added packages to the list since, that run adds them to the record before disabling them.@@ -314,10 +323,11 @@ TV_HOST=192.168.1.50 tools/restore.sh examples/<your tv>/debloat.txtTV_HOST=192.168.1.50 tools/restore.sh examples/<your tv>/debloat.txt com.google.android.apps.tv.launcherx # Google TV```-The `stock launcher` argument is only a fallback: with a record, the launcher that actually owned Home-is the one that gets it back, and the argument is used only when nothing answered HOME at the time-or this project's launcher owned it. The stock launcher is enabled again either way, unless it was-already disabled when the record was taken.+The `stock launcher` argument selects a fallback Home when nothing answered HOME at the time or this+project's launcher owned it; with a recorded previous Home, that component gets the preference back.+Restore also tries to enable the fallback stock package (by default `com.google.android.tvlauncher`).+Packages recorded as disabled stay disabled, but if the fallback package was not recorded, the script+cannot know whether you had disabled it earlier. Check that package before restoring.Without a record (an older run, or a record you deleted) the script says so and falls back toenabling the whole list and resetting the scales to `1.0`, which is what it used to do.@@ -333,8 +343,8 @@ The full list of things that bit us is in [docs/TROUBLESHOOTING.md](docs/TROUBLEthree that matter most:- **macOS blocks `adb connect`** ("No route to host") under Local Network privacy. `tools/tv.py` avoids 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 your `debloat.txt` so restore brings it back. But check `dumpsys wifi | grep -o 'cname=[^ ]*'` first: if the Wi-Fi network was saved during setup it belongs to setupwraith, and disabling it deletes the network (re-join it in Settings first; `tools/disable.sh` skips setupwraith until you do). Stuck already? `tools/tv.py 'pm enable --user 0 com.google.android.apps.tv.launcherx'`.+- **Disable the stock launcher only after the new one is installed and running**, or Home can land on a factory test app. The shell install script orders this for you; see the PowerShell order above.+- **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 your `debloat.txt` so restore brings it back. But check `dumpsys wifi | grep -o 'cname=[^ ]*'` first: if the Wi-Fi network was saved during setup it belongs to setupwraith, and disabling it deletes the network (forget it and re-join it in Settings first; `tools/disable.sh` skips setupwraith until you do). Stuck already? `tools/venv/bin/python -I tools/tv.py 'pm enable --user 0 com.google.android.apps.tv.launcherx'`.## Questions people ask@@ -355,7 +365,7 @@ TV at their home routing to it. Never by opening the ADB port on their router. S[docs/REMOTE.md](docs/REMOTE.md).**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. Network ADB is plaintext on port 5555, and on firmware with+same as developing an Android app. Classic TCP ADB is plaintext on port 5555, and on firmware with`ro.adb.secure=0` any device on the LAN gets a shell, so close it when you are done:1. On the TV: Developer options → turn **USB debugging** and **Network/ADB debugging** off, and@@ -370,13 +380,13 @@ tracker domains stop resolving, system-wide, surviving reboots. The trade-off: tsees every DNS query the TV makes.```bash-tools/tv.py 'settings put global private_dns_specifier dns.adguard-dns.com'-tools/tv.py 'settings put global private_dns_mode hostname'+tools/venv/bin/python -I tools/tv.py 'settings put global private_dns_specifier dns.adguard-dns.com'+tools/venv/bin/python -I tools/tv.py 'settings put global private_dns_mode hostname'```It does not remove YouTube ads, which come from the same servers as the videos. If an app stopsplaying or the TV reports "No internet" (the resolver is down or unreachable), switch back with-`tools/tv.py 'settings put global private_dns_mode opportunistic'`.+`tools/venv/bin/python -I tools/tv.py 'settings put global private_dns_mode opportunistic'`.**AirPlay?** Not from this repo. Chromecast built-in stays for Android phones. For iPhones,[jqssun/android-airplay-server](https://github.com/jqssun/android-airplay-server) works; an installdiff --git a/README.zh-CN.md b/README.zh-CN.mdindex 9a0136061..53004876c 100644--- a/README.zh-CN.md+++ b/README.zh-CN.md@@ -15,7 +15,7 @@# CleanYourTV 中文使用指南-通过局域网连接 Android TV 或 Google TV,停用不需要的预装应用、广告和遥测服务,并安装简洁的原生桌面。无需 root、刷机或 USB 数据线;清理工具采用停用方式,不卸载系统应用,并提供恢复脚本。+通过局域网连接 Android TV 或 Google TV,停用不需要的预装应用、广告和遥测服务,并在兼容设备上安装简洁的原生桌面。无需 root、刷机或 USB 数据线;清理工具采用停用方式,不卸载系统应用,并提供恢复脚本。本文介绍通用功能和使用方法。不同机型、地区和固件的应用包及限制可能不同,请先核对自己的设备。功能变化以[英文 README](README.md)为准,具体机型记录见[机型清单](examples/README.md)。@@ -23,9 +23,9 @@## 工作原理-电视开启开发者选项中的 USB 调试,并授权电脑后,就可以通过 Android 调试桥(ADB)完成以下步骤:+电视开启开发者选项中的 USB 调试,建立并授权网络 ADB 连接后,就可以完成以下步骤:-1. **备份**已安装应用列表及相关设置。+1. **备份**已安装应用列表及相关设置。使用[操作提示词](PROMPT.md)时,先让助手保存完整快照;手动使用 `tools/disable.sh` 时,工具仅保存恢复该停用列表所需的状态。2. **按需停用**厂商遥测、广告服务、推荐内容和不需要的预装应用,使用的是 `pm disable-user`。3. **安装简洁桌面**,并将其设为默认 HOME。@@ -45,12 +45,12 @@## 桌面功能- **简洁首页**:深色背景,默认四个常用应用组成底部快捷栏。-- **应用聚焦展示**:显示当前应用名称及从图标提取的环境色。+- **应用聚焦展示**:显示当前应用名称;环境色优先从应用横幅提取,没有横幅时才从图标提取。- **应用网格**:按向下键进入更多应用,支持每行 4、5、6 或 7 个。- **遥控器排序**:从设置按钮的长按菜单进入排序模式,调整应用位置。- **可选应用库**:浏览已安装且可启动的应用,用遥控器添加或移除首页快捷方式。- **动效控制**:可开关动态效果,也可单独启用高级动态效果。-- **常用入口**:输入源(HDMI、AV、直播电视)、Wi-Fi / 以太网和系统设置;HDMI 名称沿用电视系统中的命名。+- **常用入口**:Wi-Fi / 以太网和系统设置;设备有可识别的 HDMI、AV、直播电视或已配置来源面板时,还会显示输入源入口。HDMI 名称沿用电视系统中的命名。- **时钟与屏保**:问候语、时间、日期,以及配套的时钟屏保。- **主题**:通过配置文件调整颜色、壁纸、快捷栏和列数,无需重新编译。- **模块卡片**:其他应用可以提供桌面卡片,需用户同意才会显示。@@ -85,16 +85,16 @@## 支持哪些设备-本项目面向 **Android TV / Google TV**,已有社区提供的多种电视与电视盒子配置。请在[机型清单](examples/README.md)中核对型号、地区和固件,阅读对应目录的说明,再使用停用列表。+清理清单面向 **Android TV / Google TV**;当前桌面 APK 要求 **Android 8.0(API 26)或更高版本**。社区提供了多种电视与电视盒子的配置;其中一些设备运行的 Android 版本低于桌面的最低要求,清理清单不代表桌面可安装。请在[机型清单](examples/README.md)中核对型号、地区和固件,阅读对应目录的说明,再使用停用列表。- Samsung Tizen 和 LG webOS 不能直接运行本项目的 Android 桌面;社区移植项目可参考[社区作品](SHOWCASE.md)。-- Fire TV 可以参考清理部分,但 Fire OS 对替换默认桌面有限制。-- 部分中国大陆版 TCL 固件限制第三方桌面安装,不能仅凭品牌判断兼容性。+- Fire TV 的清理记录可供手动适配;[操作提示词](PROMPT.md)不适用于 Fire TV,Fire OS 也限制替换默认桌面。+- 部分中国大陆版电视会拒绝侧载 APK 或安装第三方 HOME 桌面,已记录的 TCL 机型只是其中的例子。不能仅凭品牌判断兼容性。- 没有现成清单时,可以让助手检查实际设备,并按[贡献指南](CONTRIBUTING.md)提交经过验证的机型记录。## 手动操作-以下命令从仓库根目录运行。`192.168.1.50` 是示例地址,请替换为电视的局域网地址。+以下命令从仓库根目录运行。`192.168.1.50` 是示例地址,请替换为电视的局域网地址。`tools/tv.py` 默认连接传统 TCP ADB 的 5555 端口;如果电视只提供需要配对的「无线调试」,须先按[操作提示词中的连接步骤](PROMPT.md)配对并开启 5555 端口,才能使用下列命令。### 1. 准备连接工具@@ -120,7 +120,7 @@ tools/venv/bin/python -I tools/tv.py 'pm list packages'tools/disable.sh examples/xiaomi-mi-tv-4a/debloat.txt```-列表路径相对于运行命令时所在的目录,也可以使用绝对路径。保留原列表及工具生成的恢复记录,方便撤销。+列表路径相对于运行命令时所在的目录,也可以使用绝对路径。保留原列表及工具生成的恢复记录,方便撤销。手动流程若还需要完整的应用和设置快照,应在停用前另行保存;`tools/disable.sh` 不会生成该快照。### 3. 编译和安装桌面@@ -137,7 +137,7 @@ Linux 安装脚本可查找 `~/Android/Sdk` 和 `PATH` 中的 Java。准备好TV_HOST=192.168.1.50 launcher/build-and-install.sh```-**此脚本不仅安装 APK,还会切换默认 HOME,并按检测结果停用原始桌面。** 它先确认新桌面能够启动,再完成切换;切换失败时尝试回退。+**此 Shell 脚本不仅安装 APK,还会切换默认 HOME,并按检测结果停用原始桌面。** 它先确认新桌面能够启动,再完成切换;切换失败时尝试回退。自动识别仅支持 `com.google.android.tvlauncher`、`com.google.android.apps.tv.launcherx`、`com.google.android.leanbacklauncher` 和 `com.mitv.tvhome`;若识别失败,需核对设备后指定 `STOCK_LAUNCHER=<包名>`,或使用 `none`。可使用 `STOCK_LAUNCHER=<包名>` 指定原始桌面;如果希望保留原始桌面的启用状态,使用:@@ -157,7 +157,7 @@ tools\venv\Scripts\python.exe -m pip install -r tools\requirements.txtpowershell -ExecutionPolicy Bypass -File launcher\build-and-install.ps1 -TvHost 192.168.1.50```-PowerShell 安装脚本使用 `-StockLauncher <包名>` 指定原始桌面,或使用 `-StockLauncher none` 保留其启用状态。清理与恢复分别使用 [`tools/disable.ps1`](tools/disable.ps1) 和 [`tools/restore.ps1`](tools/restore.ps1)。+PowerShell 安装脚本使用 `-StockLauncher <包名>` 指定原始桌面,或使用 `-StockLauncher none` 保留其启用状态。当前 PowerShell 脚本会先请求设置新 HOME,再检查新桌面是否启动,与上述 Shell 脚本的顺序不同;操作前请确认 ADB 恢复路径可用。清理与恢复分别使用 [`tools/disable.ps1`](tools/disable.ps1) 和 [`tools/restore.ps1`](tools/restore.ps1)。### 工具索引@@ -176,7 +176,7 @@ PowerShell 安装脚本使用 `-StockLauncher <包名>` 指定原始桌面,或内置配置位于 [`config.xml`](launcher/app/src/main/res/values/config.xml),可设置快捷栏顺序、隐藏应用、直播电视包名、列数、快捷栏下方的行数、网络按钮关联的 VPN 应用,以及 `reduced_motion` 等选项。-还可通过 `show_stats` 显示 CPU、可用内存和可用存储空间,默认关闭,开启后仅在首页显示期间刷新。`greeting_name` 可设置问候语中的名字。+还可通过 `show_stats` 尝试显示 CPU、可用内存和可用存储空间,默认关闭,开启后仅在首页显示期间刷新。设备禁止读取 CPU 数据时会省略 CPU 一项。`greeting_name` 可设置问候语中的名字。主题通过 `config.json` 覆盖内置配置,还可提供背景色和壁纸。使用示例:@@ -194,10 +194,12 @@ TV_HOST=192.168.1.50 tools/theme.sh --reset### 语言、屏保与遥控器-- **语言**随电视系统切换,包括简体中文和繁体中文。Android 13 及以上也支持单独设置应用语言,例如:`tools/tv.py 'cmd locale set-app-locales com.gathin.tvhome --locales zh-CN'`。-- **时钟屏保**可在电视的屏保设置中选择 Clock;也可执行:`tools/tv.py 'settings put secure screensaver_components com.gathin.tvhome/.ClockDream; settings put secure screensaver_enabled 1'`。-- **输入源键**可通过安装时的 `INPUT_KEY_SERVICE=1` 启用辅助功能服务,以适配 Google TV 的遥控器输入源按钮。-- **HOME / 设置键**可通过 `HOME_KEY_SERVICE=1` 及 `config.xml` 中的按键配置适配部分设备。`settings_key_panel` 可启用快捷设置面板,提供电视设置、显示、网络、应用和桌面设置入口。+以下 ADB 命令使用 macOS/Linux 的虚拟环境路径;Windows 将前缀 `tools/venv/bin/python -I tools/tv.py` 换为 `tools\venv\Scripts\python.exe -I tools\tv.py`。++- **语言**随电视系统切换,包括简体中文和繁体中文。Android 13 及以上也支持单独设置应用语言,例如:`tools/venv/bin/python -I tools/tv.py 'cmd locale set-app-locales com.gathin.tvhome --locales zh-CN'`。+- **时钟屏保**可在电视的屏保设置中选择 Clock;也可执行:`tools/venv/bin/python -I tools/tv.py 'settings put secure screensaver_components com.gathin.tvhome/.ClockDream; settings put secure screensaver_enabled 1'`。+- **输入源键**可在 macOS/Linux 安装时使用 `INPUT_KEY_SERVICE=1` 启用辅助功能服务,以适配 Google TV 的遥控器输入源按钮;Windows 使用 `-InputKeyService`。+- **HOME / 设置键**可在 macOS/Linux 安装时使用 `HOME_KEY_SERVICE=1`,并通过 `config.xml` 中的按键配置适配部分设备;Windows 使用 `-HomeKeyService`。`settings_key_panel` 可启用快捷设置面板,提供电视设置、显示、网络、应用和桌面设置入口。重装时需重新传入所需的服务选项。### 模块卡片@@ -207,7 +209,7 @@ TV_HOST=192.168.1.50 tools/theme.sh --reset## 恢复原始桌面和应用-`tools/disable.sh` 在停用前记录列表内各应用的状态(启用、已停用或未安装)、当时的默认 HOME 和三项系统动画缩放设置。记录位于电脑的 `~/.cleanyourtv/`,按电视和列表分别保存。重复运行同一列表不会覆盖最初记录;新增列表项会补充记录。+`tools/disable.sh` 在停用前记录列表内各应用的状态(启用、已停用或未安装)、当时的默认 HOME 和三项系统动画缩放设置。它还会记录当时拥有 HOME 的包,但不会保存完整应用列表或全部系统设置。记录位于电脑的 `~/.cleanyourtv/`,按电视和列表分别保存。重复运行同一列表不会覆盖最初记录;新增列表项会补充记录。将以下路径替换为**实际使用过的列表**后恢复:@@ -221,8 +223,8 @@ TV_HOST=192.168.1.50 tools/restore.sh examples/xiaomi-mi-tv-4a/debloat.txtTV_HOST=192.168.1.50 tools/restore.sh "examples/你的机型/debloat.txt" com.google.android.apps.tv.launcherx```-- 有记录时,优先恢复当时实际拥有 HOME 的组件;备用包名用于当时没有解析到 HOME 或 HOME 已属于 CleanYourTV 的情况。-- 操作前已经停用的应用会保持停用,避免把原本不需要的服务全部打开。+- 有记录时,优先恢复当时实际拥有 HOME 的组件;当时没有解析到 HOME 或 HOME 已属于 CleanYourTV 时,使用指定的备用包名,未指定则默认尝试 `com.google.android.tvlauncher`。+- 记录中操作前已经停用的包会保持停用。恢复脚本还会尝试启用备用桌面包;如果它不在记录中,脚本无法判断其操作前状态。请先核对备用包名。- 缺少记录时,脚本会提示并回退为启用列表内应用、将动画缩放恢复为 `1.0`;这不等同于精确恢复操作前状态。- 恢复脚本不会卸载 CleanYourTV,也无法恢复列表之外的手动修改。若要卸载,可在电视「设置 → 应用」中操作。- 无法连接 ADB 时,也可以尝试从电视系统设置中重新启用相关应用。@@ -231,9 +233,9 @@ TV_HOST=192.168.1.50 tools/restore.sh "examples/你的机型/debloat.txt" com.go完整说明见 [`docs/TROUBLESHOOTING.md`](docs/TROUBLESHOOTING.md)。-- **macOS 提示 `No route to host`**:检查本地网络隐私权限;可尝试仓库的 Python ADB 工具 `tools/tv.py`。-- **替换后 HOME 异常**:应先确认新桌面已安装且能够运行,再停用原始桌面。安装脚本按这个顺序执行。-- **Google TV 设置向导抢占 HOME**:`com.google.android.tungsten.setupwraith` 可能在原始桌面停用后抢占 HOME。先按故障排查文档检查它是否拥有当前 Wi-Fi 配置;直接停用可能删除该网络。清理工具会在这种情况下跳过它,需先从系统设置重新连接网络。若已经异常,可尝试重新启用 Google TV 原始桌面:`tools/tv.py 'pm enable --user 0 com.google.android.apps.tv.launcherx'`。+- **macOS 提示 `No route to host`**:检查本地网络隐私权限;可尝试通过 `tools/venv/bin/python -I tools/tv.py` 使用仓库的 Python ADB 工具。+- **替换后 HOME 异常**:应先确认新桌面已安装且能够运行,再停用原始桌面。Shell 安装脚本按这个顺序执行;Windows 脚本的现有顺序见上文。+- **Google TV 设置向导抢占 HOME**:`com.google.android.tungsten.setupwraith` 可能在原始桌面停用后抢占 HOME。先按故障排查文档检查它是否拥有当前 Wi-Fi 配置;直接停用可能删除该网络。清理工具会在这种情况下跳过它,需先在系统设置中忘记该 Wi-Fi,再重新加入。若已经异常,可尝试重新启用 Google TV 原始桌面:`tools/venv/bin/python -I tools/tv.py 'pm enable --user 0 com.google.android.apps.tv.launcherx'`。## 常见问题@@ -251,7 +253,7 @@ TV_HOST=192.168.1.50 tools/restore.sh "examples/你的机型/debloat.txt" com.go**完成后要关闭调试吗?**-需要。网络 ADB 使用明文连接,部分固件甚至不强制授权。完成后关闭 USB 调试及网络 / ADB 调试,撤销调试授权,并按[英文 README 的检查步骤](README.md#questions-people-ask)确认端口已关闭。+需要。本工具使用的传统 TCP ADB(默认 5555 端口)为明文连接,部分固件甚至不强制授权。完成后关闭 USB 调试及网络 / ADB 调试,撤销调试授权,并按[英文 README 的检查步骤](README.md#questions-people-ask)确认端口已关闭。**支持私有 DNS 或 AirPlay 吗?**