Skip to content

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

Merge PR #1568: tools: check.py exits 2, not 1 with a traceback, when ADB times out or authorisation fails

Gathin23005026fa0a55
diff --cc tools/check.py
index 48e1a0a89,3b0098a37..809c294b6
--- a/tools/check.py
+++ b/tools/check.py
@@@ -20,9 -20,8 +20,10 @@@ moment those come back into play: the u
owns, and a fix that skipped the checks would take that TV off Wi-Fi with no way back in.
Exit codes: 0 in sync (or fixed), 1 drift, an incomplete fix, or packages a safety check left on,
- 2 the TV or the list could not be read, or the command line asked for something this script does not
- do. That last one matters: README.md tells an owner to run this from a weekly job and hear about it
- on exit 1, so a mistyped flag must not come back as drift.
-2 the TV could not be read, which includes ADB timing out or failing partway (after which a --fix
-may be partial, and the next check says what is left).
++2 the TV or the list could not be read, which includes ADB timing out or failing partway (after which a
++--fix may be partial, and the next check says what is left), or the command line asked for something this
++script does not do. That last one matters: README.md tells an owner to run this from a weekly job and hear
++about it on exit 1, so a mistyped flag must not come back as drift.
"""
import os
import re