1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-01-31 02:00:45 +00:00

android: Ensure we use the detected fastboot

Use fastboot as detected by _AndroidEnvironment instead of whatever
binary is in PATH.
This commit is contained in:
Douglas Raillard 2024-01-15 16:38:33 +00:00 committed by Marc Bonnici
parent 3f9ce8ba73
commit c347861db4

View File

@ -476,7 +476,8 @@ class AdbConnection(ConnectionBase):
def fastboot_command(command, timeout=None, device=None):
target = '-s {}'.format(quote(device)) if device else ''
full_command = 'fastboot {} {}'.format(target, command)
bin_ = _ANDROID_ENV.get_env('fastboot')
full_command = f'{bin} {target} {command}'
logger.debug(full_command)
output, _ = check_output(full_command, timeout, shell=True)
return output