Skip to content

Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.

Merge branch 'pr-2' into xiaomi-tv-adb-debloat-67357739

Gathin23051971367b56
diff --cc README.md
index cdc0a01e4,2d98529ca..0193b052f
--- a/README.md
+++ b/README.md
@@@ -60,23 -60,9 +60,25 @@@ TV_HOST=192.168.1.50 launcher/build-and
Needs JDK 17 and the Android SDK (platform 34, build-tools 34.0.0). On macOS:
`brew install openjdk@17 android-commandlinetools && sdkmanager "platforms;android-34" "build-tools;34.0.0"`.
+ Without Homebrew, the script also finds a JDK 17 known to `/usr/libexec/java_home` and an SDK in
+ `~/Library/Android/sdk` (Android Studio's default).
+### Windows
+
+PowerShell versions of the scripts sit next to the bash ones. With Android Studio installed, nothing
+else is needed: the script uses Android Studio's bundled JDK and the default SDK location, and Gradle
+downloads platform 34 and build-tools 34.0.0 on the first build if the SDK licence is accepted.
+
+```powershell
+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
+powershell -ExecutionPolicy Bypass -File tools\restore.ps1 -TvHost 192.168.1.50 examples\xiaomi-mi-tv-4a\debloat.txt
+```
+
+`build-and-install.ps1` stops before touching the stock launcher if the install or setting the new
+home screen fails.
+
## Talking to the TV by hand
```bash