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 too keep getting the same “‘adb’ is not recognized as an internal or external command” for the last 2-3weeks and i’ve copied/pasted from the above instructions…i do think i have a clue to things, but this is making me rethink things LOL all I want to do is root my damn motofail cliq xt and get it running smoother and better and i hear that once you do around here its all GOOD…..anyone can IM me on Y-IM Kozmo960
    Thanks in advance!

  2. i did everything and works except that i cant get the serial number to appear is it because im trying to root a htc hero without the sprint service?

  3. hey i got stuck at d cmd part after downloading all the drivers i plugged in my Motorola c liq xt to my pc and turned on usb debugging but still i did’nt c any serial number on the command prompt after typing the code
    I even tried the usb deview application but what i noticed is that on the only the usb composite device is stated connected the android adb interface is not pls help me out

  4. Hello. I Have A LG OPtimus GT540. And I’m Trying To Install A ADB. And I Flowed You Instruction. And It Wasn’t Coming Up With My Device. And When I unInstall. The Driver In The USBDeview. And Plug My Phone Back In. There Wasn’t One For ADB When It Was Installing The New Drivers. How Do I Get It To Work
    Thanks

  5. Everytime I go in to the safe mode and run apply sdcard: update.zip

    It shows an error , which is :

    [CODE]E:Can’t open /cache/recovery/command

    — Install from sdcard…
    Finding update package…
    Opening update package…
    Verifying update package…
    E:EOCD marker occurs after start of EOCD
    E:signature verification failed.
    Installation Aborted.
    [/CODE]

    What am i suppose to do in order to surpass this abort failure?

    1. Send the update.zip to wordpad and I think you will find that you have downloaded a web page as update.zip instead of the appropriate file. Try downloading again and this time click into the web page before you “save as.”

  6. Can someone please help me!!
    I downloaded the SDK on my phone and I don’t understand how to extract the zip files so I can change to :C/……was I suppose to download it on my phone or computer? I don’t have internet on my computer so I don’t know how I would do that (hence the reason for trying to connect my phone) I have an HTC desire btw.

    C

  7. Great how to, so much easier to follow than any other site I’ve been to today.
    Just one issue – Windows won’t install the ADB Device driver – says “Not Found.” And your list of links doesn’t mention HTC. Do you know of any available for the Hero? (Android 2.1)

    1. Weirdly, PDANet got it all working, but its own install failed… It provided the ADB driver just before it fell over though >:}
      And it’s also fixed HTC Sync, which wasn’t working for me for the same driver problem.

  8. I still did everything….I have windows 7, so do I REALLY need to download the HTC sync to make it work? Because i’m getting the “cannot find abd” or whatever it normally says. I did what MJ said, still nada.

  9. Do I really have to do the HTC Sync? I mean, I have windows 7, but I have the Cliq XT, and none of this is working, so i’m starting all over again…

  10. Do I really have to use the HTC Sync? I mean, I have windows 7, but I have a cliq xt…and nothing worked so I’m starting all over again…

  11. Hi David,

    I followed the directions exactly and added adb back into the SDK R09 folder and it worked on the first try. BTW, Windows 7 & cliq xt… Thanks!

  12. Richharddeneenja

    I have a my touch fender and its rooted but the memorycard is gone im trying to download and root the phone again but it wont pop up a serial number ! please help .

  13. I have windows 7 and i dont get how this works with it because after procedure 4 it says go to a different link and skip 4 and 5 and from there im lost. help?

  14. I have a great proglem how to log in with Andrioid USB device when it is not activated?? it does not appear at all in my PC

  15. I have a great proglem how to log in with Andrioid USB device when it is not activated?? it does not appear at all in my PC

  16. I’m almost giving up, please, can someone save me?
    I have a Nokia E71 and it just don’t connect.
    It always show the error: device bot found when I try the adb shell command ou don’t show anything with the adb devices… I just can’t find the problem…

    I use Windows 7 x64, if someone can help I would be very, but VERY happy.

    Thanks!!

  17. Uh, correct me if I’m wrong but can’t you just remove the battery and the serial number and IMEI is right there on a sticker…

  18. I had to USBDiview option (uninstall drivers), then reboot, and then attach the phone again. After doing that I was able to do the adb device and see the attached device

    1. I had the same thing happen. I ended up going to HTC site and downloading the device drivers exe file. Then I executed the file waited for it to install, then I powered down unplugged the phone from the computer, then powered up, and then plugged the phone back in. (make sure that you enable usb mass storage on the phone, if you have rooted, and installed the latest android operating system)

  19. Thanks for the help. It’s very clear and informative. I had a little problem, but in the end, adb didn’t work as intended because my firewall blocked it. I hope you’ll add it in the instruction.

  20. @theunlockr The procedure has changed. adb has moved in the latest SDK to /platform-tools, and the myroot must be copied in the /platform-tools folder to work correctly. Took me several adb tries before I figured that one out.

    1. If you read the above procedure, we have how to get around that. We give you adb to download and extract to the regular tools directory and everything works fine.

  21. When i’ve installed the AndroidSDK, then when i go into the cmd and type all i have to, then after i type adb devices it says “adb server is out of date. killing…” what should i do? I’ve tried to use the USBDeview to unstill the drivers, and then connect the phone but nothing is helping 🙁 trying to do this so i can make the goldcard, and then downgrade my Legend from 2.2 so i can root it.

  22. I’ve been trying to get adb set up for my thunderbolt for a few hours now and have only gotten the response that adb is not a recognized internal or external file or batch. i tried to reinstall the drivers automaticaly and manualy and it works for all but the adb driver am I missing something?

  23. I feel like I am banging my head against the wall here…

    I have installed and followed the directions to a T, but no matter what I do, every time I type in that last “adb devices” command, I get “List of Devices Attached” and….nothing. No error messages, no serial number, nada.

    I’ve followed every “if you didn’t see the serial number” direction, I’ve uninstalled drivers I’ve reinstalled drivers I’ve done a little dance on my head, nothing seems to make a difference….This might be a problem that was answered previously but I can’t seem to figure out where, If anyone has ANY ides, I’d greatly appreciate it…Thank you

    (PS. Running XP, trying to root a Behold 2)

  24. Samsung Behold II

    SETTING > PHONE SETTING > USB > SELECT ANYTHING BUT [MASS STORAGE]. Have fun. Took me 2 hours -_- trying to install and reinstall driver and keep getting empty List of Attached Devices…

    1. I got the serial to show by typing the command ADB wait-for-device and then rebooting the Behold II and it would connect and then DIsconnect!!! I been pulling my hair out… then I finally figured that you got to set it to automatically connect to PC Studio not mass storage when it is connected!!

  25. Thank you for the thorough, up-to-date instruction. I was ready to return all the HTC phones this afternoon after about a week of struggling and HTC being no help. Both HTC and AT&T should pay you for having me keep all the HTC Inspire phones I purchased from them.

    There were a few variations that I had to figure out, but essentially it is your instruction and several additional comments that solved the problem. I did not log the variations, but I’m sure those who’re “dangerous enough” to try this out themselves will know how to figure them out. I will highly recommend this site to others.

  26. Thanks guy for your great job. very helpful.
    But I’ve a probleme installing the driver because my G1 phone is locked, I mean its not yet set up with an google to start working. it show only the welcome to t-mobile g1 and touch the android to begin, so I cannot get into the phone to set the USbdebugging, so, in this case how can I do to install the right driver? I want to use the manner your described here (Activating the phone over wifi with a sim but no data plan) to activate it?

    Your quick help will be greatly aperciated?

  27. hay i installed the sdk as mentioned above but if i type those commands in the command prompt after typing adb devices it is telling “list of adb devices attached” and nothing else , i’m not getting the serial no. i updated the drivers manually. it is saying device drivers are up to date, what to do now? please help..
    please give me some suggestions – vikky.kv@gmail.com

    1. this is how you do it!! on a new tab write how to activate G1 without a simplan!! its another ulocker page!! on 1 of the steps he says write setprop persist etc. on your keyboard!! when uve done dat, connect ur phone to the pc and it should download!!

  28. I had some trouble trying to install Android Commander due to ADB issues
    Android SDK file system has changed – Now (, ADB files are located in “platform-tools” directory.
    I did copy the three files (Adb.exe, AdbWinApi.dll and AdbWinUsbApi.dll) in the “old” tools directory
    and Voila …

  29. for whatever reason, when I plug my tablet into my PC it says it’s unable to find the drivers to download ,, any tips??

  30. Im having some issues installing the driver. Every time I plug in my G1 via usb a window pops up saying “found new hardware – windows needs to install driver software for your android phone” I click the locate and install driver software option. It starts the installation, but then a screen always pops up saying “Insert the disc that came with your android Phone” I don’t have that disc. can anyone help me out???

    (Im running on vista, 64 bit)

    Thanks

Leave a Comment

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