Lines Matching refs:adb_cmd
69 # If ADB_CMD is not defined, try to find a program named 'adb'
71 ADB_CMD=${ADB_CMD:-$(find_program adb)}
307 echo " --adb=<file> Use specific adb command [$ADB_CMD]"
331 ADB_CMD=$OPTION_ADB
332 log "Using specific adb command: $ADB_CMD"
334 if [ -z "$ADB_CMD" ] ; then
340 log "Using default adb command: $ADB_CMD"
343 ADB_CMD=$(quote_spaces $ADB_CMD)
344 ADB_VERSION=$("$ADB_CMD" version 2>/dev/null)
346 echo "ERROR: Could not run ADB with: $ADB_CMD"
362 adb_cmd ()
365 "$ADB_CMD" $ADB_FLAGS "$@"
367 # NOTE: We escape $ADB_CMD and $DEVICE_SERIAL in case they contains spaces.
368 "$ADB_CMD" $ADB_FLAGS "$DEVICE_SERIAL" "$@"
387 adb_cmd shell "$@" ";" echo \$? | sed -e 's![[:cntrl:]]!!g' > $CMD_OUT 2>&1
389 adb_cmd shell "$@" ";" echo \$? | sed -e 's![[:cntrl:]]!!g' > $CMD_OUT
428 adb_cmd shell ps | $AWK_CMD -f $AWK_SCRIPTS/extract-pid.awk -v PACKAGE="$1"
508 ADB_TEST=`adb_cmd shell ls`
649 run adb_cmd shell am start $OPTION_WAIT -n $PACKAGE_NAME/$OPTION_LAUNCH
657 run adb_cmd shell sleep $DELAY
687 run adb_cmd shell kill -9 $GDBSERVER_PID
692 run adb_cmd shell run-as $PACKAGE_NAME lib/gdbserver +$DEBUG_SOCKET --attach $PID &
701 run adb_cmd forward tcp:$DEBUG_PORT localfilesystem:$DATA_DIR/$DEBUG_SOCKET
710 run adb_cmd pull /system/bin/app_process `native_path $APP_PROCESS`
713 run adb_cmd pull /system/bin/linker `native_path $APP_OUT/linker`
716 run adb_cmd pull /system/lib/libc.so `native_path $APP_OUT/libc.so`
723 run adb_cmd forward tcp:$JDB_PORT jdwp:$PID