How To Set Up ADB/USB Drivers & Fastboot for Android Devices (Updated 09/23/15)(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.

What is ADB & Fastboot?

ADB is generally used for development when trying to run applications on the phone from the computer so you can debug (hence the name) issues with your app you are creating. Let’s be real though, most of the time, it’s used for rooting Android devices.

Since ADB allows you to communicate with an attached Android phone on a development level it’s extremely handy when we want to issue commands that allow us to, for example, push files to the device and then execute those files all in an effort to root the phone.

Fastboot is similar to ADB in that it’s used for issuing commands to the attached device, but in fastboot mode it’s really more for flashing different parts of Android (i.e. updating the system with a newer version, erasing all the user data, etc.). This mode is more used for manufacturers to diagnose and fix devices with software issues, but, like with ADB, it can also be pretty instrumental in helping our rooting efforts.

We can use fastboot to flash a new recovery image that then allows us to then gain root access that way.

Long story short, when trying to root your Android device, both ADB and Fastboot are tools you’ll probably need to have all setup.

Because ADB and Fastboot are meant really for developers, they aren’t the most intuitive when it comes to setting them up. Because of this, I’m going to layout the easiest ways to get both working on the two most popular operating systems that you guys might have: Windows and Mac (sorry, Linux).

How to Setup ADB/Fastboot on Windows

I. Download and Install ADB & Fastboot

So, back in the day, you would need to download the entire Android SDK to get ADB and Fastboot to work, but thanks to some clever developers out there, you can get away with just downloading minimal versions that only setup ADB and Fastboot and leave the rest of the SDK out, for, you know, real developers.

1. Head to this developer’s page on XDA and download the 15 Second ADB Installer (download link in the first post, download whichever one he says is stable).

ADB Fastboot Installer for Windows

2. Right click the exe that downloads and select Run As Administrator.

3. When it opens, hit y and enter for each of the questions as it guides you through. (This will install ADB system wide so any user of the computer can access it and also install the drivers, which is a huge help as it can be the hardest part of all this to get to work).

4. When it’s all done, restart the computer to ensure they were installed.

5. On your phone, go to Settings > About Phone and continually tap on Build Number until it tells you you are a developer.

6. Hit Back.

7. Go to Developer Options and turn on USB Debugging.

8. Plug your device in via USB cable and wait for it to install drivers.

9. Now, on the PC, Open File Explorer and head to C: then adb and hold shift on your keyboard and right-click in a blank spot anywhere inside the folder (inside that folder you should see adb and fastboot along with a couple other files) and select Open Command Window Here.

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

adb devices

11. If it’s a newer Android phone, a popup asking to allow the RSA keys will show up. Check Always Allow and accept it.

After that, 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. Troubleshooting Driver Issues

Sometimes the drivers don’t install correctly and need a little coaxing to get them to work properly. Here’s common ways to do that.

Manually Tell Windows About the Drivers

1. On your computer, use the search feature (either using the search charm on Windows 8 or the search bar at the bottom of the screen in Windows 10) and search for Device Manager and then open it.

2. In the device manager. you should see an exclamation point on an item (this indicates that the drivers didn’t install for that item). Right-click that item and select Update Driver Software

3. Then select “Browse My Computer…”

4. Then select “Let Me Pick from a List…”

5. Select Android Device > Android ADB Device.

Now, unplug and plug the device back in and run the adb devices command from step 13 above and see if you get a serial number this time. If so, you are all set.

How to Setup ADB/Fastboot on Mac

ADB and Fastboot can also be installed on a Mac relatively easily thanks to another clever developer. Here’s how.

I. Download and Install ADB & Fastboot for Mac

1. Download the developer’s script from my Google Drive and save it to your desktop.

ADB & Fastboot Installer for Mac

2. Extract the newly downloaded zip file to your desktop so it creates a new folder called Android on your desktop.

3. Hit Cmd + Space bar to bring up Spotlight Search and search for Terminal and open it.

4. In Terminal, type the following with hitting enter at the end of each line:

cd Desktop/Android

./ADB-Install-Mac.sh

5. That should run the script so everything is installed and you can issue ABD/Fastboot commands from anywhere in Terminal. Let’s test it out, though.

6. On your phone, go to Settings > About Phone and continually tap on Build Number until it tells you you are a developer.

7. Hit Back.

8. Go to Developer Options and turn on USB Debugging.

9. Plug your device in via USB cable.

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

cd Desktop/Android/Mac

./adb devices

11. If it’s a newer Android phone, a popup asking to allow the RSA keys will show up. Check Always Allow and accept it.

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

Some Common ADB/Fastboot Commands

ADB Commands

*For Mac users, simply add a ./ in front of the commands to get them to work.

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

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}

fastboot update zip <zip filename> – updates the phone with a ROM stored on the PC.

Let me know if this worked for you in the comments below!

Related Items: , , ,

712 thoughts on “How To Set Up ADB/USB Drivers & Fastboot for Android Devices (Updated 09/23/15)(Video)”

  1. I’m having problems, I follow all the steps
    But when I open command pront it says file path
    Not found.now di I open the file androidsdk and hit setup. ?cuz when I do it says can’t installed HTML not found, pls I need help I’ve been trying for 3days now

    1. Jae,

      If it cant find the system path it is because you did not rename the folder AndroidSDK and you did not put it on the C drive (not in any folders).
      Also check to make sure there isnt any extra folder inside the SDK folder (i.e. AndroidSDK/androidsdk/tools).
      Good luck!

  2. Unlockr,
    I keep getting to the driver installation and come up with this message ” The file ‘androidusb.sys’ on ADB interface Installation Disk is needed” Please help man ?

  3. ok so i got all the way through adb and the device isn’t up….the problem is to begin with im doing all of this because i dont have the data plan so i cant activate it, and it is required to do this to activate…so my question is how to a activate debugging on my phone if i cant get into it??

  4. i have a few questions that i would like to ask! a lil birdy told me that i could use adb to remove unused widgets from my current hero rom? i was told that this would free up internal memory and speed up the rom? if this is so, what commands would i need to input? and if i did this and later decided that i want to switch back to cyanogen, would i ever get them back? any info would help! thanks!
    -unused widgets-
    andriod analog clock
    andriod music
    only need one or two of the htc clocks…
    htc photo album
    htc photo frame
    stocks

  5. The window’s 7 ways is super complicated. i dont understand the lingo on that site. could you give me a tutorial? it would help alot.

  6. Hello Unlockr,

    Thanks for everything. I followed your instructions and can find my device when I use ADB devices.
    However, when I use command fastboot devices, it does nothing but goes back to the c:\androidSDK\tools.
    Does that mean fastboot is not recognizing my device?

  7. Never mind. I think I got it. I have to get the phone on fastboot mode (volume down/power) and then connect to the computer via USB and then cmd on Windows, right?

  8. I’m trying to register my phone without sim or data plan…..I downloaded the SDK but why is windows only installing it as a USB mass storage how do I get the “HTC dream adb interface” driver to install on my comp when my phone is unregistered or has no sim card? People are saying turn on USB Debugging option but I can’t even go into my phone without being registered first.

  9. hello Unlockr,

    I cannot seem to get the drivers installed correctly. This is my second phone which I am rooting and didn’t have any issues with the first one. I tryed everything I could think of. Running Windows XP and get the popup window asking if I would like to search for the drivers. It searches, then sais it could not install device……. Any Ideas?

  10. Hi.
    I just get this error message:
    adb server is out of date. killing…
    ADB server didn’t ACK
    * failed to start daemon *
    error:

    Can you provide any help on this?

  11. ADB USB DRIVER

    I’m running windows XP and could not get this thing to install on my laptop. It did install on my work PC however. Anyway I finally got it to work by doing the following:

    1. download http://android-roms.googlecode.com/files/android_usb_windows.zip

    2. unzip to c:\AndroidSDK (files will be unzipped to c:\AndroidSDK\android_usb_windows)

    3. unplug and plug USB from PC

    4. When windows asks for driver location, point it to c:\AndroidSDK\android_usb_windows.

    This is what worked for me.

  12. if someone can help me out please i have did a few steps but i am stuck if i can get someone to be kind enough to maybe help by walking through with me personally helping me the directions here aren’t working for me i can’t get the cmp to recognize my commands please if you yahoo messenger feel free add me supa.dave2k7 or email me at supa.dave2k8@gmail.com i am tryna do it with a mytouch 3g on a windows vista 64bit please help am so fustrated

  13. Well I done everything said and I still nothing but I had a problem downloading the driver for the Nexus One it says I need a password on the Mega upload website in order for me to download it.

  14. unlockr please help me… i have sucessfully loaded the adb and all htc drivers but when i do my commands i make it all the way to the final command adb devices and my command prompt keeps telling me that “adb” is not a recognized internal or external command…lol ive been on this thing for hours no if you could please either email me personally or help me on here either way THX!!! btw….i have rooted completly fine but in order to flash a rom a do have to set this up.. THX AGAIN!!!

    1. Dustin,

      That means you are not in the folder where adb is when you type the command. If you saved the sdk as androidsdk on your C: drive, then you need to type the c: \androidsdk\tools command first.

  15. unlockr,

    in my command prompt i type:
    cd
    c: androidsdktools
    adb devices……and this comes up right as i enter
    adb is not recognized as an internal or external command, operal program or batch file.

    man ive been reading for days i appreciate you replying if you can help me it would be greatly apreciated!

  16. i cannot install the adb.. my g1 is not detecting the driver.. crazy.. i have the sdk and updating now.. how can i get my phone to work. i restarted both pc and phone nothing is still connect.. idk what to do?!

  17. unlockr,

    in my command prompt i type:
    cd
    c: androidsdktools
    adb devices……and this comes up right as i enter
    adb is not recognized as an internal or external command, operal program or batch file.

    man ive been reading for days i appreciate you replying if you can help me it would be greatly apreciated!

    1. Dustin,

      Go into your C drive in My Computer, then goto AndroidSDK then tools. Do you see a program called adb in there? If not then redo the Setup ADB procedure.
      Also, in your second line “c: \androidsdk\tools\” it should be:
      cd c:\androidsdk\tools
      then hit enter

  18. i did everything and when i do the cmd
    cd\
    cd c:\AndroidSDK\tools
    the system can not find the path specified

    can you please tell me what went wrong

  19. i did the cmd but all that came up was “list of devices attached” and no serial number.. what am i doing wrong?

  20. So any word yet on how to officialy work past the problem with the drivers not installing properly? cause i still cant figure out a way to bring up the serial numbers. USBDeview is telling me that the computer see’s the driver, but of course when i run the comand’s to check for the serial nothing comes up…and still no actuall answer to solve this problem. I think this problem is most apparent with xp users like myself?

    1. Jared,

      You need to manually install the drivers. Read this part (if your drivers are not listed there Google them or goto the manufacturer’s website for them, i.e. HTC):

      *Otherwise, if you don’t see an ADB driver for your phone then install the drivers for your specific phone manually.
      Download your phone’s driver’s below then click Update Driver > Browse > Let me pick > Computer > Have Disk > Browse > Then select the driver you downloaded below:

      Motorola Droid Drivers (unzip the file once you download it).

      Motorola CLIQ Drivers (follow the instructions on the page).

      Nexus One Drivers (unzip the file once you download it).

      !!!!You can also goto Device Manager > Right Click Android Phone > Properties > Update Driver > Browse My Computer > Goto the Android SDK Folder > And click USB Driver folder then click ok and it should install the ADB driver.!!!!

  21. Hey, thanks for the quick response. I have tried everything in the guide you recommended and I have searched all over Google for my driver. The only driver I could find is the android sdk manager tool which downloads the usb adb drive. I have read on the xda forums that my model of HTC hero is the 130 model. I don’t know if that helps you help me but that’s where Im at now. If you perhaps have a link or can direct me to a link that has the driver for my phone I would love you even more than I do now. 🙂

  22. I think i did everything correctly , but when i go to CMD it says ” *daemon not running. Starting it now *
    * daemon started succesfully * then it says , List of devices attached , the serial doesnt come up . Im trying to Activate my G1 without Data Plan and im downgraded all the way to RC29 but is still not working .

  23. First of all, great website. I rooted my mt3g using your methods. Here is my scenario, I’m trying to root my nexus but when using the command window I get the following *daemon not running. Stating it now* *daemon started succesfuly* after this no serial number comes up. Using the USBDeview I noticed that while having the phone plugged to the computer it shows me a serial number, my question is, on the commnad promp window, is it neccessary for the serial number to show up or am I good to go given the fact that I’m able to see the number using USBDeview app?

    Thank you very much.

    1. Dante,

      Thanks!
      The serial number has to show up in the command prompt (this means that ADB can see the phone, which is necessary).
      Download the Nexus drivers manually on this page and follow the instructions in Section III to install them.

  24. So i guess this is the first HTC Hero that theunlockr can’t crack judging by the lack of a response? hmmmm, i think the only people that know how to root a Hero130 is the xda-developers site.

    They seem pretty quick to responde too, Just an F.Y.I for anyone who has a Telus HTC Hero that theunlockr can’t figure out how to root.

    cheers gl to everyone.

  25. Hi,

    I have a question regarding changing the setting on my HTC Tattoo (Orange UK). I cannot get passed by the either “Insert SIM card to place calls” screen when no sim installed. Or when sim installed passed the “Insert your unlock code” screen.

    Any help would be much appreciated.
    Peter

    1. Peter,

      That means your SIM card has a lock code on it. Either put in your passcode to unlock it (you created it if it your SIM card), or use a different SIM card.

  26. Hi I’m want to repair my droid and I’m trying to learn about adb. The site seems geared towards windows users. I would like to know how do I install android sdk to a mac, and work from there. Thanks.

    1. Mark Moore,

      Google Android SDK and on Google’s home page for it download the Mac version instead of Windows and continue just replacing command prompt with terminal.

  27. This is not working for me. I have the Samsung Behold 2 and when I plug it in (With USB Debugging on), it shows up but says cannot find the device driver. I try to install this manually but it is still not working. Any help?

  28. Dustin Covington

    I have an unlocked moto cliq. I have everything installed and everything in the right folders. When I get to

    cd\
    cd c:\AndroidSDK\tools

    C:\AndroidSDK\tools>adb devices

    I get this:

    C:\AndroidSDK\tools>adb devices
    List of devices attached

    C:\AndroidSDK\tools

    Please help

  29. The Stumbling Block

    Just not working at all. My laptop refuses to allow the installation of drivers because of some code that says it can’t find the “digital signature” of the drivers, and that’s where it stops with me. I can’t get it to do anything at all, so all my attempts to figure out this confusing, frustrating bunch of bullcrap that I have to go through so that my overpriced, ridiculous piece of crap called a Samsung Behold II, can become tolerable to use, is proving to me that I’d rather just have a goddammed Pong game. What the hell are we blowing all this money on this tiny device that makes us have to go through all this baloney and still not work right anyway?

  30. I have read through this entire post. I have tried all the things people have suggested. But it still won’t work. Right now I am at the point where I enter it into command prompt but get the system can not find specified path message. it is on the c drive in its own folder with the correct name and the adb program is in the tools folder. please help. thanks!

    1. Kasey,

      Try to cd one step at a time. Type:
      cd\
      cd androidsdk\

      (if that is what you renamed your SDK folder like you were supposed to) and see if that brings up C:\ANDROIDSDK\
      Then type:
      cd tools\
      and see if it comes up with C:\ANDROIDSDK\TOOLS\ if not, then you know that it cant find the tools folder. Go look in the androidsdk folder and make sure the tools folder is right in front of you the minute you open that folder (if there is another folder you have to click through to get to it then you did not follow the directions and need to take everything out of that folder and place it in the androidsdk so that the tools folder is visible the minute you open the sdk folder, got it?)
      Good luck

  31. my question is how do i put my phone on the settings to put it on usb debugging when i have no data plan and stuff all there is are apn settings and there are no applications windows there

    1. Dareel,

      Are you talking about a phone you have not activated yet? You need to get past the Welcome screen and get to the actual phone home screen. Then push Settings, and Applications etc.

  32. @David this happened me too, check that the tools folder isn’t within another subfolder in the AndroidSDK folder with windows explorer

  33. For everyone using a Behold 2 and has a 64bit system you can still root! Restart your computer and press R8. After you do that disable Driver Signing. If the drivers were already installed you should be able to see that everything for this device is installed correctly.

  34. Unlockr,

    In the command prompt i’ll type in

    cd C:\
    AndroidSDK\tools
    ADB Devices

    and then it says

    list of devices attached
    (then a blank line underneath and then…)
    C:\ AndroidSDK\tools

    any help? my phone is an HTC Hero (Telus) … The canadian model.

    Thanks in advance

  35. Also,

    I’ll download the HERO drivers off the web and then when I try and update specifically to that folder it will say it cannot complete the wizard because the wizard cannot find a better match for my hardware than the software i currently have installed

    1. Mitchell,

      Follow the part of our procedure that tells you how to USB USBDeview and use that to uninstall all the htc drivers, then unplug and plug the phone back in and reinstall them manually (stop windows from checking windows update for the drivers when it tries).
      Good luck!

  36. You say this guide is for Mytouch Fender but you don’t have any drivers listed for the Fender? I’ve searched literally over an hour and still can’t find the Fender driver??

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.