我不得不几次处理这个问题,每次忘记原因是什么,直到我深入挖掘.所以这是症状:
>每次重新连接/重新启动设备时,即使您发誓您最后一次选中了“始终”复选框,也会获得授权对话框.
> adb shell为您提供下面的模糊
> adb设备为您提供下面的其他模糊
>在恢复过程中无法通过adb连接
>设备未经授权,将其插入将不会显示授权对话框
adb shell blurb:
user@PC:~$adb shell 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.
adb设备模糊:
user@PC:~$adb devices List of devices attached C4F124F1B9A98AE unauthorized
您的udev规则已经到位,而lsusb输出的代码存在于/etc/udev/rules.d/51-android.rules(或redhat等效,如果不同)
发生了什么?
解决方法
好吧,对我来说,问题就是你在下面看到的:
user@PC:~$ls -al ~/.android/ total 20 drwxrwxr-x 3 user user 4096 Jun 7 15:46 . drwxr-xr-x 30 user user 4096 Sep 19 11:30 .. -rw------- 1 root root 1704 Jun 7 15:46 adbkey -rw-r--r-- 1 root root 710 Jun 7 15:46 adbkey.pub drwxrwxr-x 2 user user 4096 Jun 7 15:42 cache
请注意我的adbkey和匹配的公钥是如何归root所有?我第一次在这台机器上运行adb的东西都是root.修复很容易,你可能已经知道了:sudo chown user:user~ / .android / adbkey *
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。