I have a problem with connection the android emulator with eggplant. I am using the virtual machine with installed android 4.0. I can not run the VNC server. Application (VNC) has root privileges. Has anyone tried to connect in this way? If so, please help.
I want a direct connection between a virtual machine and eggplant. The device is rooted. I checked several VNC servers, but none of them works. On your web site is information about the possibility of using the virtual machine with android. I would like to know how to configure it. I do not want to connect to the host. For my needs this solution works too slowly.
I have not checked VMLite yet. I wonder how to connect the virtual machine with the Host via usb. VMLite requires it to run. I do not know how to configure it. Do you have a tutorial for virtual machines?
This app works on rooted and non-rooted android devices. However, for non-rooted devices, every time after you reboot, you will have to connect your device to a Windows PC or Mac using a USB cable, then run a free desktop program, VMLite Android App Controller, to start the server on your device. Once the server is started, you can disconnect your device.
In order to support VMLite VNC Server on non rooted Android devices, a special desktop program, called VMLite Android App Controller, is required to start VMLite VNC Server every time after you reboot your device.
Basically, you install the VMLite VNC Server App on your Android device from Google Play Store, and install VMLite Android App Controller to a Windows PC, a Mac, or a Linux PC. Then you connect your device to the desktop computer using a USB cable, and run VMLite Android App Controller from desktop to start VMLite VNC Server on the device. Once started, you can disconnect your Android device from the computer, and quite this program. You will have to perform this again next time after you reboot your device.
Double click the downloaded exe file to start the installation. During installation, there are a few steps that ask you whether to install USB Drivers, click Yes to install them unless you are sure that your device is already accessible through adb (Android Debug Bridge).
You can double click the VMLite Android App Controller icon to launch the application. If you want to install it permanently, you can drag and drop the icon to Applications folder, or any other folders on Mac.
Starting from Android 4.2, Developer options is hidden by default, and you need to make it appear by hand. Go to Setting > About tablet (or About phone), quickly tapping multiple times on Build number, until you see a message "You are now a developer", and you should note that Developer options menu appears inside Settings. When you connect to a PC, if you see a message box "Allow USB debugging?", you need to click OK button to authorize debugging from your computer. You may need to do this everytime when you connect your device to a computer via USB.
Launch VMLite Android App Controller from the desktop computer. On Windows PC, you can go to menu Start > VMLite Android App Controller, or double click VMLite Android App Controller icon on your desktop. On Mac, you can launch the application from the mounted dmg file, or from Applicatons folder or any other folder where the application is installed.
The recommended approach is to create a file/etc/udev/rules.d/51-android.rules (as the root user) and to copy the following lines in it. must be replaced by the actual username of the user who is authorized to access the phones over USB.
In case there are multiple devices connected with USB, and you can run add an "-s" option to the adb command to specify the serial number of the specific device. The serial number is the number displayed by "adb devices", for example:
When there is no WIFI available, e.g., at work place, your android device will most likely have a 3G/4G network IP address, unfortunately, almost all wireless service providers do not allow server ports to be visible from outside world, and thus the vnc server running on your device won't receive any connections. In this case, you can try to use USB connection.
Connect your device to a PC or Mac with USB, then launch this VMLite Android App Controller program, click USB Connect button, you will be asked to specify the port number of the vnc server running on your device. The port number should be same as that displayed on our VMLite VNC Server app on your device. The default port number is 5901 for vnc viewers, 5801 for browser connections.
If you are having problems with USB connection, and observes adb server out of date message, that indicates a conflict between different versions of Android Debug Bridge (adb), which causes USB connection not to work.
If you have HTC devices, and have installed HTC Sync to the PC, most likely you will have difficulty to connect VMLite VNC Server on your device via USB connection, this is because HTC automatically starts its version of adb.exe, and interrupts our program's USB port forwarding.
Plug Android device, e.g., Samsung S3, to the PC. On android device, bring down the menu (swipe from top all the way down),You should see your USB connection there. Tap it to see more options. Change from "MTP" (Media Device) to "PTP" (Camera). 4, Use different version of adb Our program relies on adb to communicate with your devices, so it's very important to have a working version of adb.
If for some reason, your device can't be found by the default adb, you can try to change to use the tadb.exe command we prodived in the same folder. Some Morotolla devices and Mini TV boxes need to use tadb.exe.
VMLite Android App Controller automatically installs USB drivers for most Android devices. Most of the times, your device should just work without any issues. When your device is working well, you should see a special node named as something like "Android Phone" in Device Manager, shown below:
You can open Device Manager this way: Right-click on Computer from your desktop or Windows Explorer, and select Manage. Select Device Manager in the left pane of the Computer Management window.
If your device is connected to the computer, however you can't find such a node in Device Manager, or the node shows the device is not working properly, that indicates that the USB driver is not installed correctly.
2) On Windows Vista and above, right click the node in Device Manager, and select Update Driver Software..., then select Search automatically for updated driver software on next screen.
VMLite VNC Server allows the remote view and control of android phone or tablet from a desktop computer or from another mobile device using the popular VNC protocol. This app works on rooted and non-rooted android devices. However, for non-rooted devices, every time after a reboot, a re-connecting of the device to a Windows PC or Mac using a USB cable, then run a free desktop program, VMLite Android App Controller, to start the server on the device has to be done. Once the server is started, the device can be disconnected.
A solution I found recently is scrcpy (scrcpy github page). It lets your pc connect to your phone and you can control your phone through it. It works through adb without any need to install an apk on your android phone beforehand. It streams your phone's screen to your pc, taking into account the rotation, and it allows to send clicks and touches with the mouse and write in text fields directly through your pc's keyboard, although you can only write ascii characters that way.
Since this only needs adb, it works as long as you achieve an adb connection with your phone, so that includes USB cable and Wifi connection for truly remote control. I don't know how you could do it over the network without being on the same LAN, though.
If you would like something simple (i.e. Your phone's screen broke like me...) then you can use AndroidScreencast. Take the jar from here and make sure you have adb working properly then java -jar androidscreencast-*.jar. Lastly, connect your device through the usb and start the client.
See and control your computer's desktop from your phone, from anywhere. androidVNC is the Open Source (GPL) remote desktop program for Android devices. Connects to most VNC servers: incl TightVNC, RealVNC on Win and Linux, x11vnc, and Apple Remote Desktop on OS/X.
Currently the way the VMlite VNC server and their app for the local machine they're connected to via USB allows VNC access to the machines over the USB connection.This connection is accessible to the local machine via the network address:
Running a wireshark diagnostic on network traffic reveals that when accessing the "http: //localhost:5801" webpage from the machine connected via USB to the phones, there is no traffic sent over tcp/ip. I'm guessing that this is because what the program has done is map the ports 5801 and 5901 to send traffic only to the respective USB devices.
So my question is the following:How do I set up the machine so that I can forward traffic from the USB ports to be accessible across the network?Alternatively is there some kind of browser plugin that allows me to open webpages as if I was viewing them from a different machine on the network?(keep in mind that a typical proxy server set up did not work, as browsing to http ://localhost seems to cause problems)
In this case the XP machine is ssh'ing to itself and binding a port forward to the ethernet interface to the localhost (loopback) interface where the USB action is. The -g flag lets ssh accept connections from other machines on the (ethernet) network.
c80f0f1006