MCPcopy Index your code
hub / github.com/TencentQQGYLab/AppAgent / execute_adb

Function execute_adb

scripts/and_controller.py:19–26  ·  view source on GitHub ↗
(adb_command)

Source from the content-addressed store, hash-verified

17
18
19def 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
29def list_all_devices():

Callers 10

list_all_devicesFunction · 0.85
get_device_sizeMethod · 0.85
get_screenshotMethod · 0.85
get_xmlMethod · 0.85
backMethod · 0.85
tapMethod · 0.85
textMethod · 0.85
long_pressMethod · 0.85
swipeMethod · 0.85
swipe_preciseMethod · 0.85

Calls 1

print_with_colorFunction · 0.90

Tested by

no test coverage detected