fastboot --no permissions fastboot

来源:互联网 发布:圣书阁淘宝 编辑:程序博客网 时间:2024/04/28 14:37

fastboot flash boot out/target/product/generic/boot.img不管用,提示< waiting for device >

原因查找:

用fastboot命令查看设备提示无权限,如下:

$ fastboot -l devices
no permissions         fastboot usb:2-1.3

于是知道是因为权限问题,是fastboot没有权限, 解决步骤:

1. 将fastboot的所有者属性改成root

用which fastboot命令找到fastboot所在的目录,然后进入此目录;再用命令chown改其属性:

sudo chown root:root fastboot

2. 将其权限更改一下:

sudo chmod +s fastboot


再运行

fastboot flash boot out/target/product/generic/boot.img就正常了 :

sending 'boot' (6520 KB)...
OKAY [  0.207s]
writing 'boot'...
OKAY [  0.311s]
finished. total time: 0.518s
0 0
原创粉丝点击