Tuesday, August 23, 2011

USB Connection Guide for Remote Web Desktop (MAC & Linux)

Thanks a lot to AsmerM and his friend Mirzar help me develop the USB connection tool for Linux and Mac. I have tested it on my MAC, it works perfectly. The following is the guide on MAC, it should be similar on Linux, but because I don't have a Linux environment, so I can't make a screenshot for it.

Connect Remote Web Desktop through ADB Tool

Click 'Start Server' button to start the Web Desktop server. And it will show status text such like 'Open http://xxx.xxx.xxx.x:8999 in browser'.

Connect your Android phone to your computer's USB port.

Open Terminal app

Run cd the adb_mac or adb_linux folder, you need specify the full path of adb_mac, such like "cd /Usrs/John/downloads/adb_mac/"

Grant permission 777 to adb and connect.sh files (only need at the first time), you can run "chmod 777 *.*" under the ad_mac or ad_linux folder

run "./connect.sh 8999", 8999 is the port set in Remote Web Desktop on phone side.

If you get this error: "Device is not connected or USB debugging not enabled", please turn on USB debugging on your phone side (Setting > Applications > Development > USB Debugging), and re-connect the USB line.

It will open the default browser and visit the RWD through http://localhost:8999

Please click the following screenshot to view detail.

Install Capture Service for Non-Rooted Phone

Connect phone to computer with USB.

Open Terminal app

Run cd the adb_mac or adb_linux folder, you need specify the full path of adb_mac, such like "cd /Usrs/John/downloads/adb_mac/"

Grant permission 777 to adb and install_cap_service.sh files (only need at the first time), you can run "chmod 777 *.*" under the ad_mac or ad_linux folder

Run "./install_cap_service.sh" to install capture service

You will get prompt message like the follwoing shot, then you can
close it and un-plug your USB line. Of course, you also can keep the USB
connected, I just mean it can work without it.

Login Remote Web Desktop, open Screenshot window, you can take screenshot for non-rooted phone now.

Please notice that you need reinstall capture service agagin if you restart your phone.