Skip to content

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

Merge PR #1841: README: open ADB again before check.py after a firmware update; the weekly job needs it left open

Gathin231cc92b822015
diff --cc README.md
index 909855904,1f6cdc2e6..4c76cdbb5
--- a/README.md
+++ b/README.md
@@@ -773,13 -777,18 +782,20 @@@ well, and a weekly job on a home serve
message and also exits 1, so set it in the job line, as above, where cron does not inherit it from
your shell.
+ The job only gets an answer from a TV that keeps network ADB listening between runs and has
+ accepted "Allow USB debugging?" for the computer that runs it with "Always allow from this computer"
+ ticked: without the tick the TV asks again at every run, and with nobody there to accept, the run
+ exits 2. A port left listening is the one [Isn't ADB access a security hole?](#questions-people-ask)
+ says to close, since anything on the network can reach it. With ADB closed as described there,
+ every run exits 2: run the check by hand after an update instead, with ADB opened again as above.
+
`--fix` reapplies the list to what drifted: it switches Home to the launcher the list does not
disable (pass a package as the second argument if you run a fork), then disables the listed packages
-that came back, and reads the TV back to confirm both. It writes no recovery record, because the
-record already holds the state from before the first run: `tools/restore.sh` still returns the TV to
-stock afterwards. Home is fixed first; if no launcher is left to take it, `--fix` changes nothing
+that came back, and reads the TV back to confirm both. It never writes a recovery record of its own,
+because only the first run's record holds the state from before cleanup. When there is one, `--fix`
+first adds to it what a second `tools/disable.sh` run would (names the list gained, and a package that
+was not installed then and is installed and enabled now), so `tools/restore.sh` still returns the TV
+to stock afterwards. Home is fixed first; if no launcher is left to take it, `--fix` changes nothing
and says so.
It runs the same safety checks as `tools/disable.sh` before it disables anything, since an update is