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. Just follow the written procedure. Download the sdksupport and unzip it. Then copy the sdksupport folder inside to the c drive and rename it to androidsdk. Open that folder and make sure that the tools folder can be seen immediately (and there isn’t another folder in between). Then read the update in the procedure and download the ADB files and put them into the tools folder. Done.

    1. Mikej Mcclendon

      I don’t know if they changed the app since you made this update but there is no “adb devices” bat file or application in that path. Am I doing some thing stupid? I have followed your directions to a tee, but I cannot get this command to run at prompt. I do as you say I browse to the the tools folder and the attempt to execute the command but just get the typical bad command error

      C:androidSDKtools>adb devices
      ‘adb’ is not recognized as an inoperable program or batch file.

      as you can see it does not even recognize the second word as is always the case when you put it with out quotes at prompt. This leaves me to believe that I am doing something fundamentally wrong…what is it???

    2. Mikej Mcclendon

      I don’t know if they changed the app since you made this update but there is no “adb devices” bat file or application in that path. Am I doing some thing stupid? I have followed your directions to a tee, but I cannot get this command to run at prompt. I do as you say I browse to the the tools folder and the attempt to execute the command but just get the typical bad command error

      C:androidSDKtools>adb devices
      ‘adb’ is not recognized as an inoperable program or batch file.

      as you can see it does not even recognize the second word as is always the case when you put it with out quotes at prompt. This leaves me to believe that I am doing something fundamentally wrong…what is it???

    3. Mikej Mcclendon

      I don’t know if they changed the app since you made this update but there is no “adb devices” bat file or application in that path. Am I doing some thing stupid? I have followed your directions to a tee, but I cannot get this command to run at prompt. I do as you say I browse to the the tools folder and the attempt to execute the command but just get the typical bad command error

      C:androidSDKtools>adb devices
      ‘adb’ is not recognized as an inoperable program or batch file.

      as you can see it does not even recognize the second word as is always the case when you put it with out quotes at prompt. This leaves me to believe that I am doing something fundamentally wrong…what is it???

    4. Jose_tenorplayer

      idk if it might help but i would but the adb thing in bold first, you know?? so everybody reads that first before setting that up, and then have it the second time in the instructions, just a suggestion

  2. Thank you THANK YOU! As soon as I reinstalled the driver in part II I did everything it said on the screen and kablamo! I’m in business. I have a Droid Incredible btw

  3. ok i cant even install the android sdk. I installed the latest java SE development kit and when i run the windows installer for the Android SDK it says it does not detect the JDK. i’ve uninstalled/rebooted/reinstalled but it does not detect it. is this b/c i’m running in a Win64bit environment?

  4. ok i cant even install the android sdk. I installed the latest java SE development kit and when i run the windows installer for the Android SDK it says it does not detect the JDK. i’ve uninstalled/rebooted/reinstalled but it does not detect it. is this b/c i’m running in a Win64bit environment?

  5. I was going to take a short cut and just ask for a solution to the problem I was having. Instead I did something crazy and ….read the entire “How to”. I kept receiving an error at the CMD prompt ADB not an internal or external command. I needed to download the ADB files just as written in the update. Thank you very much for the clear and detailed steps

  6. I was going to take a short cut and just ask for a solution to the problem I was having. Instead I did something crazy and ….read the entire “How to”. I kept receiving an error at the CMD prompt ADB not an internal or external command. I needed to download the ADB files just as written in the update. Thank you very much for the clear and detailed steps

  7. I was going to take a short cut and just ask for a solution to the problem I was having. Instead I did something crazy and ….read the entire “How to”. I kept receiving an error at the CMD prompt ADB not an internal or external command. I needed to download the ADB files just as written in the update. Thank you very much for the clear and detailed steps

  8. Hi Unlockr! i would like to ask. i kinda did everything until i downloaded the adb files and extracted it in the tools, when i did the CMD thing it says list of devices attached. does this mean anything? thanks!

  9. I got stuck on the “cmd” part also and so started the procedure to reinstall the drivers thinking that was the problem so i downloaded and opened “USBDEVIEW” I saw that one of the items said “currently connected” and next to it “yes” and in another column named “serial” THERE WAS THE SERIAL NUMBER FOR MY PHONE!!! HOPE THIS HELPS SOME1 ALSO. =)

  10. Please reply to this message!! I’ve been on your site for more than 12 hours now!
    I have a mytouch 3g 32A, tried to root it but did something wrong, and now all I get is HTC Magic boot logo!!
    I can’t make a gold card or setup ADB. When I try to setup ADB, I get a list of devices attached.
    Please give me some steps to getting rid of this!!
    I believe in you guys, and keep up the good work.
    Thanks

  11. i have a g1 and i also get stuck on the part where i put adb devices on the cmd it says The system cannot find the path specified

  12. i have a g1 and i also get stuck on the part where i put adb devices on the cmd it says The system cannot find the path specified

  13. hi im having a problem wen i type adb shell chomd 0755 /data/local/try3 it says error device ofline how do i get it online wen its already plugged into my computer?

  14. when i type adb devices, here’s wat it says:
    ‘adb’ is not recognized as an internal or external command, operable program or a batch file.
    what shall i do?i need help really…
    my android device is an ipad…its not a phone…i had a hard time looking for a usb driver for my deice..pls help..

  15. Theunlockr,
    Got the ADB loaded and it seems to be running but when I plug in my G1 I get the “serial number” some space then it says “device” but when I plug in my Behold 2 it gives me “SGS-T939” some space then it says “offline” It won’t let me enter the next step because of the offline thingy, any ideas?

  16. Im doign the activation without a data plan and i am not able to go on the phone and click settings and application (3). What should i do?

  17. Mikej Mcclendon

    My GOD what a gigantic pain in the butt that was to figure out, it seems they have updated SDK since this tutorial was created.

    After clicking on the link Unlockr provided and picking my platform in .zip format, I extracted as directed to the root of C: drive.

    Then went to DOS prompt; (I know it’s not really DOS any more but I digress) I should say COMMAND prompt and browsed to the c:androidSDKTools and proceeded to type in the command adb devices…and got the response:

    ‘adb’ is not recognized as an internal or external command,
    operable program or batch file.

    This is because I was in the wrong directory, it seems they have changed the file structure of SDK. You now need to browse to: C:androidsdkplatform-tools and enter the same command….and PRESTO it works.

    I think this is relevant also; before I did any of this I browsed to C:androidsdk in file explorer and executed the application SDK Manager.exe and did all the updating.

    1. Thanks for the info, but you could have just done the procedure exactly as written and that would have worked too 🙂 (If you read step 6 it gives you the ADB files to download and just extract to the tools folder and your all set).

      1. I did the procedure exactly as written 3 times, the “adb” command was not in that path. Is a matter of fact until I updated with the manager it didn’t exist.

        I don’t claim to be any kind of expert but I know just enough to be dangerous, and I am telling you I couldn’t get any thing but an unrecognizable command echo.

        Do me a favor double check that some thing hasn’t changed using your link here, and see if the “adb” command is in the path you specify or in the folders at all before you update with the manager.

        1. I am also “dangerous” when it comes to these things. Follow the video carefully and it does work, I can testify to that. I had to go a different route(path) than the above and I still got the adb to work. I spent alot of time the day before reading stuff on the internet. My suggestion is to let this simmer for a day or so, then come back to this post. All I can say is make sure you have all the ingredients….whatever they may be.

      2. I did the procedure exactly as written 3 times, the “adb” command was not in that path. Is a matter of fact until I updated with the manager it didn’t exist.

        I don’t claim to be any kind of expert but I know just enough to be dangerous, and I am telling you I couldn’t get any thing but an unrecognizable command echo.

        Do me a favor double check that some thing hasn’t changed using your link here, and see if the “adb” command is in the path you specify or in the folders at all before you update with the manager.

      3. Oh shite!!!! SORRY…you are absolutely correct!!!

        It’s amazing what a little reading ahead will do isn’t it.

        I’ll just back out of the room quietly now, Hey by the way awesome, well written, complete, and easy to follow How To.

        Thanks 🙂

      4. Oh shite!!!! SORRY…you are absolutely correct!!!

        It’s amazing what a little reading ahead will do isn’t it.

        I’ll just back out of the room quietly now, Hey by the way awesome, well written, complete, and easy to follow How To.

        Thanks 🙂

      5. Hey, thanks for all the info. I tried to download the file from step 6 but my country has it blocked. I tried to do it through a proxy and ended up downloading a php file. I am trying now to do what Mike suggested. I hope it works. Again, thanks for the instructions.

    2. Thanks for the info, but you could have just done the procedure exactly as written and that would have worked too 🙂 (If you read step 6 it gives you the ADB files to download and just extract to the tools folder and your all set).

    3. Thanks for the info, but you could have just done the procedure exactly as written and that would have worked too 🙂 (If you read step 6 it gives you the ADB files to download and just extract to the tools folder and your all set).

    4. Thanks for the info, but you could have just done the procedure exactly as written and that would have worked too 🙂 (If you read step 6 it gives you the ADB files to download and just extract to the tools folder and your all set).

  18. Mikej Mcclendon

    My GOD what a gigantic pain in the butt that was to figure out, it seems they have updated SDK since this tutorial was created.

    After clicking on the link Unlockr provided and picking my platform in .zip format, I extracted as directed to the root of C: drive.

    Then went to DOS prompt; (I know it’s not really DOS any more but I digress) I should say COMMAND prompt and browsed to the c:androidSDKTools and proceeded to type in the command adb devices…and got the response:

    ‘adb’ is not recognized as an internal or external command,
    operable program or batch file.

    This is because I was in the wrong directory, it seems they have changed the file structure of SDK. You now need to browse to: C:androidsdkplatform-tools and enter the same command….and PRESTO it works.

    I think this is relevant also; before I did any of this I browsed to C:androidsdk in file explorer and executed the application SDK Manager.exe and did all the updating.

  19. i have a question what if i need this to activated without a data plan…??
    and im not sure USB debugging is on?
    what do i do??

  20. Thank you very much, you really helped me!
    The ADB files were missing in the SDK, and I was really stuck until I came across your site. So thank you!

  21. Thank you very much, you really helped me!
    The ADB files were missing in the SDK, and I was really stuck until I came across your site. So thank you!

  22. Thank you ever so much dude! Had problem installing my adb driver from my htc desire HD and it finally works.
    Cheers Bro 😉

  23. Ok, I been trying this, and I have a different problem, when I go to install the driver, it reads as a Remote NDIS.. correct me if I’m wrong but I feel like this is HEAVILY interfering with my ability to get the correct drivers. I followed all the steps thoroughly, my phone just WON’T connect. Any thoughts on this?

  24. i have the htc evo shift. im stuck at deleting everything from usbdeview, nothing will delete. i tried using unrevoked anyway and it says device speedy is not supported

    1. You can only blame yourself if you’re an idiot and a moron. You should have paid attention in school, you would have learned something other than cuss words…

Leave a Comment

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