From 6dac563824388a35e94aed59d7e50401dd2c3309 Mon Sep 17 00:00:00 2001 From: Mark Date: Tue, 17 Dec 2024 23:29:59 +0000 Subject: [PATCH] Modify get_fastboot_path() to allow for custom binaries --- 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')