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!

Thanks for the latest SDK version
I download the usbdeview and when i run as administrator
all i get is Andriod devise and wen i unistall it , it still doesnt install
Hi unlockr
just a stupid question from a newbiee is this adb driver help solve the problem from some hero roms that consistantly when youre using a application the phone reboots to the htc screen.
thanks for your help
Hello Giovanny55,
ADB is for sending and controlling stuff on the phone. It can’t make your phone run better.
You just need to download the Maxisma ROM from the Downloads section, install it and also make sure to do the How To Speed Up Your Hero ROM and you should get rid of that.
first of all THANKS, and what about eclipse ddms and etc? i need help with avd, i dont know why, but i put all the ffiles in the right place (system32 etc) but it just wont work!!!!!!!
hello unlockr,
first of thanks.i been trying to get this working for sometime and thanks to you i finally have.this site is my favorite site for all android help.thanks
hey i did this and install the drive but doe not work still i type in the adb device and nothing shows up it just says list of device..no serial or nothing please help thanks
Hello James,
Do the rest of the procedure, use USBDeview uninstall the drivers and replug in.
i tried that but when i select it to be uninstalled or even disscnet with that program it does nothing…
Hello James
You need to run the program as administrator, right click it before opening it (I do it in the video)
Tried the same as James and it didn’t work and I ran as administrator too. No driver. I tried several times and uninstalled all the HTC and Android devices. Any help would be awesome.
Wow! Ok so I figured out how to do this after trying just about everything I can think of for 2 days.
This is to help anyone who is ready to end their existence.
1. I’m running Vista Ultimate 64 bit on both my computers (Yes I tried it all on both!)
2. I have a 32B Sapphire/MyTouch rooted and I’m running Cyanogen’s latest ROM. (If you don’t know what this is you shouldn’t be using this tutorial anyhow.)
3. I used this tutorial exactly as shown in the video. Tried using USBDeview to uninstall the drivers and still wouldn’t recognize the drivers for my phone. Windows asks for the driver. So I went to the file in the C;/AndroidSDK for usb drivers. Windows tells you that it’s not there and can’t install it.
4. Found a forum online telling me to edit the registry delete some files. (Think this process is for XP 64 bit operating systems. Either way it didn’t work.)
This worked.
1. Make sure first that you turn on USB Debugging on your phone by going to Settings > Applications > Development > USB debugging. (Leave phone unplugged from computer)
2. Use USBDeview right-click to run as administrator. Delete anything labeled Android or HTC.
3. Next you want to go to this link: http://forum.xda-developers.com/showthread.php?t=446274
Download the driver and extract to a location you’ll remember.
4. The instructions in the link above are kind of vague so this should help for anyone as NOOB as me.
You want to type “cmd” into your start search bar to bring up the command prompt right-click the cmd program and run as admin.
5. You need to run Vista in Test Mode (Don’t ask… Pis*es me off too!) right where the the cursor is at the Command Prompt. No need to use cd.. or c:/ type this : “bcdedit /set testsigning on” (without parenthesis of course)
6. Reboot your computer should have test mode in each corner when it restarts.
7. Plug in your phone and when prompted let windows search for the driver. When it can’t find it install the driver manually from the file you downloaded and extracted the driver to.
8. It will give you a brand new red window that tells you how windows doesn’t recognize it. Install it anyhow.
9. Cha-Ching! Installed! Now do the reverse from the cmd prompt to get your computer out of test mode. And then reboot
Thanks Unlockr this site has the best tutorials for Android on the Web! Keep up the good work.
Hello hvrobel,
Ha thanks, I appreciate it. I will definitely try 🙂
And thanks for this, I’ll add it to the reported issues so others can find it easily. Great addition!
Hey Unlockr, im using Windows XP, and when i “run” cmd. I get command prompt. Good so far, but then when i press enter it does not double space and i cannot type in cd/ and stuff to get my abd. so yeah plz message me back T_T. i needs abd
Hello Andrew,
The / need to be \ sorry. Try it now.
i mean adb
“I get a message state windows system 32 is either not designed to run on windows or it contains an error. Try installing the program again using the original installation media or contact your ststem administrator or the software vendor for support” I got all to show ready but the most important one the dream composite abd interface. Any help would be great!
I am running XP and when i go to USBDeview and try to run as administrator i dont have that option. I tried selecting the first option but I have 1 HTC driver.dont know how to run as admin, please help. Thanks in advance!
@the,
If you have XP you don’t need to run as admin if you dont have the option just continue from there.
^^^nevermind i figured it out
I keep getting the same error for my USB : Code 10: Device Cannot Start. I’ve updated the driver using the location of the usbdriver in the SDK directory. My assumption is that there is something conflicting with the device that’s not letting it start, but I cant figure out what. (I have Project64 & GBA Emulators installed on my laptop as well, maybe that’s it?) In the device manager, there is the yellow exclamation mark. I’ve uninstalled using USBDeview, and my phone is on USB Debugging as well.
Viewing in USBDeview mode, the serial number of my HTC device & all its informations shows when I click properties. My only problem is that it will not start. This is pretty funny to me, because the only reason I have downloaded Android SDK is so that I can take screenshots of my phone & possibly develop themes for it. Someone please help me!
I’m using Windows Vista 32bit and I have a Tmobile G1, rooted, running CM4.2.3
You should make sure that you add in the instructions that people need to go into Settings > Applications > Development and select USB Debugging, other wise, this will not work, and no matter how many times you uninstall and reinstall the drivers, it wont take.
I tried the instructions above and I keep getting this error:
adb server is out of date. Killing…
ADB server didn’t ACK
* failed to start daemon *
error:
hello unlockr i was wondering if this step was necissary to root the sprint htc hero and get custom ROM?
Nik,
Yes.
I was wondering if you could help me out i have tried to get adb to work but as the drivers are installing the one that says adb does not install what should i do?
i have the same issue. and therefore the device is not recognized in the cmd
when i search for it i get newdev.exe-bad image also a window pops up saying htc dream composite adb interface driver not intended for this platform
Cant get this working AT ALL
I tried the first time; no serial numbers appeared
installed USBDeview ran it
deleted the HTC files
plugged it in again
and the installation wizard says it cant find the necessary software to install the drivers every time. UGH
what do I do?
hey unlockr…
i tried everything but in cmd it is not showing my device number ….after usbdeview when i connect my device it says adb drivers not found….but in devices & printers when i see hardware for android phone it shows me adb….so wat should i do ……i am desparate to have market in my hero
I cannot get the drivers to install on my HTC Sprint Hero. I am running Windows XP and am stuck at this part. What am I doing wrong?
i hav same prob as jon stanley pls…..help
hey GT Download this driver for your phone
extract it to C: drive.
http://www.4shared.com/file/97447244/1851aecc/android_adb_usb_driver.html
then when u plug in your phone install the driver from that folder by clicking advanced, browse (find the driver folder) then install it.
then command prompt will show u your serial number :]
my problem was: when trying to install driver it was searching automatically on the phone but couldnt find it. so I used that driver I found
adb works great now
forgot to mention. Use this to unzip driver if u dont have any other 3rd party unzippers
http://sourceforge.net/projects/sevenzip/files/7-Zip/4.65/7z465.exe/download
Ditto Jon Stanley and Chad. I have XP. I’ve uninstalled and reinstalled HTC and ADB drivers several times and never get the hardware connected. If I use the installation wizard, I get the can’t find necessary software error. If I try to do the advanced installation HTC device is not available by itself nor will it work if you choose portable device, or USB connection. So have yet to get the serial number in CMD window.
Hey Jon…I hope you check back here. I did the two downloads above you suggest. Then when I go to advanced set up and go to my C drive to choose a folder, I can only choose either amd64 or x86. I can’t choose a folder with sub-folders, i.e. Android_adb_usb_driver or usb_driver. Any suggestions??
@W W
I think I just figured it out (yes it’s 2:20am).
I installed everything as far as it would go, where it successfully installs 3 out of the 4 (the failed install being the “adb”).
AFTER I do that I go into the device manager, and there is a device with a “!” next to it called “adb”.
I right click on that, and “update driver”.
I choose browser for driver and direct it to the correct directory – it installed successfully.
Now I’m going to try and test it.
Is it working for Galaxy?
You can download updated Drivers for Galaxy from http://androiddriver.net/
Thank you very much theunlockr!! I needed a guide like this, I have a Mytouch 3G and I couldn’t “see” it on ADB until now… In my case, Windows XP didn’t detect the drivers for my phone, but I’d previously downloaded from SDK official page and I had just to pointed to that location…
Thanks again!
So i’m trying to root my Behold 2, been following the instructions on THE UNLOCKER, and want to connect it to ADB. I have the Android SDK on my C drive, and where I get stuck is when I put in the code to find the serial it gives me “LIST OF DEVICES:” and the serial is never there.
I have downloaded the Behold 2 drivers, and it installs every one except the Samsung ADB Interface which it fails on. I use the USBDEVIEW software to uninstall and try again but everytime it’s the same failure, and yes the phone is set to USB debugged, and Samsung Studio.
I’m running Windows Premium 64bit, I don’t know if running a 64 bit system has anything to do with this. Any help would be great! I thought I was a tech junkie until I ran into this.
not working for me
can anyone help..!
i try help search but is like looking for a
needle in a u know,.,.,
how do you do this on a mac? please and thanks
Omg can sumone help me when i try to install the phone the adb won’t install can someone please help me
Does not work for me: on Windows bootcamp or in Windows 7 64.
How come this is so hard??
mannnnn i am so mad it dont work for me……on w7 i did the htc drivers and still nothing
Didnt work at all for me.
Will,
Read the reported issues and check/post in the technical support forums for help.
Hey, thanks for the guide. I have one problem though, when I plug in my G1 for it to install it’s own drivers, only its mass storage drivers are installed. Also when in device manager it lists my phone under disk drives.. Any idea whats up?
Solo,
Read the reported issues, should help.
Solo,
I’m new to this web site. Is “Reported Issues” the name of a forum on this site?
I’m experiencing the same issue with my Samsung Vibrant.
Thanks,
Mike
Just FYI for those of you using wanting to Ubuntu.
Since I started doing development in Ubuntu 9.10 (Karmic Koala) I didn’t wanna do it in Windows, so I did my research and finally I got ADB working on it. Here is what I did
1. Login as root and create this file: /etc/udev/rules.d/70-android.rules
For Gusty/Hardy, edit the file to read:
SUBSYSTEM==”usb”, SYSFS{idVendor}==”0bb4″, MODE=”0666″
For Dapper, edit the file to read:
SUBSYSTEM==”usb_device”, SYSFS{idVendor}==”0bb4″, MODE=”0666″
For Karmic Koala, edit the file to read:
SUBSYSTEM==”usb”, SYSFS{idVendor}==”0bb4″, MODE=”0666″
2. Now execute:
chmod a+rx /etc/udev/rules.d/70-android.rules
3. reboot
Reference: http://developer.android.com/guide/developing/device.html#setting-up
NOTE: For Gusty/Hardy, Dapper use 51-android.rules instead of 70-android.rules.
NOTE: “0bb4” is the USB vendor ID for HTC, for more vendor IDs refer to http://developer.android.com/guide/developing/device.html#VendorIds
JGeZau,
Thanks, nice addition!
So im a newbie at the whole android thing, and i need help. When i input cmd in the search and try step 6, it always says cdAndroidSDK\tools\ is not recognized as internal or external command
PJ0906,
You need a space between cd and AndroidSDK\tools\
Then also make sure you renamed the sdk folder to AndroidSDK and it is on your C drive (not in any subfolders).
Also try doing it step by step like this:
cd c:\androidsdk
cd tools
im having a problem copying to memory card i’ve been watching this video
https://theunlockr.com/2009/10/15/how-to-flash-a-new-recovery-image-if-you-are-already-rooted/
and around 2:05 in the video it says copy to memory card but cant figure out how, ive done everything leading up to it right. any tips would help
thanks ben c
Ben,
Plug in your phone via USB cable to your computer.
Pull down the notification bar on the phone and click Mount.
When you can see the “Removable Disk” on your computer, drag the .img file and drop it onto the Removable Disk. (Same way you would save any music, etc.).
when i open the usbdeview folder only the read me and the one with a ? is there. no app
nvm i found it. my anti virus blocked it
hey i got and old ibook g4 how can i do this
or do i need to upgrade to an intel mac .?
hi unlocker, when im in CMD i put in everything like you said but when i put in:
abd devices
it says ‘abd’ is not recognized as and internal or external command, operable program, or a batch file. what did i do wrong?
ADB not ABD
^^^ also im using the moto cliq and vista 32-bit
^^^*facepalm* im such a dumb ass (and a little dyslectic)
i put in abd, when i should have put in adb. hahahahha.
sorry for posting 3 comments.
ive tried everything it says bt my adb drive wont install i have a g1 and i cant do the settings thing ur talking about because im trying to activate my fone without a data plan plzz help
TheUnlockr
Hey Everytime I Put
cd\
cd AndroidSDK\tools\
It Says “The System Cannot Find The Path Specified”
Im running XP and I have a Sprint HTC Hero not rooted but trying
Please Help
Lan579,
You need to do this process to a T. You need to put the SDK folder in the C drive and rename it to AndroidSDK.
Thanks I did that but it had an extra subfolder so i moved files to just AndroidSDK
Got it rooted
Lan579,
Glad it worked 🙂