zoukankan      html  css  js  c++  java
  • adb devices unauthorized的解决办法

       
    Hi,
    
    trying to launch adb but get:
    
    daemon not running. starting it now on port 5037 *
    daemon started successfully * 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.
    
    Tried every suggestion on other posts and none of them have worked
    
    
    
    ask
    Developer options > Revoke usb debugging authorization If that does not work, unplug phone, remove all allowed devices, plug phone back in.
     
    adb kill-server
    adb start-server

    最近通过adb 远程连接安卓手机
    adb connect xxx(ip地址)后
    adb devices 结果是手机 unauthorized的
    找到网上的一段注释如下

    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.

    那么猜测原因是连接手机时一般会弹出是否信任该电脑调试,然后选择是,就authorized了,但是楼主连电脑的时候没弹出这个提示。

    试图通过进入手机终端删除这个adb_keys时,没有权限。估计是没有root.adb <wbr>devices <wbr>unauthorized的解决办法

    楼主是红米1S手机,在开发者选项中找到如图 adb <wbr>devices <wbr>unauthorized的解决办法

     

    撤销USB调试权限,点击之,一键清空所有已授权的电脑。那么删除了之前想删除的adb_keys。

    之后再connect手机后,会弹出提示,是否信任该电脑调试,选择是。
    这样设备就授权了。

    具体原理可参见这篇文章:
    http://blog.sina.com.cn/s/blog_79ba23780101sprh.html

    #########################################################################################################################

    Ubuntu连接安卓手机ADB unauthorized

    2017.03.21 19:19* 字数 75 阅读 463评论 0

    错误:

    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.
    

    原因:

    一直无法完整认证,原因是之前电脑已经对该台设备认证了,可能由于该手机更换ROM而导致。

    解决:

    删除当前的用户目录下的.android目录即可

    cd ~
    sudo rm -rf ./.android
    

    注: Window系统同样适用

    https://www.jianshu.com/p/ea9f430e3c95

  • 相关阅读:
    【java】对象赋值给另一个对象
    spring boot系列(五)spring boot 配置spring data jpa (查询方法)
    Spring Data JPA 查询
    Spring Data JPA 介绍
    OpenID简介
    OAUTH协议介绍
    URL encoding(URL编码)
    RESTful 介绍
    spring boot系列(四)spring boot 配置spring data jpa (保存修改删除方法)
    spring boot 启动报 java.lang.NoClassDefFoundError: ch/qos/logback/core/spi/LifeCycle 错误
  • 原文地址:https://www.cnblogs.com/pengmn/p/11309347.html
Copyright © 2011-2022 走看看