From c207151810b3b12904530623e32b408a03f32815 Mon Sep 17 00:00:00 2001 From: Mark Teffeteller Date: Tue, 17 Dec 2024 16:02:16 -0800 Subject: [PATCH] Modify get_fastboot_path() to allow for custom binaries (#4518) 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()`. --- src/clusterfuzz/_internal/platforms/android/adb.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/clusterfuzz/_internal/platforms/android/adb.py b/src/clusterfuzz/_internal/platforms/android/adb.py index b406bf2799..405a8366ac 100755 --- a/src/clusterfuzz/_internal/platforms/android/adb.py +++ b/src/clusterfuzz/_internal/platforms/android/adb.py @@ -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')