Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

fastboot and adb not working with sudo

I have a very weird issue on my Ubuntu machine when trying to run the fastboot command.

When I run:

fastboot devices

I get

no permissions   fastboot

So I run the command with adminidtrator permissions:

sudo fastboot devices

And then I get the result

sudo: fastboot: command not found

How can this be? I have the directory in my PATH and everything works correctly without sudo.

like image 886
Guy Sopher Avatar asked Nov 19 '14 12:11

Guy Sopher


People also ask

Can use adb but not fastboot?

Since adb is working, do an adb reboot bootloader and it'll then boot into fastboot. If you can't get a return on fastboot devices at this point, it could be you haven't oem unlocked your phone yet. I ran adb reboot bootloader from pc to boot phone into fastboot.

Why my device is not detected in fastboot mode?

If Fastboot is still not detecting your Android phone, right-click on “Android” and choose “Update Driver” -> “Browse my computer for drivers” -> “Let me pick from a list of available drivers on my computer”. 6. After that, double-click on “Android Phone“.

How do I use a fastboot device with ADB?

Fastboot works the same way as ADB, except you need to boot your phone into Fastboot mode instead of Android. You normally do this by holding a combination of the power and volume keys when turning on the phone. Alternatively, use ADB and type adb reboot bootloader. After that it's the same.


1 Answers

You can use

sudo $(which fastboot) devices

like image 137
Machado Avatar answered Sep 29 '22 06:09

Machado