Skip to content

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

PROMPT: ask before installing, and accept a newer JDK through 22

Sivanandh PP66a1e2503b2f
diff --git a/PROMPT.md b/PROMPT.md
index f42e2178c..e45a85a79 100644
--- a/PROMPT.md
+++ b/PROMPT.md
@@ -24,26 +24,29 @@ folder, you are running without this repo: clone it first with
rest keep their safety checks, rather than stopping or writing your own.
Check the computer
-- Before Connect, see what this computer already has, install what you can, and give me one short
- summary. Stay here until Python 3, JDK 17 and Android SDK platform 34 with build-tools 34.0.0 are
- present, or I tell you to do the debloat half only.
-- Python 3 runs the tools. A full JDK 17 with `jlink` builds the launcher: `java -version` must say
- 17. Android SDK platform 34 and build-tools 34.0.0 have to be installed under `ANDROID_HOME`,
- `~/Library/Android/sdk`, `~/Android/Sdk`, or `%LOCALAPPDATA%\Android\Sdk`. Git is required only when
- this folder is not already the repo.
-- Install a missing piece yourself when the command does not ask for a password: on macOS,
- `brew install openjdk@17 android-commandlinetools` and
- `sdkmanager "platforms;android-34" "build-tools;34.0.0"`; on Linux, that same `sdkmanager` line when
- the command-line tools are already there, and a JDK 17 package when it installs without a prompt;
- on Windows, Python from winget, and platform 34 plus build-tools 34.0.0 through `sdkmanager` when
- an Android SDK is already there. Once Python 3 is present, create `tools/venv` and
- `pip install -r tools/requirements.txt`.
-- Leave anything that needs an admin password, a store click, or a JDK other than 17, and put the
- exact command in the summary. A full Android Studio install is one of those: name it, don't start
- it. Stock `adb` stays optional. `tools/tv.py` is the client, and the stock binary is only for
- Wireless debugging pairing when port 5555 stays closed.
-- The summary is three lines: what was already installed, what you installed, and what I still have
- to install. Debloat can start with only Python 3 if I say to skip the launcher.
+- Before Connect, check this computer and show me a menu of what is missing. Ask me before
+ installing anything. Install nothing until I answer that menu.
+- A higher version counts when the build still accepts it. Python 3, or any newer 3.x, runs the
+ tools. A full JDK with `jlink` from 17 through 22 builds the launcher; 23 and newer makes Gradle
+ 8.9 stop, so those do not count. If a 17–22 JDK is installed and `java -version` prints 23 or
+ newer, point `JAVA_HOME` at the 17–22 one instead of installing another. Android SDK platform 34
+ has to be installed under `ANDROID_HOME`, `~/Library/Android/sdk`, `~/Android/Sdk`, or
+ `%LOCALAPPDATA%\Android\Sdk`: the build reads `platforms/android-34`, so a newer platform beside it
+ does not replace it. Build-tools 34.0.0 or any newer 34.x counts; build-tools 35 or newer does not
+ replace 34. Git is required only when this folder is not already the repo. Stock `adb` is optional:
+ `tools/tv.py` is the client, and the stock binary is only for Wireless debugging pairing when port
+ 5555 stays closed.
+- The menu lists only missing required pieces, one numbered row each, with the version you found.
+ On a row, offer "You install it" only when you are sure: the package manager is already on this
+ computer and the command will not ask for a password, a store click, or an installer window.
+ Those commands are `brew` or `winget` for Python 3 and for a JDK 17 (use 17 when none of 17–22 is
+ present), `sdkmanager "platforms;android-34" "build-tools;34.0.0"` when `sdkmanager` is already
+ installed, and `python -m venv tools/venv` plus `pip install -r tools/requirements.txt` once
+ Python 3 is present. Every other row offers only "I'll install it myself", with the exact command.
+ A full Android Studio install is one of those.
+- I pick "You install it" or "I'll install it myself" per row. Run only the rows I give you. Then
+ tell me what you installed and what is still missing. Stay here until the required pieces are
+ present, or I tell you to do the debloat half only, which needs Python 3.
Connect
- Find the TV on my network (hostname, ARP table, or ask me for the IP) and connect over ADB on port 5555.
diff --git a/README.md b/README.md
index 0821c54fe..ee6689fb1 100644
--- a/README.md
+++ b/README.md
@@ -65,8 +65,9 @@ before touching anything you might use.
| **Only an Android phone** | Use the community-built [Clean Your TV app](https://cleanyour.tv/app) by [@udhaykumarbala](https://github.com/udhaykumarbala): connect, analyse, clean, in about five minutes. No laptop, no coding agent. |
The three steps below are written for a coding assistant: the computer needs to be on the same Wi-Fi as
-the TV, with a shell on it, plus Python 3, JDK 17 and Android SDK platform 34 with build-tools 34.0.0
-(the assistant builds the launcher there). Without an assistant, [Doing it by hand](#doing-it-by-hand)
+the TV, with a shell on it, plus Python 3, a JDK from 17 through 22, and Android SDK platform 34
+with build-tools 34 (the assistant builds the launcher there, and asks before it installs anything).
+Without an assistant, [Doing it by hand](#doing-it-by-hand)
is the same job, run by you, and it has the install commands.
Any of these work: Claude Code (on [0G Private Computer](https://pc.0g.ai/?utm_source=cleanyourtv&utm_medium=github&utm_campaign=readme) or an [Anthropic plan](https://claude.com/pricing)), [Codex](https://github.com/openai/codex), [Gemini CLI](https://github.com/google-gemini/gemini-cli) or [Antigravity CLI](https://antigravity.google/product/antigravity-cli).
@@ -161,8 +162,8 @@ Everything the assistant does, you can run yourself. Two things have to be on th
| You need | For |
|---|---|
-| **Python 3** | The tools. The venv command below installs what they import. |
-| **JDK 17** (a full JDK, including `jlink`) and **Android SDK platform 34** with **build-tools 34.0.0** | Building the launcher. On macOS: `brew install openjdk@17 android-commandlinetools`, then `sdkmanager "platforms;android-34" "build-tools;34.0.0"`. On Linux the install script looks in `~/Android/Sdk` and for `java` on your PATH. |
+| **Python 3** (any 3.x) | The tools. The venv command below installs what they import. |
+| **JDK 17 through 22** (a full JDK, including `jlink`) and **Android SDK platform 34** with **build-tools 34.0.0 or any newer 34.x** | Building the launcher. JDK 23 and newer stops Gradle 8.9. Platform 34 is the one the build reads; a newer platform does not replace it. On macOS, when none of these is installed: `brew install openjdk@17 android-commandlinetools`, then `sdkmanager "platforms;android-34" "build-tools;34.0.0"`. On Linux the install script looks in `~/Android/Sdk` and for `java` on your PATH. |
`tools/tv.py` talks to network ADB on port 5555. If that port stays closed and the TV offers
Wireless debugging with a pairing code (the Chromecast with Google TV and the Google TV Streamer
@@ -208,9 +209,10 @@ the repository: list paths are relative to the directory you run from, and absol
<details>
<summary><b>Windows (PowerShell)</b></summary>
-Every script has a PowerShell twin next to it. Install Python 3 and Android Studio, and in the SDK
-Manager add platform 34 and build-tools 34.0.0. The script uses `JAVA_HOME` when it points at a JDK,
-and otherwise Android Studio's bundled JDK:
+Every script has a PowerShell twin next to it. Install Python 3 and a JDK from 17 through 22, and
+in the SDK Manager add platform 34 and build-tools 34 (34.0.0 or any newer 34.x). The script uses
+`JAVA_HOME` when it points at a JDK in that range, and otherwise Android Studio's bundled JDK when
+that JDK is in the same range:
```powershell
python -m venv tools\venv; tools\venv\Scripts\python.exe -m pip install -r tools\requirements.txt
@@ -428,7 +430,7 @@ script for it is in [PR #84](https://github.com/Gathin23/cleanyourtv/pull/84).
<summary><b>Can I just download the APK?</b></summary>
Build it with the one-line script in [Doing it by hand](#doing-it-by-hand); it takes a minute and you
-control what goes on your TV. That needs the JDK 17 and Android SDK named there. No prebuilt binaries.
+control what goes on your TV. That needs the JDK and Android SDK named there. No prebuilt binaries.
</details>