Index: platform_tools/android/bin/utils/setup_adb.sh |
diff --git a/platform_tools/android/bin/utils/setup_adb.sh b/platform_tools/android/bin/utils/setup_adb.sh |
index e59b43c335bf69268604e32ea90e75b54c2b5c56..87dcb0f03114ecf06016623d3669a2bc9adcf345 100644 |
--- a/platform_tools/android/bin/utils/setup_adb.sh |
+++ b/platform_tools/android/bin/utils/setup_adb.sh |
@@ -5,6 +5,12 @@ |
UTIL_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
+if [ $PYADB ] && [ -a "$PYADB" ]; then |
+ echo "Python ADB detected, going to use that" |
+ ADB="python ${PYADB}" |
+ return |
+fi |
+ |
if [ "$(which adb)" != "" ]; then |
ADB="$(which adb)" |
elif [ -d "$ANDROID_SDK_ROOT" ]; then |