eclipse USB 调试:如何撤销“始终允许来自这台计算机”选项
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14946145/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
USB Debugging: How to revoke the "Always allow from this computer" option
提问by dbon
I've started developing for android. I'm using different computers with different operating systems. (A Windows desktop PC and a Macintosh at home and a Windows Notebook at work)
我已经开始为 android 开发。我正在使用不同操作系统的不同计算机。(家里一台 Windows 台式电脑和一台 Macintosh,工作时一台 Windows 笔记本)
Most of the time I am using my desktop pc for development but since yesterday my Nexus 4 is displayed as offline in the Eclipse ADT Devices view. This problem only occurs on my desktop pc. On the other computers I don't have any problems getting the device online in eclipse.
大多数情况下,我使用台式电脑进行开发,但从昨天开始,我的 Nexus 4 在 Eclipse ADT 设备视图中显示为离线。这个问题只发生在我的台式电脑上。在其他计算机上,我在 eclipse 中让设备联机没有任何问题。
I already tried a lot of things like:
- unplugging/plugging the nexus 4
- switching off/on usb debugging
- restarting computer, nexus 4 and the adb server
- reinstalling nexus 4 usb drivers (I'm using the Android Composite ADB Interface Drivers from the Android SDK)
我已经尝试了很多事情,例如:
- 拔下/插入 nexus 4
- 关闭/打开 USB 调试
- 重新启动计算机、nexus 4 和 adb 服务器
- 重新安装 nexus 4 usb 驱动程序(我正在使用 Android Composite ADB Interface Drivers来自Android SDK)
I was about to give up but then I remembered something. After connecting the nexus via usb the "Allow USB debugging" dialog shows up and on my desktop pc I checked the "Always allow from this computer" option.
我正要放弃,但后来我想起了一些事情。通过 USB 连接 nexus 后,“允许 USB 调试”对话框出现,在我的台式电脑上,我选中了“始终允许来自这台计算机”选项。
My hope is that disabling this "Always Allow"-permission could help to get my device back online. I already searched in the developer options to find a way to reset the "Always Allow" permission without success. Maybe it is possible to reset the permission by clearing the data of the App/Service (Settings->Apps(All)) which stores this information but I didn't find the name of it in Google.
我希望禁用此“始终允许”权限可以帮助我的设备重新联机。我已经在开发人员选项中搜索了一种方法来重置“始终允许”权限但没有成功。也许可以通过清除存储此信息的应用程序/服务(设置->应用程序(全部))的数据来重置权限,但我没有在谷歌中找到它的名称。
So does anyone know the name of the App/Service whose data has to be cleared to reset the permission? Or is there another way to get the device back online that I have not tought of?
那么有谁知道必须清除数据以重置权限的应用程序/服务的名称?或者有没有其他方法可以让我没有想到的设备重新上线?
采纳答案by Raghav Sood
You can use your device with multiple computers with that enabled as well. I can use my Nexus 7 and Galaxy Nexus, both running 4.2.2 and having checked the always allow option on 3 machines right now.
您也可以将您的设备与多台启用了该功能的计算机一起使用。我可以使用我的 Nexus 7 和 Galaxy Nexus,它们都运行 4.2.2 并且现在在 3 台机器上检查了始终允许选项。
Make sure all your machines are running the latest update for ADT and the SDK Tools, as the adb
in the previous versions does not support the 4.2.2 security measures. One of my machines had the same problem, and it got fixed when I updated my tools.
确保您的所有机器都运行 ADT 和 SDK 工具的最新更新,因为adb
以前的版本不支持 4.2.2 安全措施。我的一台机器有同样的问题,当我更新我的工具时它得到了修复。
Also, sometimes you have multiple Eclipse installs (I have about 11, for various reasons). If all of them aren't updated with the latest tools, make sure your PATH
points to the adb
in the newest update, and not any other.
此外,有时您有多个 Eclipse 安装(我有大约 11 个,出于各种原因)。如果所有这些都没有使用最新工具进行更新,请确保您PATH
指向adb
最新更新中的 ,而不是其他任何。