2018年3月22日 星期四

VMware CPU usage is high when I start adb on ubuntu guest

Message from https://communities.vmware.com/thread/505263?start=15&tstart=0
HoboJ Aug 27, 2015 8:38 PM

 I'd like to confirm that this issue exists too. I have Workstation PRO 12 installed on Windows 10, running a Ubuntu 14.04.03 VM. After booting the VM the host machine will show 0% CPU utilization in task manager (for VMware Workstation (32bit)), but if I execute "adb devices" (which also starts the adb server) in the VM the CPU utilization on the host machine starts to slowly increase and after some time the VM becomes unusable. However, if I execute "adb kill-server" before the VM fully hangs, the host CPU utilization drops back to 0%. Note that the high CPU utilization is seen on the host machine, not on the VM after running the "adb devices" command.

Explanation from VMware: (This issue was solved in VMware Workstation 12 Pro Version 12.1.1)
  Starting an ADB daemon in an Ubuntu or Debian guest operating system causes a memory leak, which in turn causes the VMware Workstation window to become less responsive over time.

Refer to:
  1. https://communities.vmware.com/thread/505263
  2. https://communities.vmware.com/thread/505263?start=15&tstart=0
  3. https://docs.vmware.com/en/VMware-Workstation-Pro/12.0/rn/workstation-1211-release-notes.html

2018年3月21日 星期三

How can I connect to Android with ADB over TCPIP?

1. Activate debug mode in Android
2. Connect to pc via USB
3. Get Android Devices' IP address
4. Open Terminal and type ...

adb tcpip 5555
adb connect <device IP>:5555

5. Disconnect USB
6. Now your adb connection is over TCPIP
7. Return adb over USB


adb usb

8. Now your adb connection is over USB

Refer to:
  https://stackoverflow.com/questions/2604727/how-can-i-connect-to-android-with-adb-over-tcp

Bridge wifi to VMware Guest OS




1. Edit / Virtual Network Editor

2. Edit / Virtual Network Editor / Change Setting

3. Select VMnet0 and Click Automatic Setting, Deselect all of Wi-Fi


4. Add Network -- VMnet2 and bind to Wifi


5. Added Network Adapter 2 and bind to VMnet2




Refer to:
 1. https://www.vmware.com/support/ws55/doc/ws_net_configurations_changing_bridged_windows.html