Check device manager - what device pops uo when you connect with fastboot?
echo "Searching device to flash.." IFS=$'\n' FASTBOOTCMD_NO_DEVICE="${FASTBOOT_BIN_PATH}${FASTB OOT_BIN_NAME}" FASTBOOT_DEVICES=$($FASTBOOTCMD_NO_DEVICE devices |cut -d$'\t' -f1) if [ -z "$FASTBOOT_DEVICES" ]; then echo "No device that can be flashed found. Please connect your device in fastboot mode before running this script." exit 1 fi SERIALNUMBERS= count=0 for SERIALNO in $FASTBOOT_DEVICES; do PRODUCT=$($FASTBOOTCMD_NO_DEVICE -s $SERIALNO getvar product 2>&1 | head -n1 | cut -d ' ' -f2) BASEBAND=$($FASTBOOTCMD_NO_DEVICE -s $SERIALNO getvar version-baseband 2>&1 | head -n1 | cut -d ' ' -f2) BOOTLOADER=$($FASTBOOTCMD_NO_DEVICE -s $SERIALNO getvar version-bootloader 2>&1 | head -n1 | cut -d ' ' -f2) echo "Found $PRODUCT, baseband:$BASEBAND, bootloader:$BOOTLOADER" if [ ! -z "$(echo $PRODUCT | grep -e "H9436" -e "H9436")" ]; then SERIALNUMBERS="$SERIALNO $SERIALNUMBERS" ((++count)) fi done IFS=" " echo "Found $count devices: $SERIALNUMBERS"