(adb_command)
| 17 | |
| 18 | |
| 19 | def execute_adb(adb_command): |
| 20 | # print(adb_command) |
| 21 | result = subprocess.run(adb_command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True) |
| 22 | if result.returncode == 0: |
| 23 | return result.stdout.strip() |
| 24 | print_with_color(f"Command execution failed: {adb_command}", "red") |
| 25 | print_with_color(result.stderr, "red") |
| 26 | return "ERROR" |
| 27 | |
| 28 | |
| 29 | def list_all_devices(): |
no test coverage detected