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
fix: make tools scripts work in Git Bash on Windows
nowak7faeead03252
diff --git a/README.md b/README.mdindex 7ab7c1b4a..524c554e8 100644--- a/README.md+++ b/README.md@@ -80,6 +80,10 @@ tools/restore.sh examples/xiaomi-mi-tv-4a/debloat.txt # undo it, restore`tools/tv.py` avoids the binary entirely.- **No "wireless debugging" toggle** on some TVs (Xiaomi among them). USB debugging alone opensnetwork ADB on port 5555.+- **Windows (Git Bash)**: the scripts pick up `tools/venv/Scripts/python.exe` and set+ `MSYS_NO_PATHCONV=1`, otherwise Git Bash rewrites device paths like `/data/local/tmp` into Windows+ paths. `launcher/build-and-install.sh` defaults to Homebrew paths, so set `JAVA_HOME` and+ `ANDROID_HOME` first.- **Chained `pm` commands** (`pm disable a; pm disable b`) may silently stop after the first. Runone per shell call; `--batch` does this.- **Large pushes hang** through the Python client. Use `tools/b64push.py` for APKs.diff --git a/launcher/build-and-install.sh b/launcher/build-and-install.shindex 00fbbe8e6..205e7c1ac 100755--- a/launcher/build-and-install.sh+++ b/launcher/build-and-install.sh@@ -10,6 +10,8 @@ export PATH="$JAVA_HOME/bin:$PATH"[ -f local.properties ] || echo "sdk.dir=$ANDROID_HOME" > local.properties./gradlew assembleDebug -q --console=plainPY=../tools/venv/bin/python+[ -x "$PY" ] || PY=../tools/venv/Scripts/python.exe+export MSYS_NO_PATHCONV=1APK=app/build/outputs/apk/debug/app-debug.apk"$PY" -I ../tools/b64push.py "$APK" /data/local/tmp/tvhome.apkprintf '%s\n' \diff --git a/tools/disable.sh b/tools/disable.shindex 30c88300d..e5aefc02a 100755--- a/tools/disable.sh+++ b/tools/disable.sh@@ -7,6 +7,8 @@ set -euo pipefailcd "$(dirname "$0")/.."LIST="${1:?usage: disable.sh <debloat list>}"PY=tools/venv/bin/python+[ -x "$PY" ] || PY=tools/venv/Scripts/python.exe+export MSYS_NO_PATHCONV=1[ -x "$PY" ] || { echo "run: python3 -m venv tools/venv && tools/venv/bin/pip install -r tools/requirements.txt"; exit 1; }{grep -vE '^\s*(#|$)' "$LIST" | sed -E 's/\s+#.*$//' | awk '{print "pm disable-user --user 0 " $1}'diff --git a/tools/restore.sh b/tools/restore.shindex 858304fda..139691c71 100755--- a/tools/restore.sh+++ b/tools/restore.sh@@ -8,6 +8,8 @@ cd "$(dirname "$0")/.."LIST="${1:?usage: restore.sh <debloat list> [stock launcher package]}"STOCK="${2:-com.google.android.tvlauncher}"PY=tools/venv/bin/python+[ -x "$PY" ] || PY=tools/venv/Scripts/python.exe+export MSYS_NO_PATHCONV=1{grep -vE '^\s*(#|$)' "$LIST" | sed -E 's/\s+#.*$//' | awk '{print "pm enable " $1}'echo "pm enable $STOCK"