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
Merge PR #35: Launcher: Catalan translation
Gathin239a9323294f3a
diff --cc README.mdindex 1c3d5f3c9,a7f3b7ada..fe3aa79fc--- a/README.md+++ b/README.md@@@ -50,98 -13,63 +50,102 @@@ on your TV and ask you before touching## Quick start-1. On the TV: Settings → Device Preferences → About → press OK on **Build** seven times → back →- Developer options → turn on **USB debugging** (and Network/ADB debugging if your TV shows it).- Keep the TV on and on the same Wi-Fi as your computer.-2. Open Claude Code (or your assistant of choice) on your computer and paste the prompt from- [`PROMPT.md`](PROMPT.md), filling in your TV model.-3. Accept the "Allow USB debugging?" prompt on the TV when told to, then answer the checklist- questions (which apps you use, which four go in the dock).+You need a computer on the same Wi-Fi as the TV and a coding assistant with shell access+(Claude Code, or anything similar).-That's it. The assistant backs up, debloats, builds and installs the launcher, and verifies each-step with screenshots from the TV. If you'd rather do it by hand, the pieces are below.+**1. On the TV**+Settings → Device Preferences → About → press OK on **Build** seven times → go back →+Developer options → turn on **USB debugging**. Some TVs also show a Network or ADB debugging+toggle; turn it on too. Keep the TV switched on.-## What's in the repo+**2. On your computer**+Open your assistant, paste the prompt from [`PROMPT.md`](PROMPT.md), and fill in your TV model.-| Path | What it is |-|---|---|-| [`PROMPT.md`](PROMPT.md) | The prompt. Brand-neutral; the assistant discovers your TV's bloat. |-| [`launcher/`](launcher/) | The tvOS-style launcher. Edit `app/src/main/res/values/config.xml` for your dock, hidden apps and Live TV package, then run `build-and-install.sh`. |-| [`tools/tv.py`](tools/tv.py) | Pure-Python ADB client (shell, batch, push, pull). Works where the stock `adb` is blocked. |-| [`tools/b64push.py`](tools/b64push.py) | Uploads larger files (APKs) as base64 chunks with an md5 check. |-| [`tools/disable.sh`](tools/disable.sh), [`tools/restore.sh`](tools/restore.sh) | Apply or undo a debloat list. |-| [`examples/`](examples/) | Per-TV debloat lists. Add yours, see [CONTRIBUTING.md](CONTRIBUTING.md). |+**3. Follow along**+Accept the "Allow USB debugging?" prompt when it appears on the TV, then answer the checklist+questions: which streaming apps you use, which four go in the dock, whether to keep the voice+assistant, Chromecast and firmware updates.-## The launcher+That's it. The assistant backs up, debloats, builds and installs the launcher, and checks every+step with screenshots pulled from the TV. On a 1 GB Mi TV the whole thing took one afternoon the+first time; with this repo as context, people report about fifteen minutes.++## What you get-A small native Android TV home screen (`com.gathin.tvhome`), built for sets with 1 GB of RAM:+A home screen that is yours again:-- Pitch-black background, like Apple TV 4K.-- A dock at the bottom in a lighter rounded band with the four apps you choose. The shelf above- shows the focused dock app's name in large type with an ambient glow sampled from its banner.- Press Down and the dock slides up to reveal the rest of your apps in a grid.-- One translucent glass highlight springs from tile to tile. The focused tile lifts and shows its- name.-- Frosted pills top right: **Inputs** (a dropdown of HDMI ports, AV and Live TV), **Wi-Fi**- (shows the network name) and **Settings**. Greeting, a large thin clock and the date top left,- set in [Outfit](https://fonts.google.com/specimen/Outfit).-- Deterministic D-pad navigation, last focused tile remembered, staggered entrance animation.- No blur, no video, no network, no background services.+- **Pitch-black background** and a dock of your four favourite apps at the bottom, in a lighter+ rounded band, exactly where Apple TV puts it.+- **A top shelf** showing the focused app's name in large type, with an ambient glow in a colour+ taken from the app's own 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 instead of each tile drawing its+ own border. The focused tile lifts slightly and shows its name.+- **Three frosted buttons**: Inputs (a dropdown of HDMI ports, AV and Live TV), Wi-Fi (showing the+ network you're on) and Settings.+- **A greeting, a large thin clock and the date**, set in+ [Outfit](https://fonts.google.com/specimen/Outfit).+- **A matching Clock screensaver**, optional, that drifts around the screen so nothing burns in.-Configure it in [`launcher/app/src/main/res/values/config.xml`](launcher/app/src/main/res/values/config.xml):-dock order, hidden apps, Live TV package and columns. Build and install with+And a TV that stops working against you: no sponsored rows, no "Discover" nags, no analytics+phoning home, no apps you never asked for.++## Supported TVs++Anything running **Android TV** or **Google TV**: Xiaomi and Redmi, TCL, Hisense, Sony, OnePlus,+Realme, Nvidia Shield and most others.++Not supported: Samsung (Tizen), LG (webOS) and Amazon Fire TV. They run different systems or+won't let a third-party launcher take over Home.++Lists that people have tested and contributed live in [`examples/`](examples/):++| TV | OS |+|---|---|+| Xiaomi Mi TV 4A (MiTV-MOOQ1) | Android TV 10 |+| Xiaomi MiTV-AXSO0 | Android TV 9 |+| Xiaomi Mi Box S (MIBOX4), streaming box | Android TV 9 |+| TCL 55" 4K Google TV, 2023 (G10) | Google TV 12 |+| SANYO ATV R2 | Android TV 9 |+| OnePlus TV (D00) | Google TV 14 |+| Sony BRAVIA XBR-65X900E (2017) | Android TV 9 |+| NVIDIA SHIELD TV Pro 2019 (P2897) | Android TV 11 |+| Xiaomi MiTV-MOOR2 (venom) | Google TV 11 |++Your TV not here? The prompt works regardless, it discovers the bloat itself. If you add your+list afterwards, the next person with your model skips that step. See+[Contributing](#contributing).++## Doing it by hand++Everything the assistant does, you can run yourself. The tools need Python 3 and nothing else.```bash-TV_HOST=192.168.1.50 launcher/build-and-install.sh+python3 -m venv tools/venv && tools/venv/bin/pip install -r tools/requirements.txt+export TV_HOST=192.168.1.50 # your TV's IP address++tools/venv/bin/python -I tools/tv.py --probe # model, Android version, firmware+tools/venv/bin/python -I tools/tv.py 'pm list packages' # run one shell command on the TV+printf 'cmd1\ncmd2\n' | tools/venv/bin/python -I tools/tv.py --batch # several, one connection++tools/disable.sh examples/xiaomi-mi-tv-4a/debloat.txt # apply a debloat list+tools/restore.sh examples/xiaomi-mi-tv-4a/debloat.txt # undo it and restore the stock launcher```-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"`.+| Tool | What it does |+|---|---|+| [`tools/tv.py`](tools/tv.py) | A pure-Python ADB client: shell, batch, push, pull. Works where the stock `adb` binary is blocked. |+| [`tools/b64push.py`](tools/b64push.py) | Uploads larger files such as APKs as base64 chunks and verifies the checksum. |+| [`tools/disable.sh`](tools/disable.sh) / [`tools/restore.sh`](tools/restore.sh) | Apply or undo a debloat list. PowerShell versions sit next to them. |+ The launcher follows the TV's language (English, German, Catalan). If your TV doesn't offer yours+ system-wide, Android 13 and later can set it for the launcher alone, e.g. Catalan:+ `adb shell cmd locale set-app-locales com.gathin.tvhome --locales ca`.+### 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.+The PowerShell scripts work without WSL or Git Bash. With Android Studio installed nothing else+is needed: the install script uses Android Studio's bundled JDK and the default SDK location.```powershellpython -m venv tools\venv; tools\venv\Scripts\python.exe -m pip install -r tools\requirements.txt