geeky · mobile

How to use the Google Chrome Remote USB debugging

Have chrome installed on your desktop and your android device.

Download Android SDK, unzip, double click on the exe installer

I installed the following:
sdkInstall

Add
\sdk\platform-tools
to your PATH environment variable

Enable USB debugging on your device.
On most devices running Android 3.2 or older, you can find the option under Settings > Applications > Development.
On Android 4.0 and newer, it’s in Settings > Developer options.
On Android 4.2 and newer, Developer options is hidden by default. To make it available, go to Settings > About phone and tap Build number 7 times (this is fun!). Return to the previous screen to find Developer options.
droidDebugging

Set up your computer to detect your android device.

If you’re developing on Windows, you need to install a USB driver for adb.
Find the driver for your android device e.g. https://motorola-global-portal.custhelp.com/app/answers/detail/a_id/88481
For more information, visit here.

Install the driver on your computer

Use a data usb cable to connect your android device to the computer

Once plugged in, there should be some prompts indicating that your device is ready to use (make sure you are connecting via the Mass Storage USB mode)

Open a cmd prompt and type adb devices, you should see something like:
List of devices attached
0A3D10E60D00500C device

Then enter command
adb forward tcp:9222 localabstract:chrome_devtools_remote

More on Android Debug Bridge

On your android device, visit a site under your chrome and under settings -> developer options -> Enable USB Web debugging
droidChromeDebugging

On your computer, launch http://localhost:9222 in your chrome browser, you should be able to see all of the tabs on your android device

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s