Executes a shell command via ADB.
(command: List[str])
| 18 | |
| 19 | |
| 20 | def run_adb_command(command: List[str]) -> str: |
| 21 | """Executes a shell command via ADB.""" |
| 22 | result = subprocess.run( |
| 23 | [Config.ADB_PATH] + command, |
| 24 | capture_output=True, |
| 25 | text=True |
| 26 | ) |
| 27 | if result.stderr and "error" in result.stderr.lower(): |
| 28 | print(f"❌ ADB Error: {result.stderr.strip()}") |
| 29 | return result.stdout.strip() |
| 30 | |
| 31 | |
| 32 | def execute_action(action: Dict[str, Any]) -> None: |
no outgoing calls
no test coverage detected