no permissions  fastboot

1.编译后得android源码会在目录:

andsource2/out/host/linux-x86/bin

 

产生fastboot文件

添加到环境变量

1.使用vim进入环境变量配置文件:.bashrc

vim ~/.bashrc

 

2.添加fastboot得环境变量

PATH=$PATH:~/andsource2/out/host/linux-x86/bin

 


3.保存后,source ~/.bashrc

修改权限

1.fastboot -l devices

出现no permissions         fastboot usb:2-1.x(x是版本,没关系,反正就是没有权限)

 

2.增加权限将fastboot的所有者属性改成root:

a. which fastboot(命令找到fastboot所在的目录;)

which fastboot
/home/likewise-open/xxxxx/andsource2/out/host/linux-x86/bin/fastboot

b. 然后进入此目录;

c. 再用命令chown改其属性:

sudo chown root:root fastboot

sudo chown root:root fastboot

 


xxxxxubtpc:~/andsource2/out/host/linux-x86/bin$ ls -l fastboot
-rwxrwxrwx 1 root root 599112 Jun  1 20:13 fastboot

 

3. 将其权限更改一下:

sudo chmod +s fastboot

sudo chmod +s fastboot

 


xxxxubtpc:~/andsource2/out/host/linux-x86/bin$ ls -l fastboot
-rwsrwsrwx 1 root root 599112 Jun  1 20:13 fastboot

 

至此fastboot配置完成,可以进行烧入相应得img文件了。
-------------------------------------------------------------------------------------------------------------------------------

烧入img


fastboot flash cache andsource2/out/target/product/xxxxxxxxxxxxxxx/cache.img
sending 'cache' (5348 KB)...
OKAY [  0.251s]
writing 'cache'...
OKAY [  1.079s]
finished. total time: 1.341s

 

 

转载http://m.blog.csdn.net/blog/shi_xin/28093705

相关文章:

  • 2022-02-10
  • 2021-08-11
  • 2021-11-25
  • 2021-07-16
  • 2021-06-17
  • 2021-10-28
  • 2022-12-23
  • 2021-12-02
猜你喜欢
  • 2022-12-23
  • 2021-06-12
  • 2021-10-09
  • 2021-04-19
  • 2022-01-20
  • 2022-12-23
  • 2021-09-24
相关资源
相似解决方案