[英]Android Fastboot devices not returning device
At the moment I would like to reinstall Android on my device(custom hardware device). 目前,我想在我的设备(自定义硬件设备)上重新安装Android。 I got the image files after building. 构建后我得到了图像文件。 But when I enter fastboot devices
nothing returns. 但是当我进入fastboot devices
什么也没有返回。
adb devices
is working. adb devices
正在运行。 It return my device. 它返回我的设备。 fastboot flashall -w
is also not working. fastboot flashall -w
也不起作用。 I returns <waiting for devices>
and stays like that until I exit. 我返回<waiting for devices>
并一直停留到退出。
So the 70-android.rules.d file is right. 因此70-android.rules.d文件是正确的。 I have also set ANDROID_PRODUCT_OUT. 我还设置了ANDROID_PRODUCT_OUT。 But someone knows why fastboot does not see my device, but adb does?
Restarting udev or adb does not work. 重新启动udev或adb无效。 Some people recommend that on the internet. 有人在互联网上推荐。
OS: Ubuntu 11.10 操作系统:Ubuntu 11.10
Are you rebooting the device into the bootloader and entering fastboot USB on the bootloader menu? 您是否正在将设备重新引导到引导加载程序中,并在引导加载程序菜单上输入fastboot USB?
Try 尝试
adb reboot bootloader
then look for on screen instructions to enter fastboot mode. 然后查找屏幕说明以进入快速启动模式。
For Windows: 对于Windows:
thank you. 谢谢。 that worked great for me... from the windows cmd line 对我来说很棒...从Windows cmd行
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. 我有同样的问题,但是我正在通过VM运行Ubuntu 12.04。 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). 我使用的是Nexus10。我已将USB设备添加为VM的过滤器(使用虚拟机设置中的虚拟框)。
The device I had added was "samsung Nexus 10". 我添加的设备是“三星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." 问题在于,一旦设备进入快速启动模式,它就会显示为其他设备:“ 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. 因此,在VM中执行“ lsusb”显示未连接任何设备,显然,“ fastboot设备”什么也没有返回,直到我也添加了“第二”设备作为VM的筛选器。
Hope this helps someone. 希望这对某人有帮助。
You must run fastboot as root. 您必须以root用户身份运行fastboot。 Try sudo fastboot
尝试sudo fastboot
TLDR - In addition to the previous responses. TLDR-除了以前的回复。 There might be a problem with the version of the fastboot
command. fastboot
命令的版本可能存在问题。 Try to download the newest one via Android SDK Manager instead of default one available in the OS repository. 尝试通过Android SDK Manager下载最新版本,而不是通过OS存储库中的默认版本下载。
There is one more thing you can do to fix this issue. 您还可以做一件事来解决此问题。 I had the similar problem when trying to flash Nexus Player. 尝试刷新Nexus Player时遇到类似的问题。 All the adb commands we working fine while in normal boot mode. 在正常启动模式下,我们所有的adb命令都可以正常工作。 However, after switching to fastboot mode I wasn't able to execute fastboot commands. 然而,切换到FASTBOOT模式后,我是不是能够执行FASTBOOT命令。 My device was not visible in the output of the fastboot devices
command. 我的设备在fastboot devices
命令的输出中不可见。 I've set the right rules in /etc/udev/rules.d/11-android.rules file. 我已经在/etc/udev/rules.d/11-android.rules文件中设置了正确的规则。 The lsusb
command showed that the device has been pluged in. lsusb
命令显示设备已插入。
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. 我已经通过Android Studio的SDK Manager下载了fastboot
,而不是使用Ubuntu软件包中提供的默认启动。
All you need is sdkmanager . 您只需要sdkmanager即可 。 Download the Android SDK Platform Tools and replace the default /usr/bin/fastboot with the new one. 下载Android SDK平台工具,并用新的替换默认的/ usr / bin / fastboot 。
If you got nothing when inputted fastboot devices
, it meaned you devices fail to enter fastboot model. 如果在输入fastboot devices
时一无所获,则意味着您的设备无法进入fastboot模式。 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. 然后,您可以通过fastboot devices
查看fastboot devices
并继续刷新设备。
note:I entered fastboot model only pressed 'power key' and '-' key before, and present the same problem. 注意:我进入fastboot模型之前,只按了“电源键”和“-”键,并出现相同的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.