no permissions fastboot
no permissions fastboot
获取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
no permissions fastboot的更多相关文章
- 【转】 ubuntu下fastboot找不到devices
原文网址:http://memory.blog.51cto.com/6054201/1202420 转载补充: 1.首先,手机必须先进入bootloader状态,fastboot devices才能有 ...
- 【Android 系统开发】CyanogenMod 13.0 源码下载 编译 ROM 制作 ( 手机平台 : 小米4 | 编译平台 : Ubuntu 14.04 LTS 虚拟机)
分类: Android 系统开发(5) 作者同类文章X 版权声明:本文为博主原创文章 ...
- Android6.0源码下载编译刷入真机
编译环境是Ubuntu12.04.手机nexus 5,编译安卓6.0.1源码并烧录到真机. 源码用的是科大的镜像:http://mirrors.ustc.edu.cn/aosp-monthly/,下载 ...
- commit
git blame -L 260, 270 a.xml no permissions fastbootsudo chown root:root fastbootsudo chmod +s fast ...
- 从谷歌官网下载android 6.0源码、编译并刷入nexus 6p手机
版权声明:本文为博主原创文章,未经博主允许不得转载. https://blog.csdn.net/fuchaosz/article/details/52473660 1 前言 经过一周的奋战,终于从谷 ...
- Android刷机
1.安装第三方recovery 下载自己手机适配的recovery包 https://twrp.me/lg/lgnexus5.html fastboot 卡在 waiting for device $ ...
- 设置Ubuntu下adb 及 fastboot权限
以普通用户登录linux,然后运行adb devices会提示权限不够: List of devices attached ???????????? no permissions 这是因为 ...
- Ubuntu adb devices :???????????? no permissions (verify udev rules) 解决方法
Ubuntu adb devices :???????????? no permissions (verify udev rules) 解决方法http://www.cnblogs.com/cat-l ...
- Unable to download data from http://ruby.taobao.org/ & don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
安装cocoapods,记录两个问题! 1.镜像已经替换成了 http://ruby.taobao.org/, 还是不能不能安装cocoapods, 报错:Unable to download dat ...
随机推荐
- 基于jquery的侧边栏分享导航
今天给大家分享一款基于jquery的侧边栏分享导航.这款分享钮一直固定于左侧,鼠标经过的时候凸出显示,这款分享按钮适用浏览器:IE8.360.FireFox.Chrome.Safari.Opera.傲 ...
- 为什么Wireshark无法解密HTTPS数据
为什么Wireshark无法解密HTTPS数据 导读 由于需要定位一个问题,在服务器上tcpdump抓取https数据包,然后下载到本地打开wireshark分析.然后我们下载域名私钥配置到wires ...
- 检测MYSQL不同步发邮件通知的脚本
脚本代码如下:#!/bin/bash ...
- 关于Android中获取Intent里的数据
Intent获取数据和发送数据的办法: //直接通过Intent发送 intent.putExtra("name","wytings"); //直接通过Inte ...
- 使用C#实现读取/写入Excel表
C#实现写入Excel表 using System; using System.Reflection; using System.IO; using Microsoft.Office.Interop. ...
- easyui datagrid 列拖拽2
1.拖动前 2.拖动中 3.拖动后 5.代码1 $("#corp-grid").datagrid({ title:"泥头车企业管理", toolbar:&quo ...
- 仿jQuery中undelegate()方法功能的函数
//跨浏览器事件绑定 function addEvent(obj,type,fn){ if(typeof obj.removeEventListener !='undefined'){ /////// ...
- BC Harry and Magical Computer (拓扑排序)
Harry and Magical Computer Accepts: 350 Submissions: 1348 Time Limit: 2000/1000 MS (Java/Others) ...
- html中的一些标签学习
今天看手册学习到了HTML5很多属性.现在总结如下 <body bgcolor="BED1A2" text="FFFFFF" link="yel ...
- 限额类费用报销单N+1原则
--添加通过自定义档案列表编码及档案编码查询主键 select bd_defdoc.pk_defdoc as defdoc --查询限额类费用类型主键 from bd_defdoc, bd_defdo ...