[EVO 4G Android Development] nick1313:
Installing ADB

First off I am not the originator of this guide, it can be found here and was created by nephron. I just updated it with some updated links and instructions. The newer version seemed to do a lot of the steps that were in his guide therefore I didn't need to do them to get adb to work.

Another guide I borrowed some stuff from can be found here and was created by joeykrim. If you are using a mac or linux machine go to this thread for the download links.

Again I want to give credit to those guys because they really created the original threads and I just borrowed some from both of them to create an updated install guide. This is only an install guide and if you have ADB command questions you will be better off going to those threads and asking in there or searching XDA for your answers.

Link to the Android SDK site, you might check here to see if there is an updated version of the SDK that I have link below(installer_r10)

--------------------------------------------------------------------------

Things you need:

Android SDK - Download

7-zip - Download

Win 7 Drivers- Download-thanks shep 211

HTC Sync-The one that is in the SD card that came with your phone will work

Windows PC

USB Cable

A Rooted HTC EVO

--------------------------------------------------------------------------

Setting up the Android SDK

I installed the drivers and htc sync first, I am not sure if that matters or not.

Download the file SDK file from above and accept defaults to install it.

Once installed make sure the box is checked that says "Start SDK Manager" and hit finish.

Once SDK Manager opens click on the accept all radio button and hit install. Be patient it will take awhile.

Any problems or questions go here.

Once completed take the "android-sdk" folder and move it to the root of your hard drive (C:\).

It will be located in c:\program files(x86)\android, it's large folder so it might take a little while.

Right click on My Computer and click properties

Select the Advanced Tab or Advanced System Setting (Vista/Windows 7)

Select Environment Variables...

On the bottom half (system variables)

go to PATH and edit it to include C:\android-sdk\platform-tools

Make sure to separate it from the rest of the ones in there by a semicolon

Hit Ok

*The reason for this is so that you can run adb from any folder on your drive so that you don't have to copy your files to the tools folder. Big thanks to jadeboy and coiledwire for helping me figure this out.

--------------------------------------------------------------------------

Preparing your phone for ADB

If you are running MikFroyo it should be checked by default but you can double check it if you want.

Go to Settings on your phone

Select Applications

Select Development

Make sure 'USB Debugging' is checked

--------------------------------------------------------------------------

Installing Drivers

Plug in your phone through USB and it should automatically install the drivers. I've done this 4 times and every time it finds the phone just fine.

If not check out this thread here.

--------------------------------------------------------------------------

Check if your phone is detected by ADB

Open up Command Prompt (Go to run, type in cmd, press enter)

Type in

cd C:\android-sdk\platform-tools === Press Enter
adb devices === You should see your device listed
adb shell === you should see # in the next line

Now you are all set to run adb commands. Go here if you want to learn/test some of the basics, it's in joeykrim's thread. His push/pull of test.apk won't work because that file isn't in there. However you can just create a test.txt file on your c:\ and push/pull that to your phone. That's what I did to test that.

Easiest one to test is

adb reboot

Note: for a list of commands type in 'adb' in cmd

CONGRATS YOU NOW HAVE ADB FULLY RUNNING!