Android fastboot waiting for devices
Solution 1
The short version of the page linked by D Shu (and without the horrible popover ads) is that this "waiting for device" problem happens when the USB device node is not accessible to your current user. The USB id is different in fastboot mode, so you can easily have permission to it in adb but not in fastboot.
To fix it (on Ubuntu; other systems may be slightly different):
Run lsusb -v | less and find the relevant section which will look something like this:
Bus 001 Device 027: ID 18d1:4e30 Google Inc.
Couldn't open device, some information will be missing
Device Descriptor:
...
idVendor 0x18d1 Google Inc.
Now do
sudo vi /etc/udev/rules.d/11-android.rules
it's ok if that file does not yet exist; create it with a line like this, inserting your own username and vendor id:
SUBSYSTEMS=="usb", ATTRS{idVendor}=="18d1", MODE="0640", OWNER="mbp"
then
sudo service udev restart
then verify the device node permissions have changed:
ls -Rl /dev/bus/usb
The even shorter cheesy version is to just run fastboot as root. But then you need to run every command that talks to the device as root, which tends to cause other complications. Simpler just to fix the permissions in the long run.
Solution 2
Just use sudo, fast boot needs Root Permission
Solution 3
To use the fastboot command you first need to put your device in fastboot mode:
$ adb reboot bootloader
Once the device is in fastboot mode, you can boot it with your own kernel, for example:
$ fastboot boot myboot.img
The above will only boot your kernel once and the old kernel will be used again when you reboot the device. To replace the kernel on the device, you will need to flash it to the device:
$ fastboot flash boot myboot.img
Hope that helps.
Solution 4
try to use compiler generated fastboot when this happes.
the file path is out/host/linux(or other)/bin/fastboot
and sudo is also needed.
it works in most of the time.
Solution 5
On your device Go To Settings -> Dev Settings, And Select "Allow OEM Unlock" As shown on Unlock Your Bootloader
At least this worked for me on my MotoE 4G.
Related videos on Youtube
codereviewanskquestions
Updated on July 05, 2022Comments
-
codereviewanskquestions 6 monthsI am trying to load a customized kernel on my NVIDIA test git. I typed
fastboot boot myImageafter which which I get:<Waiting for device>I think this is a problem with a driver on
fastbootmode on my device. But I don't know how to install the driver on linux.Do you guys know how to install the driver?
-
phoad over 7 yearsTry running with sudo. sudo ${which fastboot} devices wiki.cyanogenmod.org/w/UDEV -
melissa_boiko about 3 yearsNote for people web searching this error message—if you get this message with a Samsung device, use heimdall rather than fastboot.
-
-
poolie over 9 yearsIt does not need root permission, it only needs to be able to access the USB device. -
Marian about 9 yearsThat answer is not helpful at all. Obviously the person asking knows that, because they already did execute that exact command. -
Derek Gogol about 9 yearsTo successfully execute fastboot boot myboot.img command from console, the device needs to be in fastboot mode, and that's what I wanted to point out. Even if this doesn't help the person that asked the question, it probably will help someone else. -
Mala over 8 yearsthis is exactly what i was stuck at for the past hour or so. Thanks! -
abjbhat over 8 yearsThis worked for me. I just did adb reboot bootloader and then fastboot devices started to show the device connected. -
espinchi over 8 yearsIt actually does! You can also find this tip in wiki.cyanogenmod.org/w/… -
espinchi over 8 years+1 for the shorter cheesy version. +2 if you put that last line on top -
Benjamin Podszun over 8 yearsIt actually doesn't. A random wiki (i.e. something everyone can edit) doesn't change that. It needs to be able to access the USB device. It doesn't need root for that (though having root usually implies that it can access the USB device..) -
Klik almost 8 yearsYou should definitely put that last line on top. -
airtonix over 7 yearsbtw, no one likes using vi... just usesudo nano filenameinstead. -
orblivion over 7 yearsWell some of us don't like to run things as root willy nilly :P But,sudo service udev restartdid not work, the permissions did not change. Poking around on the Internets ( bbs.archlinux.org/viewtopic.php?id=169103 ) the following worked for me:udevadm control --reloadFollowed by:udevadm trigger -
Juan Carlos Alpizar Chinchilla over 7 years@BenjaminPodszun actually it does need root permission, I don't know whether it changes or not depending on OS, but running Fedora 22 just typing afastboot commandwill get the 'waiting for device', but typingsudo fastboot commandwill actually execute the command. The fact you need to change the access to the user is because it's owned by a different user, which is whatsudodoes, escalate user permissions as long as they're on the sudoers group. Source? I just tried it a couple minutes ago -
Benjamin Podszun over 7 years@JuanCarlosAlpizarChinchilla you confuse things. No, you don't need root access. You just need access to the usb device. I don't know about Fedora specifically, but you do not need root. The right way to solve the issue would be to a) check the permissions on the usb device and add you to the group that has access (most likely) or b) change the udev rules to grant you access. You need access to a file/device, you don't need to run stuff with the most privileges your computer might grant. You can run sudo firefox, but you shouldn't. You can run sudo fastboot, but you shouldn't and don't need to -
Sparr about 7 yearssadly I'm at a point whereadb reboot bootloaderworks fine, butfastboot [anything]still gets stuck at waiting for device -
netvision73 about 7 yearsNeeded root for me, Debian 8.1 on a LG G4. -
Admin about 7 yearsbtw, no one likes vi... just usesudo vim filenameinstead. @airtonix -
poolie almost 7 yearsWho has a non-vim vi? :P -
gihanchanuka almost 7 yearsifsudo fastboot oem unlockisn't working, login as root withsudo -s, then runfastboot oem unlock. Worked for me on Ubuntu-14.04 x64. -
Saahithyan Vigneswaran over 5 yearsand you have to enableusb debuggingin your android phone -
mschilli almost 5 yearsJust my 2ct regarding thesudo vidiscussion: I foundsudoeditto usually do just what you want. And of course in my.zshrcit saysexport EDITOR=nvim. ;-) -
Allexj over 4 yearsyou just need to execute with SUDO -
anutter over 2 years@BenjaminPodszun Is completely wrong.sudois an impersonation of root, not root.sudois used almost everywhere in Linux, for almost every command, it's designed to work that way. Stop confusingsudowithsu. -
Benjamin Podszun over 2 years@anutter You're missing the point entirely and .. are completely wrong. Neither su nor sudo are required, file system access to the USB device is. Fastboot doesn't need more. Your point is completely irrelevant (and confusing. If I use sudo to execute something impersonating root, that still means I get - limited - root access. Fastboot doesn't need root permissions). -
anutter over 2 years@BenjaminPodszun I didn't use fastboot 5 years ago, I used it this week. And that's irrelevant to the fact that you are giving misinformation based on your lack of understanding of fundamental Linux operations.sudois a temporary elevation used to run commands on a program owned by root. The udev file changes you suggest are permanent. So your method is actually less secure.chownandchmodare certainly more dangerous in hands of less experienced users than a temporarysudo.