PC uses VNC to control android

Source: Internet
Author: User
Tags root access

You can install a VNC Server on your mobile phone and use a computer to control your mobile phone. Haha, unfortunately, there is no corresponding application in the market.

But I found a project http://code.google.com/p/android-vnc-server/.

Try it now, Hoho ~

Click here to download the compiled application (not APK, but a Linux Application)

Because it is a Linux application, the machine must be root.

Connect to your computer with your mobile phone and use ADB to push it to your mobile phone:

adb push androidvncserver /data

Modify the permission (here is a fierce ONE ):

chmod 777 /data/androidvncserver

Running:

./data/androidvncserver

The following information is displayed:
Initializing framebuffer device /dev/graphics/fb0...
xres=240, yres=320, xresv=240, yresv=640, xoffs=0, yoffs=320, bpp=16
Initializing keyboard device /dev/input/event3 ...
Initializing touch device /dev/input/event1 ...
Initializing VNC server:
width: 240
height: 320
bpp: 16
port: 5901
Initializing server...
06/01/2011 10:54:38 Listening for VNC connections on TCP port 5901

Hoho ~, Use VNC Viewer to connect. The connection is successful, for example:

Note: Because VNC Viewer does not have a return key or menu key, it is inconvenient to use and cannot Imitate Screen Drawing operations, so it is only for entertainment...

 

 

 

 

The native VNC Server on Android recently discovered, that is, as long as the mobile phone
Install and run the software on
To implement the computer
View and control the phone.

The first is the mobile phone.

1) download
Android
Vncserver:
Http://code.google.com/p/android-vnc-server/downloads/list

If you are interested, you can download the source code and re-compile it. The Source Code address is:
Http://code.google.com/p/android-vnc-server/source/checkout

2) Copy androidvncserver to your mobile phone. I copied it to/data/local/file.
Folder. There are many replication methods:
You can use ADB push, that is:

  1. ADB push path/androidvncserver/data/local/

Copy code

It can also be copied to the SD card
And then use root explorer to copy to/data/local/folder.
.

3) change the androidvncserver permission on the mobile phone terminal, as shown below:

  1. # Chmod 555 androidvncserver

Copy code

Change the permission to read-only and executable. In this step, you can use root explorer.

4) Run androidvncserver and execute the following code on the "terminal" of the mobile phone:

  1. #/Data/local/androidvncserver &

Copy code

In this way, the androidvncserver starts the service.

Then there is computer-side settings
.

1) install the VNC client on your computer. Install a free real VNC Viewer. Address: http://www.realvnc.com/products/free/4.1/index.html

2) If the phone is connected to wi-fi and is in the same LAN as the computer, or the phone uses a wireless network card, congratulations to the network.
To the computer.
Run on the "terminal" of the mobile phone

  1. # Busybox ifconfig-

Copy code

See twifi
The IP address of 0, for example, 192.168.1.100.
Run VNC Viewer on your computer, enter 192.168.100 5901 as the address, and click "OK" to view the mobile phone screen.

3) if the mobile phone is connected to the computer through USB tethering, that is, the mobile phone shares the network to the computer through USB, or the computer shares the network to the mobile phone through USB.
Run on the "terminal" of the mobile phone

  1. # Busybox ifconfig-

Copy code

The IP address of USB 0, for example, 192.168.77.254.
Run VNC Viewer on your computer, enter 192.168.77.254 5901 as the address, and click "OK" to view the mobile phone screen.

4) if neither of the two is true, you can connect them as follows.
Run the following command on your computer:

  1. ADB forward TCP: 5901 TCP: 5901

Copy code

Open the VNC Viewer, enter 127.0.0.1 5901, and click "OK" to view the mobile phone screen.

Disable the androidvncserver service on your mobile phone

1) run on the "terminal" of the mobile phone

  1. # Ps | grep/data/local/androidvncserver

Copy code

In the row of the displayed result, The number after root is the process ID (PID), for example, 8233.

2) Execution

  1. # Killed 8233

Copy code

To end androidvncserver.

Summary

Androidvncserver is the most effective and smoother than others. However, the author says that you can click the mouse, but I cannot use it. If you are interested in basic oil, try it.

PS. Thanks to the hard work and dedication of the author of androidvncserver!

 

 

 

To control G1 phone (Android


). I searched for VNC server in the market for a long time and found a plug-in called androidvncserver on the Internet. The installation process is as follows.
From: http://blog.csdn.net/stevenliyong/archive/2010/03/10/5365148.aspx
Name: Android VNC Server on G1 (PC Remote Control androidMobile phone


)

I found a VNC Server for G1.

1. Original VNC Project

Http://code.google.com/p/android-vnc/

This one cocould not be used on G1, because it need build a special keyboard driver into Kernel

2. forked VNC Server

Http://code.google.com/p/android-vnc-server/

Forked from Android-VNC project on Google Code.

The original Android-VNC need build a special keyboard driver
Kernel. It's not necessary. Also the touch event support is added in
This version.

First download and install the binary

Http://code.google.com/p/android-vnc-server/downloads/list

If you have ADB on server:

#adb push androidvncserver/data
#adb shell/data/androidvncserver
Or you can just copy the downloaded file androidvncserver to the /sdcard,
Then umount the sdcard and launch the terminal from your G1, then type
# su    <-  I have root access, I'm not sure whether the following steps work without root access.
# cp /sdcard/androidvncserver /data/
# chmod a+x /data/androidvncserver
# /data/androidvncserver &
And finally:

Run VNC Viewer from hose PC.

Here I use

Http://downloads.sourceforge.net/vnc...3.10-setup.exe

 

Make sure the connection address with port 5901: 192.168.0.101: 5901

Now, I can remote control my phone from host PC.

During the installation process, the following problems are encountered. When using the CHMOD command, the system always prompts permission denied that 777 of the permission is added after the CHMOD command (you can execute and read/write permissions) you can.

In addition, the figure shown when VNC Server is started through ADB

 

 

 

 

 

Http://code.google.com/p/android-vnc-server/

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.