fix: the Debugging tools hint points to Setup > Diagnostics (#725)

This commit is contained in:
Kirk authored and GitHub committed 2026-10-13 15:01:40 -04:00
1 parent fc9d4d0646
commit 6e5be862cd
5 files changed
+13 -5

No files matched your search

+1 -1
View File
@@ -300,7 +300,7 @@ def start_session(adb: str, serial: str, request: dict) -> dict:
def require_commands(adb: str, serial: str) -> dict:
access = checked(provider_call(adb, serial, "access"), "ACCESS_FAILED")
if access.get("commands") is not True:
raise ControlError("Debugging tools are off: turn on Setup > Session > Debugging tools on the device",
raise ControlError("Debugging tools are off: turn on Setup > Diagnostics > Debugging tools on the device",
"AGENT_COMMANDS_DISABLED")
return access
+1 -1
View File
@@ -193,7 +193,7 @@ class DroiddeckctlTest(FakeAdbTest):
code, out = self.run_ctl("run", "/usr/bin/sh", "--", "-c", "true")
self.assertEqual(7, code)
self.assertEqual("AGENT_COMMANDS_DISABLED", out["error"]["code"])
self.assertIn("Debugging tools", out["error"]["message"])
self.assertIn("Setup > Diagnostics > Debugging tools", out["error"]["message"])
self.assertEqual(["access"], [c.get("method") for c in self.calls()])
def test_override_checks_names_before_pushing_any_file(self):