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 ...
随机推荐
- Emmet语法
子代:> 如:div>ul>li <div> <ul> <li> </li> </ul> </div> 兄弟: ...
- DataGridView 多线程更新 数据 解决卡顿问题
使用多线程更新DataGridView,防止页面卡顿和卡死的问题 private delegate void UpdateDataGridView(DataTable dt); private voi ...
- [Windows] VS2010代码模板添加版权信息
通过以下方式可以自定义CS类文件代码模板(以下为VS2010,VS2008类似): 1,打开VS的安装目录,例如 D:\Program Files\Microsoft Visual Studio 10 ...
- NS_ENUM和NS_OPTIONS区别
首先,NS_ENUM和NS_OPTIONS都是宏. Foundation框架中定义了一些辅助的宏,用这些宏来定义枚举类型时,也可以指定用于保存枚举值的底层数据类型.这些宏具有向后兼容能力,如果目标平台 ...
- web前端开发(2)
搜索引擎只能通过标签判断网页的语义. table布局代码量大.对搜素引擎不友好,应该使用div+css布局,使用css控制网页中元素的大小.颜色.位置,让html在样式.结构混杂的局面中挣脱出来,专注 ...
- jquery plugins —— Chosen
官网地址:http://harvesthq.github.io/chosen/ Chosen (v1.4.2) Chosen has a number of options and attribute ...
- oracle lsnrctl
Oracle 11G在windows 7系统上不需要设置系统环境变量. 在命令行环境中运行命令: echo %ORACLE_SID% 可以看到此变量并不存在.也可以到注册表验证: HKEY_CURRE ...
- CF Destroying Roads (最短路)
Destroying Roads time limit per test 2 seconds memory limit per test 256 megabytes input standard in ...
- CENTOS如何禁用ROOT本地或远程SSH登录
下面详细描述如何禁止root登录. 禁止root本地登录 禁止root远程ssh登录 禁止root本地登录 修改/etc/pam.d/login文件增加下面一行 1 auth required p ...
- Android 软键盘操作
<activity android:windowSoftInputMode=["stateUnspecified", "stateUnchanged", ...