adb devices unauthorized的解决办法

   

 

 

 

 

 

 

 

 

复制代码
Hi,

trying to launch adb but get:

daemon not running. starting it now on port 5037 *
daemon started successfully * error: device unauthorized. This adbd's $ADB_VENDOR_KEYS is not set; try 'adb kill-server' if that seems wrong. Otherwise check for a confirmation dialog on your device.

Tried every suggestion on other posts and none of them have worked



ask
Developer options > Revoke usb debugging authorization If that does not work, unplug phone, remove all allowed devices, plug phone back in.
 
复制代码

 

 

adb kill-server
adb start-server

 

 

最近通过adb 远程连接安卓手机
adb connect xxx(ip地址)后
adb devices 结果是手机 unauthorized的
找到网上的一段注释如下

On the device, vendors public keys are installed at build time in
/adb_keys. User-installed keys are stored in /data/misc/adb/adb_keys.

那么猜测原因是连接手机时一般会弹出是否信任该电脑调试,然后选择是,就authorized了,但是楼主连电脑的时候没弹出这个提示。

试图通过进入手机终端删除这个adb_keys时,没有权限。估计是没有root.adb <wbr>devices <wbr>unauthorized的解决办法

楼主是红米1S手机,在开发者选项中找到如图 adb <wbr>devices <wbr>unauthorized的解决办法

 

撤销USB调试权限,点击之,一键清空所有已授权的电脑。那么删除了之前想删除的adb_keys。

之后再connect手机后,会弹出提示,是否信任该电脑调试,选择是。
这样设备就授权了。

具体原理可参见这篇文章:
http://blog.sina.com.cn/s/blog_79ba23780101sprh.html

 

 

 

#########################################################################################################################

 

 

Ubuntu连接安卓手机ADB unauthorized

 

96

 

2017.03.21 19:19* 字数 75 阅读 463评论 0

 

错误:

error: device unauthorized.
This adbd's $ADB_VENDOR_KEYS is not set; try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.

原因:

一直无法完整认证,原因是之前电脑已经对该台设备认证了,可能由于该手机更换ROM而导致。

解决:

删除当前的用户目录下的.android目录即可

cd ~
sudo rm -rf ./.android

注: Window系统同样适用

https://www.jianshu.com/p/ea9f430e3c95

 

posted @   a318013800  阅读(14255)  评论(0编辑  收藏  举报
编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 上周热点回顾(2.24-3.2)
历史上的今天:
2018-08-06 may,may be,maybe,probably,possible,might等表可能的区别以及用法
2018-08-06 had been doing 和had been done有什么差别
2017-08-06 编译Android系统源码和内核源码
2017-08-06 git 详细教程,从头开始,看简单英文比中文好懂
2016-08-06 The Importance of Money in Life
2016-08-06 Talking about Health
点击右上角即可分享
微信分享提示