Skip to content

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

Merge main into docs/agents-md-workflows

sim95ac24f9734f
diff --cc CONTRIBUTING.md
index b5d9866eb,8004809b2..690450b95
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@@ -20,12 -20,36 +20,37 @@@ Everything merged into `themes/` and `a
## 1. Add your TV model
Every brand ships different bloat. If you ran the prompt (or did it by hand) on a TV that isn't in
- `examples/`, add it. [`docs/workflows/tv-list.md`](docs/workflows/tv-list.md) has the steps: the list's
- format, the header with the exact model and firmware, and the two README rows the tests check.
-`examples/`, add it:
++`examples/`, add it. The same steps for a coding agent are in
++[`docs/workflows/tv-list.md`](docs/workflows/tv-list.md).
- List only packages you have actually disabled and lived with for a few days. Never list packages to
- *uninstall*. Everything in this repo disables with `pm disable-user`, which is reversible from the TV's
- own settings if the tools are gone.
+ 1. Create `examples/<brand>-<model>/debloat.txt`. Copy the format from
+ `examples/xiaomi-mi-tv-4a/debloat.txt`: one package per line, grouped with a comment that says
+ what the group is, and a trailing comment on anything non-obvious ("re-enable for firmware
+ updates", "needed for HDMI-CEC", etc.).
+ 2. Put the exact model name, Android version and firmware build in the header so people can tell
+ whether it matches theirs. `tools/tv.py --probe` prints all three.
+ 3. Only list packages you have actually disabled and lived with for a few days. Note anything that
+ broke and what you re-enabled.
+ 4. Add a row to `examples/README.md` and one to the TV table in `README.md`: the tests compare them,
+ so a list with a row in only one of the two fails.
+ 5. If your TV's Live TV app or stock launcher has a different package name, say so in the header. Where
+ a script needs the stock launcher, `tools/restore.sh` takes it as its second argument
+ (`tools/restore.sh <list> <package>`) and `launcher/build-and-install.sh` takes it in the
+ environment, as `STOCK_LAUNCHER=<package>` (`-StockLauncher` on the PowerShell twin, and `none`
+ keeps it enabled) - not as an argument. The launcher shows your Live TV app in its Inputs menu from
+ `live_tv_package`, in `config.xml` or a theme.
+
+ Never list packages to *uninstall*. Everything in this repo disables with `pm disable-user`, which
+ is reversible from the TV's own settings if the tools are gone.
+
+ Android's own packages are not bloat either. Never list the permission controller, the package
+ installer, ext services or ext shared, module metadata, a `com.google.android.overlay.modules*`
+ overlay, systemui, shell, phone, settings, tv.settings, `android`, or a `com.android.providers.*`
+ package other than calendar, contacts, user dictionary and blocked numbers. A TV that loses one of
+ them may never boot again ([#884](https://github.com/Gathin23/cleanyourtv/issues/884), and
+ [what to do if it already happened](docs/TROUBLESHOOTING.md#working-on-the-tv)), so
+ `tools/disable.sh`, `disable.ps1` and `check.py --fix` refuse such a list outright, with no switch to
+ override it, and a pull request that names them comes back for a rework.
## 2. Improve the launcher