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

Function list_all_devices

scripts/and_controller.py:29–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27
28
29def list_all_devices():
30 adb_command = "adb devices"
31 device_list = []
32 result = execute_adb(adb_command)
33 if result != "ERROR":
34 devices = result.split("\n")[1:]
35 for d in devices:
36 device_list.append(d.split()[0])
37
38 return device_list
39
40
41def get_id_from_element(elem):

Callers 3

task_executor.pyFile · 0.90
step_recorder.pyFile · 0.90
self_explorer.pyFile · 0.90

Calls 1

execute_adbFunction · 0.85

Tested by

no test coverage detected