MCPcopy Create free account
hub / github.com/HexHive/NASS / execute_command

Function execute_command

adb.py:188–196  ·  view source on GitHub ↗

Executes the given command on the device. If given, device_id is passed to adb -s option

(cmd, device_id, wait_for_termination=True, timeout=None)

Source from the content-addressed store, hash-verified

186
187
188def execute_command(cmd, device_id, wait_for_termination=True, timeout=None):
189 """Executes the given command on the device. If given, device_id is passed to adb -s option"""
190 out, err = call_adb(
191 ["shell", "{}".format(cmd)],
192 device_id=device_id,
193 wait_for_termination=wait_for_termination,
194 timeout=timeout,
195 )
196 return out, err
197
198
199def list_devices():

Callers

nothing calls this directly

Calls 1

call_adbFunction · 0.85

Tested by

no test coverage detected