tools: Fix Hermetic ADB Path
Due to the leading '/' in the hermetic adb path, python will interpert
this as an absolute path. The underlying os.path.join() will not behave
as expected if you try to concatinate this with the repo root, since
both are seen as absolute paths.
Instead, drop the leading slash to make it clear to python that this
is a relative path, and not an absolute path.
Change-Id: I446ab529207dd39b98755b7836aa0636fed0cb4c
diff --git a/python/tools/record_android_trace.py b/python/tools/record_android_trace.py
index ed62c7e..9256bd8 100644
--- a/python/tools/record_android_trace.py
+++ b/python/tools/record_android_trace.py
@@ -33,7 +33,7 @@
# This is not required. It's only used as a fallback if no adb is found on the
# PATH. It's fine if it doesn't exist so this script can be copied elsewhere.
-HERMETIC_ADB_PATH = repo_dir('/buildtools/android_sdk/platform-tools/adb')
+HERMETIC_ADB_PATH = repo_dir('buildtools/android_sdk/platform-tools/adb')
# Translates the Android ro.product.cpu.abi into the GN's target_cpu.
ABI_TO_ARCH = {