Ubuntu adb 报错:no permissions (user in plugdev group; are your udev rules wrong?);
Ubuntu 下 adb 报错:
caoxinyu@caoxinyu-ThinkPad-T470p:~/Android/Sdk/platform-tools$ ./adb devices
List of devices attached
faf80ac1 no permissions (user in plugdev group; are your udev rules wrong?); see [http://developer.android.com/tools/device.html]
解决方案:
setp 1: lsusb 找到你手机的usb地址
caoxinyu@caoxinyu-ThinkPad-T470p:~/Android/Sdk/platform-tools$ lsusb
Bus 002 Device 002: ID 1f75:0621 Innostor Technology Corporation
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 006: ID 0bda:58db Realtek Semiconductor Corp.
Bus 001 Device 005: ID 8087:0a2b Intel Corp.
Bus 001 Device 004: ID 138a:0097 Validity Sensors, Inc.
Bus 001 Device 003: ID 18f8:0f99
Bus 001 Device 014: ID 19d2:ffb0 ZTE WCDMA Technologies MSM
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
他会列出来所有的usb 设备,你找下。如果试下找不到,那么拔掉手机看下,哪了没有了就是哪个。
setp2: sudo gedit /etc/udev/rules.d/51-android.rules
caoxinyu@caoxinyu-ThinkPad-T470p:~/Android/Sdk/platform-tools$ sudo gedit /etc/udev/rules.d/51-android.rules
[sudo] password for caoxinyu:
之后把这些文本copy 到 编辑器里面:
ATTR{idProduct}=="ffb0", SYMLINK+="android_adb", MODE="0660", GROUP="plugdev", TAG+="uaccess", SYMLINK+="android"
注意:ffb0 是你查找手机设备的usb 的地址。Bus 001 Device 014: ID 19d2:ffb0 ZTE WCDMA Technologies MSM
改成你的地址。
如果没有/etc/udev/rules.d/51-android.rules 文件,麻烦自己创建一下。
setp3: 之后执行命令:
caoxinyu@caoxinyu-ThinkPad-T470p:~/Android/Sdk/platform-tools$ sudo usermod -a -G plugdev $(id -u -n)
caoxinyu@caoxinyu-ThinkPad-T470p:~/Android/Sdk/platform-tools$ sudo udevadm control --reload-rules
caoxinyu@caoxinyu-ThinkPad-T470p:~/Android/Sdk/platform-tools$ sudo service udev restart
caoxinyu@caoxinyu-ThinkPad-T470p:~/Android/Sdk/platform-tools$ sudo udevadm trigger
setp4: 之后重启adb
caoxinyu@caoxinyu-ThinkPad-T470p:~/Android/Sdk/platform-tools$ ./adb kill-server
caoxinyu@caoxinyu-ThinkPad-T470p:~/Android/Sdk/platform-tools$ ./adb start-server
caoxinyu@caoxinyu-ThinkPad-T470p:~/Android/Sdk/platform-tools$ ./adb devices
List of devices attached
faf80ac1 unauthorized
参考:
https://developer.android.google.cn/studio/run/device#setting-up
Ubuntu adb 报错:no permissions (user in plugdev group; are your udev rules wrong?);相关推荐
- ubuntu启动报错 hardware error cpu 0 machine check 0 Bank 6、ACPI BIOS Error (bug)Could not resolve symbol
@[TOC](ubuntu启动报错 hardware error cpu 0 machine check 0 Bank 6.ACPI BIOS Error (bug)Could not resolve ...
- xshell4连接ubuntu,报错No matching outgoing encryption
xshell4连接ubuntu系统,报错No matching outgoing encryption,没有匹配的算法. xshell4连接centos.redhat没有问题.于是怀疑是不是远程连接工 ...
- U盘装Ubuntu系统报错Failed to load ldlinux.c32
U盘装Ubuntu系统报错Failed to load ldlinux.c32 可能是两种原因导致的,可以进行排查 1.镜像文件问题 2.刻录软件的问题 1.镜像文件 如果报此类错误,有可能是镜像文件 ...
- 数据库报错SELECT list is not in GROUP BY clause and contains nonaggregated col
数据库报错SELECT list is not in GROUP BY clause and contains nonaggregated col Expression #12 of SELECT l ...
- mysql group b_mysql报错之5.7版本的 group by mysql不能使用group by
mysql 查询提示 SELECT list is not in GROUP BY clause and contains nonaggregated column 'user_login.user_ ...
- mysql使用group by查询报错SELECT list is not in GROUP BY clause and contains nonaggregated column.
mysql使用group by查询报错SELECT list is not in GROUP BY clause and contains nonaggregated column. 出现原因 使用g ...
- MySQL报错 SELECT list is not in GROUP BY clause and contains nonaggregated column...
MySQL报错 SELECT list is not in GROUP BY clause and contains nonaggregated column- 原因: 在mysql5.7以上的版本中 ...
- Ubuntu下报错PCIe Bus Error:severity=Corrected, type=Physical Layer, id=00e8(Receiver ID)
报错原因:大致是Ubuntu下外设驱动不完善导致的 解决方案:修改grub文件,具体操作如下 # 使用sudo权限打开grub文件 sudo -H gedit /etc/default/grub# 修 ...
- ubuntu apt报错无法获得锁/var/lib/dpkg/lock 和无法锁定管理目录
使用命令 sudo rm /var/cache/apt/archives/lock sudo rm /var/lib/dpkg/lock 使用完上述命令之后,需要关闭当前终端重新打开 参考链接 [Ub ...
最新文章
- 基础面试题 — 数据结构与算法
- Redis 概念以及底层数据结构
- mysql piress_由MySql漏洞导致电脑被入侵(特征为新增加名为piress的帐户)所想到的...
- oracle unused 语法_oracle--set unused
- HashMap底层分析_put添加元素
- linux上用selenium登录新浪微博,获取用户关注的用户id
- CCF201412-2 Z字形扫描(100分)
- 十法则打造安全无线局域网
- 【数字信号处理】基于matlab GUI正选信号时域+频域分析【含Matlab源码 887期】
- 模拟多线程给多用户发送短信
- 怎么把照片背景换掉?如何给照片换底色?
- laravel框架中Cache缓存类中的原子锁
- 作家天地杂志作家天地杂志社作家天地编辑部2022年第23期目录
- 【uni-app】uni-app实现聊天页面功能——功能篇(上)
- Go语言和php个和lua,当 Go 遇上了 Lua
- JQueryDOM和遍历
- ArcGIS属性表的计算
- xlsx 导出 多级表头数据
- 百度智能云牵手中国跳水队,体育和AI正在酝酿新化学反应
- 电脑硬盘坏了里面的东西能恢复吗?2个恢复方式任选
热门文章
- mysql+实例夯住的监控_Nagios 里面监控MySQL 监控事务夯住(RUNNING)报警通知
- PATH环境变量设置
- bootstraptable设置行高度_条码打印软件中不干胶卷纸的标签设置方法
- 微软技术支持工程师_微软催你买电脑啦!即可+99元即可享受上门帮教服务
- 非常好!!!---bash转义序列笔记---打印语句printf用法【转】
- Sql Server中判断表或者数据库是否存在
- Fortinet“安立方”架构获得NSS Labs BDS 组测试多攻击维度100%检出率佳绩
- 百度推出飓风算法,严厉打击恶劣采集
- 【SSH进阶之路】Struts + Spring + Hibernate 进阶开端(一)
- LAMMP源码环境搭建