Skip to content

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

Merge PR #1092: disable.sh/disable.ps1/check.py: keep the apps that open the inputs and Settings

Gathin23d9c7bc03e46d
diff --cc tests/test_home_guard.py
index 7f4ff13a4,fd48c0a8a..f39d209fa
--- a/tests/test_home_guard.py
+++ b/tests/test_home_guard.py
@@@ -55,9 -51,10 +55,10 @@@ def answer(command)
return "".join(f"package:{name}\n" for name in state["installed"])
if command == "pm list packages -d":
return "".join(f"package:{name}\n" for name in state["disabled"])
- if command.startswith("cmd package query-activities"):
+ # Only the HOME query: the input/Settings handler guard asks the same command for other intents.
+ if command.startswith("cmd package query-activities") and "category.HOME" in command:
if state["claims_fail"]:
- sys.exit(1)
+ raise Fail()
return "".join(f" {c if '/' in c else c + '/.MainActivity'}\n" for c in state["claims"])
if command.startswith("cmd package resolve-activity"):
if state["home_fails"]: