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. ok! relire étape #6!!

    UPDATE: If it says adb not found or something similar, download the ADB files and extract them into the Tools folder of the SDK (they were taken out by Google in the R08 version for some reason and need to be put back).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.

  2. mine does not work.. from the cmd screen, it keeps saying – (‘adb’ is not recognised as an internal or external command, operable program or batch file)… after uninstalling the drivers using usbdeview and reconnecting my device, no adb driver is available..what should I do?

  3. If all else fails and you can not install usb drivers (Flytouch tablet for example), adb supports wifi or ethernet connections.
    Connect your android device to a local network (ethernet or wifi) then us the  command: “adb connect 192.168.x.xxx:5555”, replacing the x’s with the appropriate net address.

  4. when i typed cd AndroidSDKtools i got “the system cannot find the path specified”.  i downloaded the adb files but i didnt even get to type the 3rd command yet.

  5. Excellent instructions, led to getting an old droid moving forward.  Sure wish I could find some source for Acer Iconia-A500 tablets .. seems like there’d be an advantage to Acer having a adb-driver.

  6. I did the extraction according to what was said   c:AndroidSDK and when i try to write the command it says “the system cannot find the path specified…. Somebody help

  7. Thanks a lot for posting this. This is the only thread on Google that I found all the information. Mainly needed the drivers on a new PC and couldn’t find the information anywhere. Thanks again for posting. 

  8. Prico Pinpin:
    If you used the Windows installer (like I did) use the path:
    C:ProgramAndroidandroid-sdkplatform-tools
    (or ‘Program files’)

    (But there are no working driver for Samsung Galaxy 5 – I had to install Samsung “Kies” to get a driver)
    If anybody wants to factory reset a Samsung Galaxy 5 – mail me..
    muspekare@yahoo:disqus .se
    (muspekare AT yahoo DOT se)

  9. So whats the end result?? Did all the people that were having issues get it resolved. Because Im pretty much having the same issue with the permission denied.

  10. hi.. i tried it. but when i tried fastboot i didnt work. it says “‘fastboot’ is not recognized as a internal or external command..” what should i do to fix this.? please help me. thanks.  btw im using htc magic 32B..

  11. i did the instruction and it worked.. now my problem is i cant fastboot. it says “‘fastboot’ is not recognized as a internal or external command…” how to fix it.? please help. and thanks again man.

  12. hey it shows a serial umber but when I type a comand  it says “error: device offline”. what am I doing wrong ? should I enter the phone in the bootloader or something  like that ?

  13. Hi, I want to install the abd drivers for samsung galaxy 2,how do I do this? Sorry confused, use the htc files??

    Thanks

  14. Hello there,
    I have followed all the steps and made it until listing my device serial. It doesn’t show up at all.
    My following problem is :
    I have an HTC FLYER and I tried to flash a new hboot but mistakenly it was from another device, now my FLYER wont turn on at all. I did all what was supposed to be done here, and the PDA shows that my device is connected but the “adb devices” command doesnt show my serial at all and I do not know what to do next. Can someone help me how to flash a new hboot so my device can finally power up ? Please I really need my HTC FLYER to start working.. 

  15. What driver does the Mytouch 4G need? in the list, there were only motorola and samsung driver, I tried to google and got the HTC driver, but when it update, it said: “your driver has been updated to date”, but the ADB couldn’t recognize it, I need help!!!!!!!!!!!!!!!!!!!!!!

  16. Man I followed the steps but I got stuck at step 7. When I go into C:android-sdkplatform-tools, I hold down shift and then right click as you said but I don’t get the command prompt
    option, I just get the standard options. What am I doing wrong?

  17. My os verion on my Galaxy Nexus is 4.0.2.  What packege should i choose in the sdk file manager (4.0 or 4.0.3)?

  18. Whoever updated this guide COMPLETELY RUINED IT, Used to work but now its all retatarded about ” Shell Cat?” and why are we using platform tools? ive used this guide three times on different my touches and now its just pointless thanks to some bitch who decided the guide would be much better with platform tools. Never using The UN-Locker ever again.

  19. I’m using this process to activate the G1 without a data plan.  Therefore the phone is stuck in the setup screen.  How can I activate USB Debugging (step 5a) if I can’t get to the phone settings?

  20. I’ve got my transformer rooted, but i certainly would not make it without your tutorial!
    Thank you very, very, VERY MUCH!

  21. gotz any thing for my coby mid 7125 adb not runnig i try rooting it with super one click wasent happining tryed sufering the web in her is were it lead me so if you could please help me root my TABLET i wo uld be forever greatful 😉

  22. Thank you very much! You’ve settled my android connection problem. I’ve spent 2 weeks trying.. untill now.

    Thank you again.

  23. Ok can someone please help me I try and start up sdk manager and it just flashes a comand prompt and then does nothing I have followed all the steps exactly as said please someone help me

  24. Ok so I followed the steps as shown and still nothing I try and open sdk manager and it just flashed a comand prompt and nothing else pops up after will someone please help me! 🙁

  25. Just FYI, if you want to do this with the Vodafone 845, a shortcut is to plug in the phone and install the drivers from the virtual CD it creates. Then superoneclick works without installing all that Java and Android SDK crap.

  26. HELP! I’m on the first step and feel very unlucky. I have a One Plus 2 and when I put “./adb devices” on the terminal it doesn’t show my device. Please, I need it. Thanks

  27. Try a different USB cable, different port, try to make sure that the Mac sdk was installed properly etc and try again. Also make sure the when the phone asks for you to accept the RSAkey you do that on the phone.

  28. Hi, first comment after two years but…
    i stumbled over this article and wanted to give it a shot but i’m stuck at Step 10. I typed in “adb devices” but as you can see in the picture nothing happens.
    OEM-Unlock and USB-Debugging is on but also my smart phone doesn’t showed any pop-up with the serial number.
    I also checked my device-manager and tried out every version of adb but still nothing happens.
    Would be nice if someone can help me. 🙂

Leave a Comment

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