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

 

 

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 @ 2019-08-06 15:40  a318013800  阅读(11808)  评论(0编辑  收藏  举报