MCPcopy Create free account
hub / github.com/SkyworkAI/DeepResearchAgent / shell

Method shell

src/environment/mobile/adb.py:258–272  ·  view source on GitHub ↗

Execute ADB shell command asynchronously. Args: command: Shell command to execute. Returns: str or None: Command output or None on failure.

(self, command: str)

Source from the content-addressed store, hash-verified

256 return ""
257
258 async def shell(self, command: str) -> Optional[str]:
259 """
260 Execute ADB shell command asynchronously.
261
262 Args:
263 command: Shell command to execute.
264
265 Returns:
266 str or None: Command output or None on failure.
267 """
268 try:
269 return await asyncio.get_event_loop().run_in_executor(None, self.device.shell, command)
270 except Exception as e:
271 print(f"Command '{command}' failed: {e}")
272 return None

Callers 15

check_activityMethod · 0.95
tapMethod · 0.95
key_eventMethod · 0.95
pressMethod · 0.95
swipeMethod · 0.95
type_textMethod · 0.95
clearMethod · 0.95
scrollMethod · 0.95
wake_upMethod · 0.95
unlock_screenMethod · 0.95
open_appMethod · 0.95
close_appMethod · 0.95

Calls 1

printFunction · 0.85

Tested by

no test coverage detected