android adb 授权,如何解决ADB设备未经授权的Android ADB主机设备?
>从客户端手机(adb主机)获取公钥cat /data/.android/adbkey.pub>将上述公钥复制到目标手机的/ data / misc / adb / adb_keys位置。 (你可能需要停止adb守护进程,停止adbd)cat / data / misc / adb / adb_keys验证两个猫输出匹配。尝试在目标启动adbd上重新启动adb守护程序,或者重新启动它们
>从客户端手机(adb主机)获取公钥
cat /data/.android/adbkey.pub
>将上述公钥复制到目标手机的/ data / misc / adb / adb_keys位置。 (你可能需要停止adb守护进程,停止adbd)
cat / data / misc / adb / adb_keys
验证两个猫输出匹配。
尝试在目标启动adbd上重新启动adb守护程序,或者重新启动它们。
如果您在上述步骤中阅读或写入ADB KEYS时遇到问题,则会使用临时路径(例如:/ data / local / tmp)。请参阅that link it goes into更多细节
"On the host, the user public/private key pair is automatically generated,
if it does not exist, when the adb daemon starts and is stored in
$HOME/.android/adb_key(.pub) or in $ANDROID_SDK_HOME on windows. If needed,
the ADB_KEYS_PATH env variable may be set to a :-separated (; under
Windows) list of private keys, e.g. company-wide or vendor keys.
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"
更多推荐
所有评论(0)