Skip to content

Commit

Permalink
Modify get_fastboot_path() to allow for custom binaries (#4518)
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()`.
  • Loading branch information
marktefftech authored Dec 18, 2024
1 parent 6c26da1 commit c207151
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 c207151

Please sign in to comment.