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)
| 186 | |
| 187 | |
| 188 | def 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 | |
| 199 | def list_devices(): |
nothing calls this directly
no test coverage detected