Skip to content

Commit

Permalink
Modify get_fastboot_path() to allow for custom binaries (#4518) (#4543)
Browse files Browse the repository at this point in the history
Custom binaries are often used emulators (i.e. the binary being used by
the host).

This code follows the same strategy used for the ADB binary above in
`get_adb_path()`.

Cherry pick: #4518

Co-authored-by: Mark Teffeteller <[email protected]>
  • Loading branch information
jonathanmetzman and marktefftech authored Dec 26, 2024
1 parent b2bbe59 commit 2a8afa6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/clusterfuzz/_internal/platforms/android/adb.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,10 @@ def get_fastboot_command_line(fastboot_cmd):

def get_fastboot_path():
"""Return path to fastboot binary."""
fastboot_path = environment.get_value('FASTBOOT')
if fastboot_path:
return fastboot_path

return os.path.join(environment.get_platform_resources_directory(),
'fastboot')

Expand Down

0 comments on commit 2a8afa6

Please sign in to comment.