Metadata-Version: 2.5
Name: bonsai-tv
Version: 0.1.0
Summary: Careful pruning for Android TV: debloat, swap launcher, sideload OSS apps.
License-File: LICENSE
Requires-Python: >=3.11
Requires-Dist: rich>=13.7
Requires-Dist: typer>=0.12
Description-Content-Type: text/markdown

# bonsai-tv

![bonsai](noun_Bonsai_8499889.svg)

> Careful pruning for Android TV: debloat, swap launcher, sideload OSS apps.

`bonsai` helps you take back control of your Android TV — remove bloatware, install an open-source launcher, and sideload trusted OSS apps over ADB.

## Install

```bash
uv pip install bonsai-tv
```

Or from source:

```bash
git clone https://code.swecha.org/bhavabhuthi/bonsai-tv.git
cd bonsai-tv
uv sync
```

## Requirements

- Python >= 3.11
- [adb](https://developer.android.com/tools/adb) on your `PATH`
- Android TV with [USB or network debugging](https://developer.android.com/tools/adb#connect-to-a-device-over-wi-fi-android-11+) enabled

## Commands

| Command | What it does |
|---------|--------------|
| `bonsai-tv root` | Verify adb + device. Prompts for TV IP if no device found. |
| `bonsai-tv scout` | Collect device info + installed package list → `diagnostics/` |
| `bonsai-tv prune` | Debloat: pick packages from a profile to disable (dry-run, `--apply` to execute) |
| `bonsai-tv graft` | Install & set default OSS launcher (projectivy, wolf, launchy, stock) |
| `bonsai-tv plant` | Sideload curated OSS apps (VLC, SmartTube, NewPipe, Kodi, …) |
| `bonsai-tv revive` | Re-enable disabled packages / revert launcher |
| `bonsai-tv view` | Show current launcher + storage + disabled count |

Typical flow:

```bash
bonsai-tv root          # confirm adb connection
bonsai-tv scout         # snapshot current state
bonsai-tv prune         # disable bloat (dry-run first, then --apply)
bonsai-tv graft --yes   # install Projectivy Launcher
bonsai-tv plant --fetch --only vlc,smarttube  # sideload apps
bonsai-tv view          # verify
```

## Profiles

Profiles in `profiles/` define which packages to prune per device:

- `profiles/generic-android-tv.toml`
- `profiles/oneplus-q1-pro.toml`

Copy and edit to match your TV model.

## Attributions

- Bonsai icon by **mbok sumirna** from [The Noun Project](https://thenounproject.com/), used under the Noun Project terms.

## License

bonsai is licensed under the [GNU General Public License v3.0](LICENSE).
