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

相关文章

ubuntu退出redis的示例:指定配置文件方式启动源码redis:roo...
ubuntu中mysql改密码忘了的解决方法:1.在终端中切换到root权...
ubuntu安装mysql失败的解决方法原因:可能是原有的MySQL还有...
使用centos和ubuntu建站的区别有以下几点1.CentOS是Linux发行...
ubuntu图形界面和字符界面切换的方法:可以通过快捷键CTRL+A...
ubuntu中重启mysql失败的解决方法1.首先,在ubuntu命令行中,...