Lines Matching refs:adb
34 "$ADB" shell rm "$TARGET_GDBSERVER" >/dev/null 2>&1
62 DEFAULT_PULL_LIBS_DIR=/tmp/$USER-adb-gdb-libs
81 ADB=
109 --adb=*)
110 ADB=$optarg
266 You will also need the 'adb' tool in your path. Otherwise, use the --adb
308 --adb=<program> Specify host ADB binary.
310 --su-prefix=<prefix> Prepend <prefix> to 'adb shell' commands that are
567 # Check that ADB is in our path
568 if [ -z "$ADB" ]; then
569 ADB=$(which adb 2>/dev/null)
570 if [ -z "$ADB" ]; then
571 panic "Can't find 'adb
572 --adb=<file>"
574 log "Auto-config: --adb=$ADB"
578 ADB_VERSION=$($ADB version 2>/dev/null)
581 panic "Your 'adb' tool seems invalid, use --adb=<file> to specify a \
582 different one: $ADB"
587 NUM_DEVICES_PLUS2=$($ADB devices 2>/dev/null | wc -l)
589 echo "ERROR: There is more than one Android device connected to ADB."
600 TMPDIR=/tmp/$USER-adb-gdb-tmp-$TMP_ID
605 # Run a command through adb shell, strip the extra \r from the output
607 # that the adb shell command prints a final \n to stdout.
615 local ADB=${ADB:-adb}
618 # Since 'adb shell' never returns the command's proper exit/status code,
621 $ADB shell $@ ";" echo "%%\$?" 2>/dev/null | \
722 TARGET_GDBSERVER=/data/local/tmp/gdbserver-adb-gdb-$TMP_ID
822 # Determine if 'adb shell' runs as root or not.
832 echo "$ adb shell $SU_PREFIX echo foo"
838 SHELL_UID=$(adb shell cat /proc/self/status | \
870 mkdir -p "$DST_DIR" && adb pull $SYSLIB "$DST_FILE" 2>/dev/null
874 adb pull /system/build.prop $PULL_LIBS_DIR/build.prop
890 adb push $GDBSERVER $TARGET_GDBSERVER &>/dev/null
900 adb pull /system/bin/$GDBEXEC "$TMPDIR"/$GDBEXEC &>/dev/null
905 adb forward tcp:$HOST_PORT tcp:$TARGET_PORT
918 log "adb shell $COMMAND_PREFIX $TARGET_GDBSERVER :$TARGET_PORT \
920 ("$ADB" shell $COMMAND_PREFIX $TARGET_GDBSERVER :$TARGET_PORT \