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
examples/benq-gv32: drop the folder's restore.sh
Adam Hansenfcbecb9712e9
diff --git a/examples/benq-gv32/README.md b/examples/benq-gv32/README.mdindex 6c666e679..e2906aa0c 100644--- a/examples/benq-gv32/README.md+++ b/examples/benq-gv32/README.md@@ -8,7 +8,6 @@ UKNV.260626.001. Both halves work: the debloat list and the Clean Your TV launch|---|---|| `debloat.txt` | The 8 packages that were disabled, grouped and commented, with what to keep and why (`build-and-install.sh` disables launcherx on top) || `config.json` | Dock order, hidden tile, and the Settings and profile buttons; push it with `tools/theme.sh` |-| `restore.sh` | Undo everything below in one go |All commands run from the repo root, with the projector's IP in `TV_HOST`.@@ -74,12 +73,16 @@ TV_HOST=<projector-ip> tools/tv.py "settings put secure enabled_accessibility_seTV_HOST=<projector-ip> tools/tv.py 'pm enable com.instagram.airwave'```-Use the package name from `debloat.txt`. To put everything back, the launcher included:+Use the package name from `debloat.txt`. To put everything back and give Home to launcherx again:```bash-TV_HOST=<projector-ip> examples/benq-gv32/restore.sh # add --uninstall-launcher to remove it too+TV_HOST=<projector-ip> tools/restore.sh examples/benq-gv32/debloat.txt com.google.android.apps.tv.launcherx+TV_HOST=<projector-ip> tools/theme.sh --reset```+Switch the key helper off as shown under Remote buttons, and `tools/tv.py 'pm uninstall com.gathin.tvhome'`+removes the launcher itself.+## Change the dock or the wallpaperEdit `dock_apps` in `config.json` (package names, left to right; `columns` sets how many slots), thendiff --git a/examples/benq-gv32/restore.sh b/examples/benq-gv32/restore.shdeleted file mode 100755index b04d4d2a8..000000000--- a/examples/benq-gv32/restore.sh+++ /dev/null@@ -1,21 +0,0 @@-#!/usr/bin/env bash-# Put a BenQ GV32 back the way it came: re-enable every package in debloat.txt, give Home back to-# launcherx, switch the launcher's key helper off and remove the theme (dock, hidden tile, button maps).-#-# Usage, from the repo root: TV_HOST=<projector ip> examples/benq-gv32/restore.sh [--uninstall-launcher]-set -euo pipefail-cd "$(dirname "$0")/../.."-: "${TV_HOST:?set TV_HOST to the projector IP address}"-PY=tools/venv/bin/python-[ -x "$PY" ] || PY=tools/venv/Scripts/python.exe-tv() { "$PY" -I tools/tv.py "$@"; }--tools/restore.sh examples/benq-gv32/debloat.txt com.google.android.apps.tv.launcherx-tools/theme.sh --reset || true-# Drop only the launcher's helper from the accessibility list, keeping anything else (TalkBack) that is on.-tv 's=$(settings get secure enabled_accessibility_services | tr ":" "\n" | grep -v "^com.gathin.tvhome/" | paste -sd: -); if [ -z "$s" ]; then settings put secure enabled_accessibility_services ""; settings put secure accessibility_enabled 0; else settings put secure enabled_accessibility_services "$s"; fi'-if [ "${1:-}" = --uninstall-launcher ]; then- tv 'pm uninstall com.gathin.tvhome'-fi-tv 'cmd package resolve-activity --brief -a android.intent.action.MAIN -c android.intent.category.HOME | tail -n 1'-echo "Restored. Press Home on the remote; restart the projector if the old home screen does not come up."