fastboot权限问题

新安装的Ubuntu 16.04系统,第一次使用fastboot,发现用不了呢:

$ fastboot flash boot boot.img
< waiting for any device >

这里,用fastboot devices命令先看下有无设备吧:

$ fastboot devices
no permissions (user in plugdev group; are your udev rules wrong?); see [http://developer.android.com/tools/device.html]    fastboot
$ lsusb
Bus 001 Device 046: ID 18d1:d00d Google Inc.

很明了,没有在udev设置权限. 修改/etc/udev/rules.d/51-android.rules, 在末尾增加下面一行:

SUBSYSTEM=="usb",ATTRS{idVendor}=="18d1",ATTRS{idProduct}=="d00d",MODE="0666"

然后,需重启udev服务:

$ service udev restart

现在, 我们就可以进行正常的fastboot操作啦,如下:

$ adb reboot bootloader
$ fastboot devices
f99aaa0d7d93    fastboot
$ fastboot flash boot boot.img
target reported max download size of 268435456 bytes
sending 'boot' (8584 KB)...
OKAY [  0.537s]
writing 'boot'...
OKAY [  0.125s]
finished. total time: 0.662s
$ fastboot reboot
rebooting...

finished. total time: 0.056s
阅读更多

没有更多推荐了,返回首页