Skip to content

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

Merge PR #434: tools: check.py, what a firmware update undid compared with the list

Gathin23777f4cf58ceb
diff --cc README.md
index 2392ec211,a5aa1ed5c..45d2cfcb2
--- a/README.md
+++ b/README.md
@@@ -292,9 -274,9 +293,10 @@@ tools/theme.sh themes/auror
|---|---|
| [`tools/tv.py`](tools/tv.py) | Pure-Python ADB client: shell, batch, push, pull. Works where the stock `adb` binary is blocked. |
| [`tools/b64push.py`](tools/b64push.py) | Uploads large files such as APKs in base64 chunks and verifies the checksum. |
+| [`tools/relay.py`](tools/relay.py) | Forwards a local port to the TV's ADB port, for assistants whose sandbox can't reach your network. Listens on this computer only. [Guide](tools/relay.md). |
| [`tools/disable.sh`](tools/disable.sh), [`restore.sh`](tools/restore.sh) | Apply or undo a debloat list, the undo from the state recorded before the change. |
| [`tools/recovery.py`](tools/recovery.py) | Writes the record `disable.sh` needs to undo itself, and prints the restore batch. |
+ | [`tools/check.py`](tools/check.py) | Compares the TV with the list that was applied, for what a firmware update undid; `--fix` puts it back. |
| [`tools/theme.sh`](tools/theme.sh) | Push a folder from [`themes/`](themes/) to the launcher and restart Home. |
| [`tools/race_calendar.py`](tools/race_calendar.py) | Writes this season's F1 calendar into a theme for race-weekend mode, from the free Jolpica API. |
| [`launcher/build-and-install.sh`](launcher/build-and-install.sh) | Builds a shrunk release (about 405 KB), installs it, switches Home, and rolls back if Home does not land on it. |
diff --cc docs/TROUBLESHOOTING.md
index 4a59145ff,d0b09710b..b7ae0541a
--- a/docs/TROUBLESHOOTING.md
+++ b/docs/TROUBLESHOOTING.md
@@@ -255,20 -204,13 +255,27 @@@ Things that bit us or contributors, so
package that also claims HOME (PatchWall on Xiaomi) makes Android drop the default. The install
script now picks the known stock launcher among the candidates by itself; otherwise choose one on
the TV or pass `STOCK_LAUNCHER=<package>`.
+- **Stremio fails every stream with `ConnectException: Failed to connect to /127.0.0.1:11470`**,
+ and only Force stop brings it back until the next reboot. This is not the debloat. It is a Stremio
+ regression in 1.11 ([stremio-bugs#2866](https://github.com/Stremio/stremio-bugs/issues/2866)):
+ `startServer()` only runs once the lifecycle is at least STARTED, so a process Android woke in the
+ background never starts the local server, and opening the app reuses that process. On a TV the
+ waker is Stremio's own `BootReceiver` refreshing the home-screen channels, so it happens on every
+ boot. Leaving the app and reopening does not help (same pid); any fresh process does, `am kill`
+ included. Keeping the boot-woken process from sticking around fixes it for good:
+ `tools/tv.py 'cmd appops set com.stremio.one RUN_ANY_IN_BACKGROUND ignore; cmd appops write-settings'`.
+ The second command is not optional: app-ops are written to disk lazily, and on a Vestel shandao set
+ the op was back to `allow` after the next reboot without it, which looks exactly like the
+ workaround not working. An app started in the foreground is unaffected, and the side effect, that
+ the home-screen channels only refresh while Stremio is open, costs nothing once the recommendation
+ rows are disabled anyway.
+ - **A firmware update quietly undoes the cleanup.** The update installs over the cleaned-up system, so
+ every listed package is enabled again, Home goes back to the stock launcher and new preloads
+ appear that no list mentions. `tools/venv/bin/python -I tools/check.py <list>` reports the first
+ two and exits 1; `--fix` disables them again and puts the launcher back on Home. New preloads it
+ cannot know about, so after a big update compare `tools/tv.py 'pm list packages'` with the list
+ once by hand. On a TV whose list disables the updater, this only happens when you install an
+ update on purpose: enable the updater, update, `check.py --fix`, disable it again.
## Accessibility helper enabled but the remote button does nothing