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的
找到网上的一段注释以下:
html
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.
撤销USB调试权限,点击之,一键清空全部已受权的电脑。那么删除了以前想删除的adb_keys。
以后再connect手机后,会弹出提示,是否信任该电脑调试,选择是。
这样设备就受权了。
具体原理可参见这篇文章:
http://blog.sina.com.cn/s/blog_79ba23780101sprh.html
bash
#########################################################################################################################post
Ubuntu链接安卓手机ADB unauthorized
错误:
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而致使。ui
解决:
删除当前的用户目录下的.android目录便可spa
cd ~ sudo rm -rf ./.android
注: Window系统一样适用debug
https://www.jianshu.com/p/ea9f430e3c95调试