ADB 4 Dummies

Written by DarkLOME on . Posted in Android

Download and Install the SDK

Download the SDK package that is appropriate for your development computer. Unpack the Android SDK archive to a suitable location on your machine. By default, the SDK files are unpacked into a directory named android-sdk-.

Go to: http://developer.android.com/sdk/index.html & Download the SDK for your system.

Make a note of the name and location of the unpacked SDK directory on your system

— you will need to refer to the SDK directory later, when setting up the ADT plugin or when using the SDK tools.

Optionally, you may want to add the location of the SDK’s primary tools directory to your system PATH. The primary tools/ directory is located at the root of the SDK folder. Adding tools to your path lets you run Android Debug Bridge (adb) and the other command line tools without needing to supply the full path to the tools directory.

- On Linux, edit your ~/.bash_profile or ~/.bashrc file. Look for a line that sets the PATH environment variable and add the full path to the tools/ directory to it. If you don’t see a line setting the path, you can add one:

export PATH=${PATH}:/tools

- On a Mac OS X, look in your home directory for .bash_profile and proceed as for Linux. You can create the .bash_profile if you haven’t already set one up on your machine.

- On Windows, right-click on My Computer, and select Properties. Under the Advanced tab, hit the Environment Variables button, and in the dialog that comes up, double-click on Path (under System Variables). Add the full path to the tools/ directory to the path.

Step by Step on Setting up your Paths

This is so you can use the adb commands (and all other items in the tools folder) from anywhere.

Windows Instructions:

Right-click on My Computer, and select Properties. Under the Advanced tab, hit the Environment Variables button, and in the dialog that comes up, double-click on Path (under System Variables). Add the full path to the tools/ directory to the path.

Basically, When I downloaded the sdk, I put it in C:androidsdk so what you want to do is follow the step above to get into your Environment Variables then look for the paths that are already set up. Edit it and in my case, I added C:androidsdktools to the paths.

*** If you use the Installer you must set up the following paths instead:***

Path 1: C:Program FilesAndroidandroid-sdk-windowstools
Path 2: C:Program FilesAndroidandroid-sdk-windowsplatform-tools

Linux Instructions:

• Download the Android SDK for Linux at: http://developer.android.com/sdk/

On Linux, edit your ~/.bash_profile or ~/.bashrc file. Look for a line that sets the PATH environment variable and add the full path to the /tools directory to it. If you don’t see a line setting the path, you can add one by typing: export PATH=${PATH}:/tools

That’s it for linux… pretty simple huh? Enjoy

Macintosh OSX Instructions (for Leopard):

  • Download the Android SDK for Macintosh at: http://developer.android.com/sdk/
  • Extract it
  • Open up a terminal window
  • type: pico .bash_profile (this will create a .bash_profile)
  • type the following in the new screen: export PATH=${PATH}:/tools
  • Hit CNTRL + X
  • Hit Y (for yes to save)
  • It will return you to the terminal screen… type: exit
  • Restart terminal.

Install USB Drivers

Use the Android SDK and AVD Manager to install new SDK components. You can launch the SDK and AVD Manager in one of these ways:

Execute the android tool command with no options.

If you haven’t used the tool before, change to the/tools directory and run the command: $ android

If you have downloaded the SDK Tools (Revision 3 or higher) and are running Windows, you can double-click “SDKSetup.exe” in the SDK directory.

If you are developing in Eclipse with ADT, you can select Window >Android SDK and AVD Manager.

Pick and choose to install the USB Drivers

Windows Vista/7: Perform a fresh installation

To install the Android USB driver on Windows Vista/7 for the first time:

  1. Connect your Android-powered device to your computer’s USB port. Windows will detect the device and launch the Found New Hardware wizard.
  2. Select “Locate and install driver software.”
  3. Select “Don’t search online.”
  4. Select “I don’t have the disk. Show me other options.”
  5. Select “Browse my computer for driver software.”
  6. Click “Browse…” and locate the folder where you copied the installation package. As long as you specified the exact location of the installation package, you may leave “Include subfolders” checked or unchecked—it doesn’t matter.
  7. Click “Next.” Vista may prompt you to confirm the privilege elevation required for driver installation. Confirm it.
  8. When Vista asks if you’d like to install the Google ADB Interface device, click “Install” to install the driver.

Windows Vista/7: Upgrade an existing driver

To upgrade an existing Android USB driver on Windows Vista/7 with the new driver:

  1. Connect your Android-powered device to your computer’s USB port.
  2. Right-click on “Computer” from your desktop or Windows Explorer, and select “Manage.”
  3. Select “Device Manager” in the left pane of the Computer Management window.
  4. Locate and expand “ADB Interface” in the right pane.
  5. Right-click on “HTC Dream Composite ADB Interface”, and select “Update Driver Software…”
  6. When Vista starts updating the driver, a prompt will ask how you want to search for the driver software. Select “Browse my computer for driver software.”
  7. Click “Browse…” and locate the folder where you copied the installation package. As long as you specified the exact location of the installation package, you may leave “Include subfolders” checked or unchecked—it doesn’t matter.
  8. Click “Next.” Vista may prompt you to confirm the privilege elevation required for driver installation. Confirm it.
  9. When Vista asks if you’d like to install the Google ADB Interface device, click “Install” to install the driver.

Windows XP: Perform a fresh installation

To install the Android USB driver on Windows XP for the first time:

  1. Connect your Android-powered device to your computer’s USB port. Windows will detect the device and launch the Hardware Update Wizard.
  2. Select “Install from a list or specific location” and click “Next.”
  3. Select “Search for the best driver in these locations”; un-check “Search removable media”; and check “Include this location in the search.”
  4. Click “Browse…” and locate the folder where you copied the installation package.
  5. Click “Next” to install the driver.

Windows XP: Upgrade an existing driver

To upgrade an existing Android USB driver on Windows XP with the new driver:

  1. Connect your Android-powered device to your computer’s USB port.
  2. Right-click on “My Computer” from your desktop or Windows Explorer, and select “Manage.”
  3. Select “Device Manager” in the left pane of the Computer Management window.
  4. Locate and expand “Android Phone” in the right pane.
  5. Right-click “Android Composite ADB Interface” and select “Update Driver…” This will launch the Hardware Update Wizard.
  6. Select “Install from a list or specific location” and click “Next.”
  7. Select “Search for the best driver in these locations”; un-check “Search removable media”; and check “Include this location in the search.”
  8. Click “Browse…” and locate the folder where you copied the installation package.
  9. Click “Next” to install the driver.

Done.

Trackback from your site.

Comments (2)

Leave a comment

You must be logged in to post a comment.