Add support for pyadb to setup_adb.sh
authorkjlubick <kjlubick@google.com>
Thu, 7 Apr 2016 17:57:27 +0000 (10:57 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 7 Apr 2016 17:57:27 +0000 (10:57 -0700)
BUG=skia:5156
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1869813002

Review URL: https://codereview.chromium.org/1869813002

platform_tools/android/bin/utils/setup_adb.sh

index e59b43c..87dcb0f 100644 (file)
@@ -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