At the moment I would like to reinstall Android on my device(custom hardware device). I got the image files after building. But when I enter fastboot devices
nothing returns.
adb devices
is working. It return my device. fastboot flashall -w
is also not working. I returns <waiting for devices>
and stays like that until I exit.
So the 70-android.rules.d file is right. I have also set ANDROID_PRODUCT_OUT. But someone knows why fastboot does not see my device, but adb does?
Restarting udev or adb does not work. Some people recommend that on the internet.
OS: Ubuntu 11.10
Are you rebooting the device into the bootloader and entering fastboot USB on the bootloader menu?
Try
adb reboot bootloader
then look for on screen instructions to enter fastboot mode.
thank you. that worked great for me... from the windows cmd line
E:\dev\android-sdk-windows\platform-tools>adb devices
List of devices attached
0123456789ABCDEF device
E:\dev\android-sdk-windows\platform-tools>fastboot devices
E:\dev\android-sdk-windows\platform-tools>adb reboot bootloader
waited for the tablet to reboot...
E:\dev\android-sdk-windows\platform-tools>fastboot devices
mt6582_phone fastboot
I had the same issue, but I was running Ubuntu 12.04 through a VM. I am using a Nexus 10. I had added the usb device as a filter for the VM (using virtual box in the virtual machine's settings).
The device I had added was "samsung Nexus 10".
The problem is that once the device is in fastboot mode, it shows up as a different device: "Google, Inc Android 1.0." So doing "lsusb" in the VM showed no device connected, and obviously "fastboot devices" returned nothing until I added the "second" device as a filter for the VM as well.
Hope this helps someone.
If you got nothing when inputted fastboot devices
, it meaned you devices fail to enter fastboot model. Make sure that you enter fastboot model via press these three button simultaneously, power key, volume key(both '+' and '-').
Then you can see you devices via fastboot devices
and continue to flash your devices.
note:I entered fastboot model only pressed 'power key' and '-' key before, and present the same problem.
TLDR - In addition to the previous responses. There might be a problem with the version of the fastboot
command. Try to download the newest one via Android SDK Manager instead of default one available in the OS repository.
There is one more thing you can do to fix this issue. I had the similar problem when trying to flash Nexus Player. All the adb commands we working fine while in normal boot mode. However, after switching to fastboot mode I wasn't able to execute fastboot commands. My device was not visible in the output of the fastboot devices
command. I've set the right rules in /etc/udev/rules.d/11-android.rules file. The lsusb
command showed that the device has been pluged in.
The soultion was quite simple. I've downloaded the the fastboot
via Android Studio's SDK Manager instead of using the default one available in Ubuntu packages.
All you need is sdkmanager. Download the Android SDK Platform Tools and replace the default /usr/bin/fastboot with the new one.
You must run fastboot as root. Try sudo fastboot