Execute ADB shell command asynchronously. Args: command: Shell command to execute. Returns: str or None: Command output or None on failure.
(self, command: str)
| 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 |
no test coverage detected