手机手机软件unauthorizedd则么解决

Android 解决手机unauthorized错误
时间: 15:08:57
&&&& 阅读:139
&&&& 评论:
&&&& 收藏:0
标签:&&&&&&&&&&&&&&&&&&&&&&&&&&&转自:http://blog.csdn.net/quicksand201/article/details/
手机开发者选项中USB调试已经打开,在电脑命令行下输入adb devices,显示手机未认证
D:\develop\androidroot\adt-bundle-windows-x86-\sdk\platform-tools&adb devices* daemon not running. starting it now on port 5037 ** daemon started successfully *List of devices attached42f7f2230e4cafe7 & & & &unauthorized
网上搜了一圈,几经折腾,什么adb kill-server/start-server、重新开关USB调试、撤回USB除错授权,甚至坑爹的重刷手机系统都试过,也没有搞定。
没办法,折腾adb源代码去,看这里
源码没看到,先看到一大段英文,英文水平一般,直接搬原文:
adb: Add public key authentification
Secure adb using a public key authentication, to allow USB debugging
only from authorized hosts.
When a device is connected to an unauthorized host, the adb daemon sends
the user public key to the device. A popup is shown to ask the user to
allow debugging once or permanantly from the host. The public key is
installed on the device in the later case. Other keys may be installed
at build time.
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.
ADB Protocol change:
If the device needs to authenticate the host, it replies to CNXN
packets with an AUTH packet. The AUTH packet payload is a random token.
The host signs the token with one of its private keys and sends an AUTH(0)
packet. If the signature verification succeeds, the device replies with
a CNXN packet. Otherwise, it sends a new AUTH packet with a new token so
that the host can retry with another private key. Once the host has tried
all its keys, it can send an AUTH(1) packet with a public key as
payload. adbd then sends the public key to the framework (if it has been
started) for confirmation.
在电脑的win7系统上查看ANDROID_SDK_HOME,命令行 echo %ANDRIOD_SDK_HOME%
天啊,指向一个不存在的目录,哪个流氓软件干的
将电脑环境变量中的ANDRIOD_SDK_HOME删除,重新运行adb devices,手机上出现授权提示,问题解决。
D:\develop\androidroot\adt-bundle-windows-x86-\sdk\platform-tools&adb devicesList of devices attached42f7f2230e4cafe7 & & & &device
&标签:&&&&&&&&&&&&&&&&&&&&&&&&&&&原文地址:http://www.cnblogs.com/defineconst/p/6559506.html
&&国之画&&&& &&&&chrome插件
版权所有 京ICP备号-2
迷上了代码!注意: 此文针对以前连接电脑能正常调试,因某些原因导致不能使用调试模式的问题
第一次连接电脑出问题的请另寻搜索
正常情况下,手机打开usb调试模式连接电脑会弹出允许usb调试对话框,选允许后就可以进行和调试有关的部署应用等操作.
之前用的好好的,因刷机或其他操作有导致usb调试模式连接失败
命令行中adb devices提示
daemon not running. starting it now on port 5037
daemon started successfully
List of devices attached
XXXXXXXXXXXXXXXXXX
unauthorized
usb调试模式连接电脑后,信息记录在如下两个文件夹之一.
区别为是否配置ANDROID_SDK_HOME环境变量
X:\Users\XXX.android
X:\XXX\XXX\android-sdk-windows.android
遇到上面的问题删除.android文件夹下adbkey和adbkey.pub文件
再次连接手机.
因为以上原因,修改.android路径和其父路径也可能导致以上问题
如果上面的方法未解决问题,请回忆自己最近有没有对.android路径有过修改,或者对环境变量有过修改
USB调试不能弹出授权窗口 unauthorized 的解决办法
让手机重现“一律允许使用这台计算机进行调试”确认窗口
adb 连接时候不弹出授权对话框
【已解决】(魅族)手机usb调试模式连接不上电脑
USB调试无法打开时的救命神器
万能usb调试开启方法
小刚的Android研究笔记~在未开启USB调试的Android手机绕过锁屏密码
没有更多推荐了,今天换了电脑想真机测试下做的APP,找出我以前测试用的三星GalaxyS3,链接电脑后说手机unauthorized。自己网上找了点办法得以解决。在cmd中找到自己sdk下platform-tools,然后在cmd中输入adb device,显示手机未认证
首先是在手机开发者选项中,点击撤回USB除错授权,英文应该是revoke USB debugging authority。
第二步在CMD中 adb kill-server, 要多打几遍直到确认删除,然后adb start-server。
第三部,这时候手机上会有授权提示,点击确认就ok了。
问题完美解决,这时再输入adb device 会显示授权的手机。
USB调试不能弹出授权窗口 unauthorized 的解决办法
解决手机unauthorized错误
adb devices unauthorized解决办法
HTTP 错误 401.0 - Unauthorized 的解决方案
Android 设备adb连接后unauthorized解决方法
没有更多推荐了,学网版权所有 如有任何问题请联系

我要回帖

更多关于 苹果unauthorized 的文章

 

随机推荐