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
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!

@TheUnlockr All these steps have been very frustrating and after starting all over but installing instead of downloading a zip file I did the command line thing and got a serial number. However whenever I plug in my phone it never successfully installs. I’ve pretty much exhausted any option I can think of and any that have been provided here. Help?
i tried to do all the steps it told me and all i get is error messages on cmd
Okay, so I have my G1 (HTC Dream) plugged in with all the drivers successfully installed (I even installed with PDANET method). I check to see if everything’s plugged in and showing up on my PC and it’s working fine. But when I type in the commands, it just gives me: “List of devices attatched” and nothing else after that line. What should I do to solve this?
Nobody ever responds to these comments anymore…
Hey, just letting you know that if you have installed PDA net, and connected it, all you have to do is disconnect reopen the command prompt repeat the steps and your serial number should show up. It worked for me!
Oh yeah I fixed this problem weeks ago, and I’m not running an Android 2.2 ROM and all. I simply plugged my G1 into a different USB port on my PC.
I did,but it stopped at “List of devices attached” and it didnt show my phone serial number…do u think it’s fine?
im having this same prob help
when i do this no HTC drivers show up and also when i plug my phone in it comes up as a unknown device. help please
IF YOU CAN’T FIND THE NUMBER IN THE CMDYOU MIGHT TRY THIS.I did all the steps but could not get the serial number to appear in the cdm window, also when I went to the device manager (right click on my computer propertieshardware tabdevise manager) I found the device whit a big yellow question mark then I downloaded the driver for my phone in my case Motorola by signing in to http://developer.motorola.com/docstools/USB_Drivers/Handset_USB_Driver/ and then download the driver in my case for windows 32 bit, then everything got set up well, so try out to search for a driver for your manufacturer and model in my case I searched “install motorola cliq to windows xp” in google
IF YOU DON’T FIND THE SERIAL NUMBER IN THE CMD OR YOUR PC DOES NOT INSTALL THE DEVICE CORRECTLY try to search forur device installation driver in my case I searched for “install motorola cliq to windows xp” in google and found http://developer.motorola.com/docstools/USB_Drivers/Handset_USB_Driver/ then everything went good
Hi unlockr, I encountered a problem as I was about to install the ADB drivers on my htc legends. Ok firstly, I downloaded the SDK android.zip and the ADB as it wasn’t in the Android SDK folder. So when downloaded those, I checked my usb debugging and I plugged in. But it can’t seem to find the ADB installer. It was under C:/AndroidSDK/tools. But it kept telling me that it cannot be found! I tried on both XP and vista but they didn’t work at all. I need some help here. Thank you.:)
Im stuck at the USBDeview with my Samsung Intercept, I dont know what to uninstall?…
Too many people are confused by the command line steps in step 6. If those steps don’t work for you, just move on…they don’t do anything other than confirm that things are working or not. You can confirm this some other way. Just continue with the procedure and if it works, then things are working. If it doesn’t work, then assume things are not working and start reinstalling the drivers at step 7. There’s no reason to kill yourself over step 6, if you’re having trouble with those command line commands just move on.
Also in step 6, if it works as expected you will get a device list that includes the serial number of connected devices. If it doesn’t work, then it will just say “list of devices” and nothing else. That means it didn’t find any connected devices, in other words the “list of devices” is empty.
yeah..I got the list of devices attached and didnt show any serial number..so i guessed it cant be helped then? T_T
i have tried 2 of section 1 and i keep getting ‘adb is not recognized as an internal or external command operable program or a patch file” i have tried the whole erase the usb port thing with “USBDeview” i dont understand what am doing wrong. i have a moto cliq xt 1.5 firmware t-mobile…. plz help someone…
Hi David, thanks for helping so many people like me 🙂
My initial problem is that my HTC Desire is stuck to the htc log on white screen, when i try to use recovery command, it goes on to htc logo ant stuck there.
I read many threads and still nothing goes on.
My hope was to make a gold card so I followed your guide, when i type devices, it does not show my device, eventhough it says that it is connected and show its serial number on USBDeview!
same when typing abd shell, device not found.
Please help me
Thanks.
how do i do it on a mac?
ok im stuck i have done every thing step by step up to here cd AndroidSDKtools and when i go to type in adb devices i get ‘adb’ is not recognized as a internal or external command, operable program or batch file any help would be fantastic
hi i still cant get the serial number to pop up what did i do wrong because were u said to go to the usbdeview folder and right click it i didnt have no htc etc… and i would plug it back in but my phone wont have a check i dont know if its cause its a nexus s or does that not matter??? please help
Real easy to follow, and helped me get my phone rooted successfully !
Thanks for making it such easy for us 😉
Best Regards
Ed
After step 3 it says ready to use for usb composite device, usb mass storage device, my htc and htc android phone and usb device but says “unknown device” failed. I have been getting usb errors forever and don’t know what to do. It doesn’t show adb driver installed but I found the serial number in the command prompt of my phone. Please help.
Been up for hours trying to root it. Iv been trying to install FaceNiff and i followed all the steps but at the end it just says
C:adbtools>adb install FaceNiff-1.9.2.apk
411 KB/s (971712 bytes in 2.307s)
pkg: /data/local/tmp/FaceNiff-1.9.2.apk
Failure [INSTALL_FAILED_OLDER_SDK]
Can anyone help me out? Im doing this on the Motorola Backflip
I have installed ADk and now putting those commands in command prompt but ti says “List of devices attatched”. someone help me out please. I have samsung galaxy s
same here…I only got until list of devices attached but dont have any serial number…
When I get to USBDeview and right click to uninstall the htc drivers from my computer nothing happens, the drivers are not removed. Is there any other way to remove the drivers, maybe from the htc driver file on my computer? Any help will be greatly appreciated.
thnkssssssss man finallllly got this to work!!!!!!!!!!!!!!!!!!!!!!!!!! THANK YOUUUUU!!!!!!! I HAD TO DOO ALL THE STEPS THO!!!!! USBDEVIEW…..D/L PDANET file and follow instructions AND EXTRACT THE ADB FILES TO SDK/TOOLS FOLDER and then it finally worked!!!!:-)
for my MT4G!!!!
i can’t download the ADB files.The web site shows “This service is temporarily not available from your service area.” .Can anyone send the ADB files to my email??> yuen25_25@hotmail.com <Thank you so much!!!!!!!
i cant find the adb devices program in the folder…. what can i do?
it needs me to download some fucking java shit ! my windows is a 32 bit and there is no fucking link for that!!!!!:@@@@@@@@@@@@
For me it still says ” ‘adb’ is not recognized and an internal or external command operable program or batch file. ” I’ve been trying all day reinstall the driver back and forth. And still nothing.. Can someone please help my problem. lol
when I run command prompt for running these commands:
cd
cd AndroidSDKtools
adb devices
It shows me invalid directory for AndroidSDK which I had created in disk C; what should I do???please help……
it’s been move to “platform-tools” folder
ADB tool is now:
C:Androidandroid-sdkplatform-tools
Read the procedure and we actually have you put it in the normal tools folder just to keep it consistent with older procedures…
doesn’t work for Samsung Transform..
Thank you SIR, excellent tutorial .
Sweet got it all working next problem how do i get it to work on msn messenger
i thought i had done everything correct a few weeks ago.. wrong… i say delete everything and try again. In the command prompt typing in adb devices did not work.. well here was my solution..
i failed to see the ” If using Windows 7 skip steps 4 and 5 and use this procedure instead” click procedure and follow steps after that. then install the adb drivers and put in in the tools folder in the sdk folder.. you should be good.. hope it helps
I did all of this….nothing. Sigh.
Hey David! thx for the instructions~
I just tried the 1st section but it didnt work,then tried again with PDAnet,it works..(I think),.when I re-type the no.6 on the 1section as u said, it popped up exactly the same as yours but it only stopped at “List of devices attached” dont have any serial number at all…
Do you think it’s correct?
I was just scrolling again until it stopped at “USB deview instructions” and I tried to checked on the Device Manager…the “Android phone” popped up and I got the ADB interface as well…
so,do u think Im doin the rite one?
Im using Nexus S anyway,,..
Highly appreciated if u can email me at kath2505@gmail.com for the reply..^^
Hey David! thx for the instructions~
I just tried the 1st section but it didnt work,then tried again with PDAnet,it works..(I think),.when I re-type the no.6 on the 1section as u said, it popped up exactly the same as yours but it only stopped at “List of devices attached” dont have any serial number at all…
Do you think it’s correct?
I was just scrolling again until it stopped at “USB deview instructions” and I tried to checked on the Device Manager…the “Android phone” popped up and I got the ADB interface as well…
so,do u think Im doin the rite one?
Im using Nexus S anyway,,..
Highly appreciated if u can email me at kath2505@gmail.com for the reply..^^
Hi, is there anyone to help me, please. I have G1 and I restarted it factory, now I do not have sim with data plan, how can I do it working again?
What ever I try without help, do you have solution for my G1, thanks.
I can not see my real number. He runs everything but he gets to the point of it is supposed to give me the real number is not showing it to me He writes me that he runs a Port 5037 . I did everything you said Please Help
HOW AM I SUPOSE TI DO THIS IF MY PHONE IS NOT ACTIVATED . G1 wothout data plan SENT ME HERE
I give up, none of this stuff works for HTC hero. i’ve followed instructions step by step !
WHen i USBDeview when i uninstall the devices it wont uninstall
hey its not working for me the adb has been moved to the platform-tools and ive been up for 24hrs trying to get it to work
What is the purpose of these instructions?
I came across a simple solution to solve this and it is a no brainer. Just download
PDANet.exe from the internet.
You can find it here or any other source you can search.
http://junefabrics.com/android/download.php
When you run this program it loads all the drivers you need for USB and PDA device
connectivity and when you connect your Andriod phone, it installs the drivers it needs for
connectivity.
I tried many solutions, none of them worked, but this gave me the break. Now I can connect
my Galaxy phone to my PC.
Happy connectivity!
This is by far the best source of information to address this subject I have been able to find! I ran into nearly every problem covered, and then some. (Also I really like the pdanet. I’m using it to write this message) A few things to mention: adb was just moved to “platform-tools” saves a little time to just go there instead of manually moving the files. adb will not connect while you have an active tether with pdanet so you will have to disconnect using the status bar icon before you can successfully connect adb. Also, I’m not sure how common this problem is, but I had to replace my (defective/broken) usb cord before I could get windows to recognize my device. It took me a little over a day to isolate this issue, turns out not any usb (standard to micro type b) will work only specific manufacturer (saumsung) will work with my phone. So much for the U in Usb huh?
Do I need to do the HTCSync detour thing if I have a G2 and Windows 7????
Its not working for me, I followed every step, I am using windows XP with Samsung Galaxy Pro, Android 2.2.2. how do install adb usb drivers . please help
Its not working for me, I followed every step, I am using windows XP with Samsung Galaxy Pro, Android 2.2.2. how do install adb usb drivers . please help
i got to the cmd part and then i typed everything in, and it says ” ‘abd’ is not recognize as an internal or external command, operable program or batch file. ”
what do i do?
You need to be sure to navigate to the “platform-tools” folder, adb is now located in that folder.
You need to be sure to navigate to the “platform-tools” folder, adb is now located in that folder.
I just noticed that you said a-b-d not recognized etc. It’s Android Debug Bridge. Make sure you are typing a-d-b
man this do NOT work
I am still having problems getting my drive to work.
ça ne fonctionne pas!
…j’ai beau tout réinstaller, (étapes I et II…) j’ai toujours ce message d’erreur dans la boîte de commande:
«adb n’est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commande»
🙁