How To Set Up ADB/USB Drivers for Android Devices (Updated 12/13/11)
October 6, 2009 in Android Development How To's, Android General How To's, Android How To's, Featured, How To's, Video
So most people won’t have to use ADB (Android Debug Bridge) ever, but if you want to learn how or want to get a little more technical with your Android phone, here’s how to get it set up.
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 in Section II below.
II. IF DRIVERS JUST WON’T AUTOMATICALLY INSTALL, DO IT MANUALLY HERE
1. A program called PDANet (used normally to allow you to wired tether your phone’s internet to your computer) can be used to install the ADB drivers for a lot of phones. Download it and follow it’s instructions to install it then go back to step 8 in Section I above and see if that gets you the serial number (if you do, you are all done). If not, then use one of the device specific programs below in step 2.
2. Download your phone’s driver’s below then goto your Device Manager on your computer, look for the phone and click on it. Then click Properties > Update Driver > Browse > Let me pick > Computer > Have Disk > Browse > Then select the driver you downloaded below:
Universal Motorola Drivers (unzip the file once you download it, and run the program inside to install the drivers)(Updated 09.27.10)
Motorola Droid Drivers (unzip the file once you download it).
Motorola Milestone Drivers (follow the instructions on the page).
Motorola CLIQ Drivers (follow the instructions on the page).
Samsung Behold 2 Drivers (unzip the file, run the setup.exe) (If you have Windows 64Bit, you CANNOT install the Behold Drivers. Find someone with a 32Bit system to to any Behold 2 procedures involving ADB).
Samsung Galaxy Drivers (unzip the file, do NOT run setup.exe. Instead follow step 1 in Section II and install manually.)
If using a Samsung device, try downloading Samsung Kies and installing that then plugging in your device and trying again.
III. (Optional) Reinstall Drivers (If they did not install properly in Section I or II)
1. Download USBDeview
2. While the phone is still plugged in, open USBDeview and sort by manufacturer. Find all the HTC drivers and delete them all.
3. Once all have been deleted, unplug the phone from the USB cable and plug it back in.
4. The correct drivers should reinstall automatically (check the drivers as they are installing, one should say ADB Device driver).
5. To check, goto Devices (or Device Manager for older versions of Windows) in your Start menu then click on the “Android Phone”. Click on the Hardware tab, and check the list of drivers for ADB Interface under Type.
IV. (Optional) Install Fastboot
1. Download fastboot.exe and save it to your computer.
2. Unzip it, then copy the fastboot.exe file into the platform-tools folder of your Android SDK.
3. Now, you can type fastboot commands in command prompt in the same place you typed adb commands.
V. Some Common ADB/Fastboot Commands
ADB Commands
adb devices – lists which devices are currently attached to your computer
adb install <packagename.apk> – lets you install an Android application on your phone
adb remount – Remounts your system in write mode – this lets you alter system files on your phone using ADB
adb push <localfile> <location on your phone> – lets you upload files to your phones filesystem
adb pull <location on your phone> <localfile> – lets you download files off your phones filesystem
adb logcat – starts dumping debugging information from your handset to the console – useful for debugging your apps
adb shell <command> – drops you into a basic linux command shell on your phone with no parameters, or lets you run commands directly
Fastboot Commands
fastboot devices – lists which devices in fastboot mode are currently attached to your computer
fastboot boot <filename> – boots a rom stored on your pc specified by the filename
fastboot flash <partition> <filename> – flashes a rom stored on your pc, partition can be one of {boot, recovery, system, userdata}


Facebook
GooglePlus
LinkedIn
Twitter
Youtube
Pingback: How To: Downgrade Your HTC Hero So It Can Be Rooted | The Unlockr
Pingback: How To: Root Your Sprint HTC Hero | The Unlockr
Pingback: How To: Root the Samsung Behold 2 / Samsung Galaxy | The Unlockr
Pingback: HOWTO: Download and Install Paid Apps on Canadian Android Market | Mind of a Young Undergrad Entrepreneur
Pingback: How To: Root The Motorola Droid (Update 12.20.09!) | The Unlockr
Pingback: How To: Root the Motorola CLIQ | The Unlockr
Pingback: Android Development with Eclipse | Droid Sector
Pingback: DJ-rb.com » Blog Archive » Root your Sprint Hero
Pingback: How To: Activate the G1 Without a Data Plan or SIM Card | The Unlockr
Pingback: Adb problem - Droid Forum - Verizon Droid & the Motorola Droid Forum
Pingback: How To: Enable Multitouch Browsing on Your Nexus One (Using the Native Browser) | The Unlockr
Pingback: Trouble connecting Droid via USB after Sholes 2.0.5 ROM Flashed Solution - Droid Forum - Verizon Droid & the Motorola Droid Forum
Pingback: Sprint HTC Hero – Rooted (for Screen Capture) — Thomas Rye Dot Com
Pingback: DM 1.0 dissappointment - Droid Forum - Verizon Droid & the Motorola Droid Forum
Pingback: The Return of blackdroid - Ultimate Droid 5.0 (ERE25 Base) - Page 31 - Droid Forum - Verizon Droid & the Motorola Droid Forum
Pingback: Updated Root Guide - Droid Forum - Verizon Droid & the Motorola Droid Forum
Pingback: Trying to run adb - Droid Forum - Verizon Droid & the Motorola Droid Forum
Pingback: How To: Root Your MyTouch 3G (1.2, Fender, Original) / Magic (GoldCard Method) | The Unlockr
Pingback: How To: Create a Goldcard | The Unlockr
Pingback: How To: Change Your Splash Screen | The Unlockr
Pingback: How to do a full adb wipe...help! - Droid Forum - Verizon Droid & the Motorola Droid Forum
Pingback: Please help!!! Moto droid brikked! - Page 2 - Droid Forum - Verizon Droid & the Motorola Droid Forum
Pingback: How To: Root the Nexus One (Updated 01.11.10) | The Unlockr
Pingback: How To: Load a Custom ROM on the HTC Droid Eris | The Unlockr
Pingback: Dual Boot? Cyanogen + Modaco Desire ROM - Nexus One Forum - Google Phone Forum
Pingback: How To: Root the Motorola Milestone (and Update to Android 2.1) | The Unlockr
Pingback: How To: Root the Samsung Behold 2 | The Unlockr
Pingback: Ultimate Droid OTA 9.0.0 INSANELY SMOOTH, TOO MANY FIXES, THEMEABLE FRAMEWORK!!!! - Page 144 - Droid Forum - Verizon Droid & the Motorola Droid Forum
Pingback: How to Root and Install Custom ROM’s on your Nexus One (HTC Passion) | androidfunzone.com
Pingback: HOW-TO: Get 2.1 on your Milestone! - Page 8 - Droid Forum - Verizon Droid & the Motorola Droid Forum
Pingback: How To: Change Your Splash Screen (For All 320 x 480 Resolution Android Devices) | The Unlockr
Pingback: How to Flash / Debrand your Desire - Android Forums
Pingback: How to Create Gold Card to Flash Android RUU Files | SegmentNext
Pingback: Must Have Apps - Page 2 - Android Forums
Pingback: Can i save my bricked Hero? - Android Forums
Pingback: How To Flash A Custom Splash Screen On The MyTouch or G1 [video] | The Droid Sector
Pingback: Unofficial Incredible Wallpaper Thread - Page 12 - Android Forums
Pingback: It feels so good… | Pit of Gadgetry!
Pingback: [B]$20 bucks for anyone that successfully helps me[/B] - Android Forums
Pingback: De Stock a FroYo! « Half Liquid Programming
Pingback: de Stock a FroYo! « p41r0's Blog!
Pingback: How To: Load a Custom ROM on the Motorola Droid | The Unlockr
Pingback: How To: Load a Custom ROM on the HTC Evo | The Unlockr
Pingback: Newbie Friendly How To's w/ Instructional Videos - Android Forums
Pingback: Building Adobe AIR Android Apps with free opensource tools - DENOQ
Pingback: HTC sync problems. - Android Forums
Pingback: Is there a way to wipe an android phone via usb? - BlackBerry Forums at CrackBerry.com
Pingback: How to get Apps 2 SD Working for ALL apps in Android 2.2 AKA Froyo | Malcolm's Nexus One World
Pingback: A bunch of How To Videos for Eris with links to rom / flash files « Ownurandroid's Blog
Pingback: A bunch of How To Videos for Eris with links to rom / flash files « Ownurandroid's Blog
Pingback: How To: Patch the HTC Tattoo to See All Market Apps | TheUnlockr
Pingback: Pros/Cons of rooting WITHOUT unlocking bootloader? - Nexus One Forum - Google Phone Forum
Pingback: How To: Root Your Phone From Stock FRF91 - Page 2 - Nexus One Forum - Google Phone Forum
Pingback: How to root your Samsung Vibrant or Captivate | The Android Site
Pingback: Planet Android » Blog Archive » How to root your Samsung Vibrant or Captivate
Pingback: How-To: Make a Goldcard and Root a HTC Desire | r3dux.org
Pingback: How To: Unlock NAND on the HTC Evo 4G | TheUnlockr
Pingback: Droid X Rooted! Thanks to Birdman and friends! | SmackBox.org
Pingback: Samsung Captivate (Galaxy S) Gets Rooted Too, Here’s How You Do It [AT&T’s Samsung Captivate Can be Rooted Too Just Like Any Hot Android Smartphone] » TFTS – Technology, Gadgets & Curiosities
Pingback: The Guide to All Things Root Related - Android Forums
Pingback: How To: Root the HTC MyTouch Slide | TheUnlockr
Pingback: ADB , Linux, and hacking the black Novel
Pingback: How To: Root the Motorola XT701 | TheUnlockr
Pingback: How To: Root the HTC MyTouch Slide (Exploid Method) | TheUnlockr
Pingback: Some Noobish Root Issues - Android Forums
Pingback: Rooting the Motorola i1 - Page 4 - Sprint Android Forum
Pingback: Samsung Captivate/ Vibrant Hack | ( h3k.org )
Pingback: Your Homescreen? - Android Forums
Pingback: Adb Setup Help - Android Forums
Pingback: Rootguide
Pingback: Splash Screen - Android Forums
Pingback: Acer Liquid E Phone Guide: Information, Firmware Upgrades, Bugs, Tips & More! [UPDATED: 9/1/10] - Android Forums
Pingback: Rooting FRG22D without rsd lite - Android Forums
Pingback: How To: Root the Motorola CLIQ XT / Quench | TheUnlockr
Pingback: Lots of questions (first thread) - Android Forums
Pingback: How to access your ADB shell. | Android Phone Headline
Pingback: Rooting Froyo on DX - Android Forums
Pingback: How To: Root the Motorola Backflip | TheUnlockr
Pingback: How To: Set Up ADB/USB Drivers for Android Devices
Pingback: How To: Root the Motorola Droid 2 | TheUnlockr
Pingback: adb gaosp vista64 / usb *plz help* - Android-Hilfe.de
Pingback: How To: Flash a Custom Recovery Image on the HTC G1 / Dream | TheUnlockr
Pingback: Crazy Problem... HELP - Android Forums
Pingback: Mulig GPS-fix for Samsung Galaxy S (I9000) ?
Pingback: How to root your Samsung Captivate
Pingback: HTC Incredible Newbie Friendly How To's w/ Instructional Videos - Android Forums
Pingback: HTC Aria Newbie Friendly How To's w/ Instructional Videos - Android Forums
Pingback: Motorola Droid 2 Newbie Friendly How To's w/ Instructional Videos - Android Forums
Pingback: HTC Droid Eris Newbie Friendly How To's w/ Instructional Videos - Android Forums
Pingback: HTC MyTouch Slide Newbie Friendly How To's w/ Instructional Videos - Android Forums
Pingback: Anonymous
Pingback: Root/Superuser - Android-Hilfe.de
Pingback: adb is not recognized - Android Forums
Pingback: How To: Root Your Android Phone (SuperOneClick Method) | TheUnlockr
Pingback: Universal HBoot Security Off (S-OFF) for Use After Visionary Method | TheUnlockr
Pingback: Syncronisation mit PC Outlook - Seite 2 - Android-Hilfe.de
Pingback: How To: Flash a Custom Recovery Image on the Samsung Galaxy Tab | TheUnlockr
Pingback: How To: Root the Motorola Droid 2 « Useful and Simple
Pingback: [How-To] Root LG Optimus S - Page 30 - Android Forums
Pingback: How To: Root the Samsung Nexus S | TheUnlockr
Pingback: Having problems loading recovery to N1 - Page 2 - Nexus One/Nexus S Forum - Google Phone Forum
Pingback: ROOTING the Galaxy Tab « Benny Lee MN's RANTS
Pingback: T-Mobile G2 Overclocked to 1.42Ghz (How To: Overclock Your T-Mobile G2) | TheUnlockr
Pingback: adb with cm7
Pingback: the LG Optimus One thread - Page 15 - Digit Technology Discussion Forum
Pingback: Root Nexus S บน Windows 7 64 bit « Rath Panyowat
Pingback: How To: Connect to Your Android Device Through ADB Wirelessly | TheUnlockr
Pingback: AT&T Samsung Captivate root steps | AT&T Cell Phones | Blog about att phones.
Pingback: How to Flash / Debrand your Desire | HTC Desire Case
Pingback: How to Flash / Debrand your Desire | Htc desire extended battery
Pingback: Absolute System Root
Pingback: Screenshot for non-rooted - Android Forums
Pingback: Setting Up ADB USB Drivers (USB Debugging)
Pingback: i'm a noob and new to smart phones; rooting - PPCGeeks
Pingback: nexus S 2.3.4 root en custom rom
Pingback: Jetyho blog » Jak zprovoznit android mobil jako USB web kameru pro Skype
Pingback: Rogers HTC Magic running the ROM for the new Andriod phone the HTC Hero… | What Is Android
Pingback: [Guide:Video] How to setup ADB/USB drivers
Pingback: Roota HTC Legend | Swedroid
Pingback: How-to-work-with-Android-,-Applications-installation-in-tablets | Useful Notes
Pingback: [Guide] How to root the Desire S - Android Forums
Pingback: Android Kylin MID China Tablet Superuser Instructions « Xack Phobe's Master Site
Pingback: [HOW TO] Root the VZW Galaxy Nexus 4G LTE, Flash a Custom Recovery and Make a Backup - Page 6
Pingback: Unlocking Bootloader Question
Pingback: Anonymous
Pingback: Can't connect
Pingback: How to Unroot your HTC Sensation 4G | Droid Universe
Pingback: How to Unroot your HTC Sensation 4G | Daily Tech News & Trends
Pingback: How to Unroot your HTC Sensation 4G « Android flash
Pingback: How to Unroot your HTC Sensation 4G | Android Daily News
Pingback: How to Unroot your HTC Sensation 4G | Android
Pingback: How to Unroot your HTC Sensation 4G | Tools4Blogging