adb:unauthorized
Apr 13, 2016
没错,这就很™尴尬了,调试不了,手机上也没有提示框要求认证,怎么办?
根据 Google 上面的说明, adb 认证实际上是将电脑中的公钥加入手机的文件中,而我们需要的就是手动加入公钥.
首先我们需要找到公钥, 它在 ~/.android/adbkey.pub
在 Windows 上则是 %HOMEDRIVE%%HOMEPATH%\.Android\adbkey.pub
这个就是你的公钥了,接下来我们需要把它加到手机里面.
stop adbd
cat adbkey.pub >> /data/misc/adb/adb_keys
start adbd
这样就行了.
注:如果你电脑没有这个文件怎么办?
首先:重启 adb 试一试
adb kill-server
adb start-server
然后试一试重启电脑.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.