简体   繁体   English

Android adb在VMWare Workstation中的Ubuntu上不起作用

[英]Android adb doesn't work at Ubuntu in VMWare Workstation

My host machine runs with Ubuntu 12.04 64bit. 我的主机在Ubuntu 12.04 64bit上运行。 On the host adb works normal. 在主机上, adb正常工作。 But in the VM (Ubuntu 12.04 32bit / VMWare Workstation 8.0.4) adb shows either no device or device offline. 但是在VM(Ubuntu 12.04 32bit / VMWare Workstation 8.0.4)中, adb显示没有设备或设备脱机。 Starting adb as root doesn't help. root身份启动adb并没有帮助。 lsusb shows the device: lsusb显示设备:

Bus 001 Device 004: ID 18d1:4e12 Google Inc. Nexus One (debug)

You won't see the device in your host + guest simultaneously, only one at a time. 您不会在主机+来宾中同时看到该设备,一次只能看到一个。 For example, if you connect a regular USB drive, you can either have the host be able to use it or one of the guests but not both. 例如,如果您连接常规USB驱动器,则可以让主机可以使用它,也可以让其中一个来宾使用,但不能同时使用两者。 Usually, if one of the guest VMs has focus (like when you have clicked on it, have typed, etc.) when you insert it, then the connected device goes to the guest and can't be accessed on from host. 通常,如果在插入时来宾虚拟机之一具有焦点(例如单击时,键入等),则连接的设备将转到来宾虚拟机,并且无法从主机上访问。 It would appear as a connected device on the host but not directly usable. 它会在主机上显示为已连接的设备,但不能直接使用。 In your case, it's happening the other way round. 就您而言,这是相反的情况。 So... 所以...

If it's already connected and detected in the host but not the guest, go to the VM menu --> Removable Devices --> under the device indicated as "Google Nexus...." select Connect (Disconnect from Host) . 如果主机中已连接并检测到该主机,而不是客户VM已检测到该主机,请转至VM菜单-> Removable Devices ->显示为“ Google Nexus ....”的设备下的Connect (Disconnect from Host)

I had a problem with this on my system as well. 我的系统上也有这个问题。 Turns out I have USB 3.0 and USB 2.0 ports on my computer. 原来我的计算机上有USB 3.0和USB 2.0端口。 ONLY the USB 2.0 ports would work. 仅USB 2.0端口可以使用。 Luckily my new system has ONE of those. 幸运的是,我的新系统具有其中之一。

Not sure if it will help this case, but worth looking into. 不确定是否会对这种情况有所帮助,但值得研究。

BTW, VMWare Workstation 9 supports USB 3.0, but I still had problems with it not recognizing USB 2.0 devices like my HTC phone when I plugged into the USB 3.0 port on the host. 顺便说一句,VMWare Workstation 9支持USB 3.0,但是当我插入主机上的USB 3.0端口时,它仍然无法识别HTC手机之类的USB 2.0设备,但仍然存在问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM