Tuesday, December 27, 2011

How to set up ADB (Android Debug Bridge)

I. Setting Up The SDK


1. Download the Latest Android SDK from Google


Android SDK (Select the exe version)






2. Once downloaded, double click the exe file to open it. (MAKE SURE you change the directory that it is installing everything to to c:\android-sdk\)


3. Click on the SDK Manager and it will ask you to install packages. 
Select the following and leave all others unchecked:


Android SDK Tools
Android SDK Platform Tools
Google USB Driver Package, Revision XX (XX being the highest number available)


4. Then click continue and follow the on screen prompts until all of the packages are installed and it finishes.


5a. On your phone, click Settings>Applications>Development and make sure USB Debugging is on.


5b. If using Ice Cream Sandwich (Android 4.0), click on Settings>Developer Options and make sure USB Debugging is on.


6. Plug your phone into your computer via USB cable (it needs to be on). It should say installing drivers if using Windows.


7. Open Windows File Explorer and look for the android-sdk folder inside of the C drive. Then open the platform-tools folder inside that. Now, hold the shift key down on your keyboard and right click in any blank area inside that folder. This will give you the option to open a command window here. Select that and a command prompt will open saying c:\android-sdk\platform-tools\ *if using windows XP, this won’t work. So instead open command prompt first by going to Start>Run>then typing in cmd and hitting enter. Then type cd c:\android-sdk\platform-tools\ and hit enter, then continue.


8. Type the following into the command prompt window (hitting enter at the end of every line):


adb devices


You should see a serial number pop up, it’s the serial number of your phone. This means you are all set!


If you do NOT see a serial number, then we need to reinstall the drivers manually