Android 4.2.2 USB调试“总是允许从这台计算机”选项导致设备的目标未知? [英] Android 4.2.2 USB debugging "Always allow from this computer" option result in target unknown for device?

查看:485
本文介绍了Android 4.2.2 USB调试“总是允许从这台计算机”选项导致设备的目标未知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我选择了始终允许从这个计算机在4.2.2 USB调试中,它第一次工作正常,但是当我尝试其他时间,我的设备总是显示离线。我尝试使用另一个设备,也是4.2.2和USB调试弹出窗口,当我点击确定(不选择始终允许从这台电脑)设备列表成为在线。



我尝试了以下方法,但它没有起作用。




  • adb kill-server / adb start-server / and adb设备

  • 安装新的eclipse,android SDK和ADT

  • 插拔我的设备千次

  • 尝试从这个链接



有一次我会摆脱永远允许从这台电脑选择?

解决方案

这个问题,如果以root身份首次运行 adb ,可能会发生这种情况。它在您的计算机上创建由root用户拥有的密钥文件,因此您的普通用户帐户无法读取或覆盖它。



要检查是否是这种情况:

  $ ls -l〜/ .android / adbkey 
-rw ------- 1根根1708 Nov 13 2012 .android / adbkey
^ notice root here

要解决它: / p>

  $ sudo chown $ USER:〜/ .android / adbkey 
$ ls -l〜/ .android / adbkey
$ -rw ------- 1 thomas thomas 1708 Nov 13 2012 /home/thomas/.android/adbkey
^现在显示您的用户名和主组


I am having problem connecting my 4.2.2 android device with PC after I select "Always allow from this computer".

I have selected "Always allow from this computer" in 4.2.2 USB debugging and it works fine the first time but when I tried other time my devices always appear offline. I have tried with another device that is also 4.2.2 and the USB debugging popup and when I click ok (without selecting "Always allow from this computer") with device list became online.

I have tried the following method and it didn't work

  • adb kill-server/ adb start-server/ and adb devices
  • install new eclipse, android SDK, and ADT
  • Plug and unplug my device thousand times
  • try repeating steps from this link

Are there anyway to get rid of "Always allow from this computer" once I selected?

解决方案

As described in this issue, this can happen if you run adb for the first time as root. It creates a key file on your computer owned by the root user, so your normal user account can't read or overwrite it.

To check if this is the case:

$ ls -l ~/.android/adbkey
-rw------- 1 root root 1708 Nov 13  2012 .android/adbkey
             ^ notice root here

To fix it:

$ sudo chown $USER: ~/.android/adbkey
$ ls -l ~/.android/adbkey
$ -rw------- 1 thomas thomas 1708 Nov 13  2012 /home/thomas/.android/adbkey
               ^ now shows your username and primary group

这篇关于Android 4.2.2 USB调试“总是允许从这台计算机”选项导致设备的目标未知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆