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:
parent
3f9ce8ba73
commit
c347861db4
@ -476,7 +476,8 @@ class AdbConnection(ConnectionBase):
|
|||||||
|
|
||||||
def fastboot_command(command, timeout=None, device=None):
|
def fastboot_command(command, timeout=None, device=None):
|
||||||
target = '-s {}'.format(quote(device)) if device else ''
|
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)
|
logger.debug(full_command)
|
||||||
output, _ = check_output(full_command, timeout, shell=True)
|
output, _ = check_output(full_command, timeout, shell=True)
|
||||||
return output
|
return output
|
||||||
|
Loading…
x
Reference in New Issue
Block a user