mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +00:00
android/background: Specify the device for background cmds
Ensure the device is passed when executing a background command.
This commit is contained in:
parent
bc9478c324
commit
00f3f5f690
@ -574,7 +574,7 @@ def adb_background_shell(conn, command,
|
|||||||
uuid_var = 'BACKGROUND_COMMAND_UUID={}'.format(uuid_)
|
uuid_var = 'BACKGROUND_COMMAND_UUID={}'.format(uuid_)
|
||||||
command = "{} sh -c {}".format(uuid_var, quote(command))
|
command = "{} sh -c {}".format(uuid_var, quote(command))
|
||||||
|
|
||||||
adb_cmd = get_adb_command(None, 'shell', adb_server)
|
adb_cmd = get_adb_command(device, 'shell', adb_server)
|
||||||
full_command = '{} {}'.format(adb_cmd, quote(command))
|
full_command = '{} {}'.format(adb_cmd, quote(command))
|
||||||
logger.debug(full_command)
|
logger.debug(full_command)
|
||||||
p = subprocess.Popen(full_command, stdout=stdout, stderr=stderr, shell=True)
|
p = subprocess.Popen(full_command, stdout=stdout, stderr=stderr, shell=True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user