mirror of
				https://github.com/ARM-software/devlib.git
				synced 2025-11-04 07:51:21 +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:
		@@ -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)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user