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. Joshua Servin

      After the message comes up where it says it failed to fetch URL, close the window and then cancel on the next window. And now on the left, click settings. On the bottom, under “Misc” check the box that says “Force https://…”. Close the program and reboot. Hope it helps 😀

  1. Ok, So I thought I had done this install the ADB correctly. When I ran the cmd menu and the Serial number is suppoed to show up it came up the t939 and I thought I was set. Now no matter where I plug it in it cannot read the device. on top of that it fails to install the driver (manually or automatically) even if I run SDK setup.. Help? I can no longer access my phone at all unless I take out my memory card and plug it in seperate..

  2. I can’t install the drivers for my HTC.
    It is a HTC Desire, and when I plug it in it says i reqiure a disc which should have come with my phone. but no disc came with it, What should I do?

  3. Hey Unlockr,
    I have a Samsung Behold 2 and running on Window Vista 32bit.
    I tried by follow the step by step but the Serial number did not show up, the USB Debugging is on and installed the driver manually and automatically, download the USBDeview and tried….still no luck! Does it matter if I have a data plan or not? Not sure what I did wrong…

    Can you or anyone provide any help on this?
    Thank You

  4. It still says “List of devices attached” and nothing below it. i followed all the steps, please help me.

  5. The behold 2 doesn’t have HTC on the USB Files..

    So do we still have to erase something?

    cause im not getting the serial number. :/

  6. HELP ! this doesnt wok on any of my windows. p.s or my macbook. Do you need to do this to have ROMS themes ? and this guy told me not to do this it can screw up your android badly HELPPPPPP!

    1. Phil,

      1. This cannot screw up your phone. It doesn’t touch your phone its a tool for developers to communicate with their phone and create applications…
      2. You need to click How Tis at the top of the site, then Android then your phone. Do the How To Root then How To Load a ROM. After that you can change your phones themes etc

  7. I’ve tried this process three times even after reinstalling the drivers of my phone and also redownloading the sdk file and I can’t get my computer to pull up the serial number. I am using windows xp and I did the “How To: Root my HTC Evo” before this. Will that cause the error I am having or what is it exactly I’m doing wrong? I’m just trying to get the Nand so I can download the Cyanogan ROM.

  8. Hello, I have a MyTouch 3G (the one with the 3.5mm headphone jack, and its running 1.6). I get up to the part where its supposed to show your serial number, but all it displays is nothing (no errors or anything, just a blank line). I’ve tried putting my phone in with USB debugging turned on, but still nothing (Am I supposed to mount it or just plug it into the computer?). By the way I’m running a 32bit Windows XP Professional. Please any help is great.

  9. My debug is checked on and I am still having the same issue. When I open my cmd it and type what is prompted it says ‘The system cannot find the path specified.’

  10. Does ANYBODY know where I can get the MyTouch 3G (New 1.2 & fender) drivers for download? At the top they aren’t provided…..

  11. Hi, I was wondering does any one of this site knows how to do this HowTo videos on linux? I REALLY want to root my behold 2 but I have no idea how to do it with linux any help? thanks

  12. i did everything didnt get a serial number, did the second step still didnt get a serial number. please help!!

  13. Ok im having a problem.. im trying to do ADB i have a MacBook Pro everytime i use terminal n i get into were i have androidsdk i type adb devices i get this code:

    -bash: adb: command not found

    Anyone know why im getting this code? if you can help that’ll be great.. thanks

  14. I have a MyTouch 3G (the one with the 3.5mm headphone jack, and its running 1.6). I get up to the part where its supposed to show your serial number, but all it displays is nothing (no errors or anything, just a blank line). I’ve tried putting my phone in with USB debugging turned on, but still nothing what else should I do? By the way I’m running a 32bit Windows XP Please any help is great

  15. Like a few others, I don’t have a service plan for the g1.
    There is no way to reach the home screen, or settings screen to turn on debugging. (or at least that I know of)
    Pretty much can’t do anything to the phone except marvel at our paper weights.

    How can we get the serial number if we can’t debug?

    also only HTC Mass Storage driver appears when I try to reinstall drivers.
    and its the only one there when I uninstall.

    Are we pretty much outta luck?

  16. I cannot get the ADB to mount the system file

    i am typing

    adb shell mount /system

    and i keep getting back an error that the system is busy, what am i doing wrong?

    i am running MoDaCo r5 ROM with Froyo

    thanks

  17. Hi Mr. Unlockr,

    My Vista 32-bit computer gives the notification, that there is an unknown device, when looking at the Devices selection, i tried the things you wrote above, but nothing helps, i still can’t access my phone via usb, which is kinda shitty because i want to root and set a custom rom on my Htc Hero 2.1.

    And another question, can you root and custom when you’re on fw 2.1update1 (eclair)
    It’s unbranded btw, no sprint or other plans.

    I hope you can help me, because i really want the latest villianrom on my hero 🙁

    Thanks in Advance.

  18. absolutly confused… when you plug in the phone(evo) does it need to be on sync mode… ordisk drive or charge only?

    cannot find any of this stuff confused jesus help

  19. okay my phones rooted.. i just cant seem to get the adb to pop up… i look in my device manager and it says my HTC… i click on My HTC and i get this “Windows cannot initialize the device driver for this hardware. (Code 37)”
    what should i do?

  20. Hi Mr. Unlockr,

    My Vista 32-bit computer gives the notification, that there is an unknown device, when looking at the Devices selection, i tried the things you wrote above, but nothing helps, i still can’t access my phone via usb, which is kinda shitty because i want to root and set a custom rom on my Htc Hero 2.1.

    I tried to set up the adb, but it doesn’t give a serial number.
    Also i tried to manually install the drivers and soo on.

    And another question, is it able root and custom when you’re on fw 2.1update1 (eclair)
    It’s unbranded btw, no sprint or other plans.

    I hope you can help me, because i really want the latest villianrom on my hero

    Thanks in Advance.

  21. when i type in AndroidSDK/tools/ and press enter it says its not recognized as an internal or external command

  22. Hey Unlockr,

    i did the whole thing and my serial number showed up but next to it said “Offline” when yours said Recovery, why is that and when i tryed to root my mytouch slide, it said error phone offline, what did i do wrong or what am i missing!?

  23. hey. i tried to run the sdk on my PC, but is not accepting the |Drivers and the G1 android is not is the list of drivers you guys have. How can i get it?

  24. Hey Unlocker Great page i’ve lern a lot with it. But i’m having a major Problem i guess! i have a G1 and i’m trying to setup the Gmail account with a data plan (wifi) but my computer is only recognizing the device as a
    >Mass Storage< only . how can i get it Done to have it recognize with all the conponent

  25. OK, this is confusing I only wanted to install a ROM anyway I digress.

    I need to make a goldcard because I can’t unroot my HTC magic, I have followed all the instructions up to this point.

    – After typing the cmd lines in, it doesn’t show the serial number.

    – The HTC MAgic drivers are not included in your list.

    – So I downloaded USB deview, there were only 2 HTC drivers I tried unistalling only 1 would uninstall (Running as administrator)

    – I unplugged the USB and back in, and the updating drivers balloon doesn’t show and the device manager still shows the driver I was unable to uninstall

    – When I plug the phone’s USB cable back in, I get the error message “Windows – No Disk” – Exception Processing Message 0xc000… etc.

    – I have searched the comments you made about the Magic it reads,

    “Reason those devices are missing is because they are included in the USB driver folder of the SDK itself. Just install them from there.”

    What does this mean? I have searched the SDK folder for a USB drive folder I don’t see one. Do I have to put the SDK folder onto my phone’s SD card?

    Also am I receiveing the error message because I deleted the HTC driver and it isn’t re-installing?

    Thanks for your help.

    Much apprecieted.

  26. I have looked some more into it, is the problem with AndroidSDK folder I have downloaded?

    Should there be a USB Drives folder in there? When I open it up there are only 3 folders – addons, platforms and tools. And the SDK Setup.exe

  27. Hey Dave, so I figured it out and just wanna put it up in the comments in case anyone else has the same problem.

    ** Works for HTC Magic users **

    The link in this tutorial for the AndroidSDK.zip is the latest version and has no USB drivers folder.

    If you go to http://android-sdk.en.softonic.com/ it will give you an older version SDK 1.5 with the drivers.

    Continue on from step 2.

    Hope this helps.

    Dave, I dunno if you have any qualms about me linking to another site, if so I apologize. Also could you help me out I posted my problem in the How to Root your MyTouch 3G / Magic (GOLDCARD METHOD)

  28. i did everything perfect and it didnt work, then i did the manual driver install and still it didnt detect my phone. then i used the app to delete all htc drivers which didnt make sence but i did, them reinstalled the behold driver all 3 ways you tell us to and an still no detection. so now what??

  29. Hey, TheUnlockr, when I go into the command prompt and input the commands in the steps, it just says ” A list of devices attached” with no serial. Any help?

  30. hi David,
    I’m trying to create a “GOLD CARD” I’m following your video step to create it. but now i’m stuck in the middle where i needed to type in the command in the adb shell “$ cat /sys/class/mmc_host/mmc1/mmc1:*/cid”
    it come out with the message ” /sys/class/mmc_host/mmc1/mmc1:*/cid: No such file or directory” what is my problem here?
    I’m using HTC LEGEND.. plz help me~
    Thanks alot

  31. So’ I’ve done ALL the steps. Numerous times. And I can’t get it to work at all on my Cliq. And when I download the USBDeview there are NO HTC titles in there? Please help me! I don’t know what I’m doing wrong!

  32. OK, I had similar issue with adb when I try to list it.
    All you have to do is killing the server and restart it again.

    From the command line in the same tools location type these:

    adb kill-server
    adb start-server
    adb devices

    If you have all the drivers in your computer, these steps should solve that.
    Please update the post, to make easier to those people who are looking for that.

  33. I’ve tried 20 times to get the drivers to install is there a different process i should do if I’m using windows 7 because it’s still not finding the serial to my samsung behold 2?

  34. how do i download a driver for the my touch 3g there is no link and it wont automatically do it please reply and help!!!!

  35. Hi Unlockr,

    Great site, keep up the good work!

    I’m having problems loading the adb drivers on an XP machine. I have tried everything above, including USBDeview. Is there anywhere that I could get the INF driver file directly? I am using an HTC Legend.

    thanks
    _mccard

  36. Ok, I’m trying to activate my HTC G1 without a data plan. I’m stuck with the drivers, I know I’ve done everything else right becuase I tried it with a HTC Evo and was able to get the serial number so I know what I’m doing is right. However when I plug my G1 into the computer it always just shows up as a mass storage device. I have tried the usb dev thing, and have even tried to manually install the drivers but, honestly, I don’t really know what to look for, when I use the manual method it says that the driver isn’t the right driver. Any help you can provide would be really appreciated as I am at my wits end. Thanks

    1. i tried your steps but still get adb server killing,…list of devices, no serial. Curiously, when i used the device manager checking drivers on my HTC desire, it says drivers installed by HTC and the version number of it. The question i want to ask is if the HTC drivers and adb drivers are the same or not.

  37. hi unlocker, a quick question from a newbie here, you might have answered this already but it’s kinda hard to
    browse and read the post one by one, so heres my dilemma,

    i already followed the steps but i can’t install apps in my phone, i mean 8s saying error on adb composite, and i followed to check for the adb in the cmd prompt, and there were no serial numbers, so i tried to install it manually now, heres the thing, i’m still using WinXP and everytime i click on update drivers it’s prompting me to a choice, and after i downloaded the drivers which should be installed (btw my phone is samsung galaxy spica gt-5700 android v2.1) i has 2 folders, now im not sure what to install or update..

    my supposidly smart phone is as dumb our neighbor and i really really would appreciate it if you help me go through this… heheheh tnx lots….

  38. Just unpacked the latest android sdk by right clicking on the zip file and choosing Extract Files… then typing the name AndroidSDK and it creates an additional folder so, to get to the tools folder the correct address would now be:

    C:\AndroidSDK\android-sdk-windows\tools

    or you can just move all the files and folders in the android-sdk-windows folder iinto the AndroidSDK folder to follow this tut verbatim.

  39. behold 2 (firmware 1.6)
    vista basic (32-bit OS)
    C:\AndroidSDK <–it is renamed

    ok this has turned out to be an EPIC FAIL!!!
    like i said i have a behold 2. i owned it for a while now and had it loaded with apps. and i decided to do a "master rest" on the phone so it would be all original for all of this…….. basically i seen the videos on youtube of the behold 2 running on galaxy s ROM thanks to BH_Man. and u (theunlocker.com) give a vidoe of uploading this ROM. to do so the behold 2 must be ROOTED. in order to do so…. and in order to ROOT the behold 2 u need to do THIS "adb/usb BULLSHIT!!! i lost count of how many times i have tried to do this!!! i have downloaded ALL the files provided above ( in regards to behold 2) and i follow ALL the instructions exactly as instructed, and when i have the the files extrated to there proper locations: i downloaded "Android SDK" for windows, from the above link. the files were extracted to the Cdrive, and renamed AndroidSDK Ex. C:\ AndroidSDK. my behold 2's USB debugging was enabled.the samsung/android decive drivers were already installed, but were also uninstalled and reinstalled several times, using all metheds from above:manual and with ur drive pack. i tried using all three: samsung pc studio, mass storage, and jus charging. and when i go to the cmd and enter in all the commands i NEVER get a serial number at the end!!!!!

Leave a Comment

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