手机:SHV-E210S(OS: Android 4.3)

手机开发者选项中USB调试已经打开,在电脑命令行下输入adb devices,显示手机未认证

D:\develop\androidroot\adt-bundle-windows-x86-20131030\sdk\platform-tools>adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
42f7f2230e4cafe7        unauthorized

网上搜了一圈,几经折腾,什么adb kill-server/start-server、重新开关USB调试、撤回USB除错授权,甚至坑爹的重刷手机系统都试过,也没有搞定。

没办法,折腾adb源代码去,看这里

https://android.googlesource.com/platform/system/core/+/d5fcafaf41f8ec90986c813f75ec78402096af2d

源码没看到,先看到一大段英文,英文水平一般,直接搬原文:

adb: Add public key authentificationSecure 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-20131030\sdk\platform-tools>adb devices
List of devices attached
42f7f2230e4cafe7        device

解决手机unauthorized错误相关推荐

  1. Android 解决手机unauthorized错误

    转自:http://blog.csdn.net/quicksand201/article/details/19190821 手机开发者选项中USB调试已经打开,在电脑命令行下输入adb devices ...

  2. Oracle变异表解决方法--ORA-04091错误

    Oracle变异表解决方法--ORA-04091错误 原因:触发器(或者被语句中引用的用户自定义PL/SQL函数)视图去查询(或修改)一个被另一语句修改而触发的表. 解决方法:重写触发器(或函数)避免 ...

  3. 安卓手机unauthorized问题解决方法

    今天换了电脑想真机测试下做的APP,找出我以前测试用的三星GalaxyS3,链接电脑后说手机unauthorized.自己网上找了点办法得以解决.在cmd中找到自己sdk下platform-tools ...

  4. linux gradle 错误: 找不到符号,解决android studiogradle 错误 找不到程序包 符号

    问题:android studio gradle 错误 找不到程序包 符号 解决:原因是library工程的build.gradle含有release,只要把其注释即可 buildTypes { re ...

  5. js手机键盘遮挡_完美解决手机网页中输入框被输入法遮挡的问题

    之前要做一个弹出对话框,填写信息,发现在手机上看的时候,较后的输入框在填写信息时,输入框被输入法遮挡,只能盲填. 前提 1.弹出的对话框用display:fixed定位的 2.对话框大小固定 解决办法 ...

  6. 利用exif.js解决手机上传竖拍照片旋转90\180\270度问题

    利用exif.js解决手机上传竖拍照片旋转90\180\270度问题 参考文章: (1)利用exif.js解决手机上传竖拍照片旋转90\180\270度问题 (2)https://www.cnblog ...

  7. 解决jre生成错误的问题

    解决jre生成错误的问题 参考文章: (1)解决jre生成错误的问题 (2)https://www.cnblogs.com/52-IT-y/p/10830907.html 备忘一下.

  8. 什么是未定义的引用/未解决的外部符号错误,如何解决?

    本文翻译自:What is an undefined reference/unresolved external symbol error and how do I fix it? What are ...

  9. Problem 60 关于解决X11的错误的问题?

    Problem60 关于解决X11的错误的问题? Ans: 在ubuntu中,如果在编译时出现如下错误: 错误:X11/Xlib.h:没有那个文件或目录 错误:X11/Xutil.h:没有那个文件或目 ...

最新文章

  1. Egret之位图字体
  2. NOIP2012普及组 (四年后的)解题报告 -SilverN
  3. 5、mysql中的库操作
  4. 2016蓝桥杯省赛---java---B---1(有奖猜谜)
  5. 如何为JBoss Developer Studio 8设置BPM和规则工具
  6. 从Spring到SpringBoot构建WEB MVC核心配置详解
  7. python实验八分支语句_python语句(分支,循环)
  8. click() bind() live() delegate()区别
  9. cpp 编译dll_GCC编译基础
  10. 手机APP应用如何从公网访问本地WEB应用
  11. 中国大数据市场规模分析及预测
  12. ADXL361(微功耗三轴加速度计)使用笔记
  13. r5驱动 索尼exmor_继往开来索尼Exmor RS CMOS 4系传感器来了
  14. SSRF漏洞原理及检测
  15. 斐波那契数列的几种求解方法
  16. 新手传奇gm架设要学会的几个修改技巧
  17. 一种在外部中心化基础下的网络空间去中心化充盈区块链系统
  18. SAP 特别总账标识和备选统驭科目
  19. php+ajax上传文件
  20. 好程序员大数据培训分享大数据概述

热门文章

  1. 蓝桥嵌入式之 最后的挣扎
  2. 非技术文章,今天很凄凉
  3. 短视频php源码,短视频平台开发,上传短视频
  4. 天龙八部3 单人副本可刷
  5. 用Hive分析“余额宝”躺着赚大钱背后的逻辑
  6. CentOS 7使用dnf安装Memcached以及启动、停止、开机启动等设置
  7. java 移动文件夹_java代码实现移动文件以及文件夹
  8. 靠steam搬砖,投入不到5k,一个月净赚3万+
  9. matlab计算a d量化,接口电路仿真的算法分析及实现
  10. 为啥c语言一亚索就无法运行,求C语言高手《找错误》