fastboot not detect my android device - ubuntu

Solution 1:

Maybe this question can help you...

Try using sudo $(which fastboot)

for instance sudo $(which fastboot) devices

Of course, if it's still actually at the moment...

Solution 2:

I had two problems that were similar (running Ubuntu 16.04 with platform-tools r31.0.3 installed manually).

First it was with permissions:

Adding udev rules halfway through added confusion for me. Later I found out I never was properly reloading the udev rules. Restarting the udev.service does not work. I had to: udevadm control --reload then udevadm trigger as found here: https://askubuntu.com/a/820714/867229

And again, if this is done halfway through you also have to: adb kill-server before trying adb devices again.

The set of udev rules that I copied from a recent .deb package had me covered; however on a side note I found that my device has different vendor ID's when mounted normally versus when it is in fastboot.

Then I could: adb reboot bootloader but fastboot devices would not return my device and I never resolved that problem (which was the second issue); however this post helped me (actually the original poster has covered this already in their question):

https://android.stackexchange.com/a/81795/357052

I found that fastboot could still communicate to the device and I could issue commands but I would always have to specify the device via the -i option. For example: fastboot -i 0xVENDOR_ID getvar WHATEVER

No need for sudo or sudo $(which fastboot) for me at least.