简体   繁体   English

Android fastboot感应设备出现问题

[英]issues with Android fastboot sensing devices

I've been having some issues getting fastboot to detect devices. 我在使用fastboot检测设备时遇到了一些问题。 I've got my udev rule file set up as follows: 我的udev规则文件设置如下:

# adb protocol on passion (Nexus One)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e12", MODE="0666"
# fastboot protocol on passion (Nexus One)
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0fff", MODE="0666"
# adb protocol on crespo/crespo4g (Nexus S)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e22", MODE="0666"
# fastboot protocol on crespo/crespo4g (Nexus S)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e20", MODE="0666"
# adb protocol on stingray/wingray (Xoom)
SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", ATTR{idProduct}=="70a9", MODE="0666"
# fastboot protocol on stingray/wingray (Xoom)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="708c", MODE="0666"
# adb protocol on maguro/toro (Galaxy Nexus)
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="6860", MODE="0666"
# fastboot protocol on maguro/toro (Galaxy Nexus)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e30", MODE="0666"
# adb protocol on panda (PandaBoard)
SUBSYSTEM=="usb", ATTR{idVendor}=="0451", ATTR{idProduct}=="d101", MODE="0666"
# fastboot protocol on panda (PandaBoard)
SUBSYSTEM=="usb", ATTR{idVendor}=="0451", ATTR{idProduct}=="d022", MODE="0666"
# usbboot protocol on panda (PandaBoard)
SUBSYSTEM=="usb", ATTR{idVendor}=="0451", ATTR{idProduct}=="d010", MODE="0666"

and I've also tried the configuration specified on the Android build page . 并且我还尝试了在Android构建页面上指定的配置。

I can see the device fine so long as it's not in fastboot mode. 只要它不在快速启动模式下,我就能看到设备正常。 I've started the server with the adb start-server command in both my normal user account as administrator, and am able to see the device in either instance. 我已经以管理员身份使用普通用户帐户中的adb start-server命令启动了服务器,并且能够在任一实例中看到该设备。

I boot to the bootloader in order to try to use fastboot using the adb reboot bootloader command, and the phone responds appropriately. 我启动到引导加载程序,以便尝试使用adb reboot bootloader命令使用fastboot,并且电话会做出适当响应。 However, after rebooting, I'm unable to access the phone using fastboot. 但是,重新启动后,我无法使用快速启动来访问电话。 When I run the fastboot devices command as a normal user, I get the following: 当我以普通用户身份运行fastboot devices命令时,得到以下信息:

$ fastboot devices
no permissions  fastboot

and when I run fastboot as root, I get the following about 3/4 times: 当我以root身份运行fastboot时,将获得以下3/4的次数:

$ sudo ./fastboot devices
????????????    fastboot

Occasionally, the sudo fastboot command will work, and it will give me the correct MAC associated with the plugged in device. 有时, sudo fastboot命令会起作用,并且会为我提供与插入设备关联的正确MAC。 Any ideas as to why this would happen? 有什么想法为什么会发生这种情况?

Add the OWNER="{your userid}" attribute to each of the udev rules. 将OWNER =“ {your userid}”属性添加到每个udev规则。

Ref 参考

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM