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!

behold 2 drivers say that it can harm my computer, do i still install it?
Sorry, one question. I have a HTC touch and is bricked… can i make a goldcard for it?
Is this solution only for android phones? Mine is windows mobile…
Than’s
Hi, can anyone tell me why I get to the command prompt and get the “list of devices” but nothing is listed? I’m stumped.
Anybody? I’m frustrated!
Hi i am having problems getting windows virtual pc to put drivers on my phone. I used sdk and updated everything. When I go into cmd and type in the command lines it just says list of devices attached. I get no serial number. I then proceeded to download drivers manually for behold 2. I went in Device Manager and behold 2 isnt listed. There are yellow question marks where it says other devices> virtual pc integration system. If i click on the setup in the drivers folder it says installed successfully but still no recognization that behold 2 is connected. Also for clarification usddeview shows no drivers or devices hooked up to delete. Please help. Is there somewhere specific I am supposed to manually save drivers?
windows virtual pc is running xp
Hi dude.
I followed your instructions and I couldn’t get my phone’s serial number. When I typed adb devices it just said “list of devices” and there was nothing else. I used USBdeview and uninstalled and plugged my phone back in. All I got was a new driver just like the one I had before. It says HTC Android Phone USB Device. I still don’t have one that says ADB device or anything. I’ve tried over and over and it won’t work. I need to activate my phone but I don’t have a data plan. I also tried updating my driver from the usb drivers folder in the androidsdk folder, but I think that didn’t work because it said it couldn’t find a better match than the one I already had. Please help.
Thank you,
Benji
hey i did everythinq as shown, and you c at the end when it says your device is ready to use and it says usb composite ready to use and all of the other stuff mine only saids usb mass storage ready to use, does that matter, and its not giving me a serial number or nothing, can you please help me,
hey just to let people know so they wont make the same mistake i did. it took me a week till i figured it out. those of you who are using tethering, THIS PROCEDURE WILL NOT WORK, YOU MUST DISABLE TETHERING FIRST IN ORDER FOR YOU TO GET YOUR SERIAL NUMBER. do your downloads first then either print this page or just leave it open and dont close it for the instructions. then disable tethering, (reboot your phone if you have to, i noticed i had to with “pdanet tether”) then follow the procedure and you should get your serial number……for xp users, (i dont know about others thou), after you do the procedure your tethering wont work so on your computer press control+alt+delete at the same time, click on task manager, click on “adb” just once, then end task and your tethering will work again. (note you will have to do that everytime you use cmd for your phone in order to get either or working)
hi this is killing me….i still don’t get why i say’s not a registered device when i run it on cmd….please help..
I’m using windows xp..
this is what i did…i turn on usb debbuging on my phone then connect it to the comp.then something pops up asking me if i want to install the driver and i click yes but it cannot find the driver and i don’t know why…o and i also did what u said on the video…..
try rebooting your phone and make sure you aint using tethering
guys can u help me? i found the super user application but then i dont know how to use it
How do I enable USB debugging on my Motorola Cliq
Same way on all phones (listed in the procedure).
Settings > Applications > Development > Check USB Debugging ON.
I have the code but I can, generate the other on the soaa.They says that the lenght is wrong.Can you help?
What If I can’t get into the phone to set it to USBdebugging mode?
And why can’t you do that?
Yeah! exact I have the same problem 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 page , so I cannot get into the phone to set the USbdebugging, 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?
It’s an unlocked t-mobile mytouch 3g (without headphone jack) I tried putting a centennial wireless sim card in it and signing into a gmail account after manually updating the APN settings for Centennial, didn’t work, I have no way to access anything without signing into the phone which I can’t do and I’m at my wit’s end and the really sad thing is I use to work for T-mobile and I can’t get it to work, please SAVE ME FROM THIS HECK!
Does the Centennial account have a data plan on it?
If so, then check to make sure the APN you saved is 100% correct (call Centennial and have them help if need be). Then make sure you select it after you save it (it needs to show it as the selected APN in the APN list). Then try again.
It does have a data plan and we got all the apn info from them, I made sure it was selected but it simply would not register data.
Worked perfectly for me, thanks a lot mate!
I have the Samsung Transform (Model SPH-M920). I cannot get my computer (Windows XP) to even recognize this phone when plugged into the USB. I have tried everything to find a compatable driver to no avail. Someone, please, HELP me!
how do i remount using abd its not taking the command when i type adb remount…?
device not found. i look in device manager, it shows up in portable devices as a F: Help me please! htc sycn is installed. that dont work either.
Hi, this evening i powered off my Galaxy S Vibrant (i9000M) and since then just doesn’t want to start. It gets stuck on the boot logo and then nothing happens and it shuts off. I’m pretty sure I set the phone on USB debugging but since it won’t start I can’t check if I did. I tried installing ADB but my phone’s serial number doesn’t show. Could that be because it’s not in USB debugging mode? and if so is there any way I can get ADB to work despite this?
Thanks
I cant get past the whle CMD thing. I type in the path to the sdk tools file, and wont load. says its not recognized as an operable file. How to I get this part to work to verify the connections?
WAIT NVM 😀
I’d like to know what you were doing wrong…:(
I’d like to know what you were doing wrong…:(
I’d like to know what you were doing wrong…:(
after i downloaded all the files that i need then in CMD everytime i type cd AndroidSDKtools then enter it always say “The system cannot find the path specified.” whats happening? i need help. Thanks
open the zip file downloaded and extract the folder to C:
then rename that folder to androidSDK
then when you do the CD command do :
CDandroidSDKTools
then you can continue
Hi. I had this problem with path location too. for me the path was C:AndroidSDKandroid-sdk-windowstools.
The problem I am running into is on step 6 when i run adb devices command, it gives me some 10 digit alphanumeric code instead of a 15 digit which is what I would expect for a phone serial number
disregard my previous advice because there is i believe a tools directory in AndroidSDK as well as in AndroidSDK/windows..
I have the same problem with Mj ! can u help me o open the files? and is there anyway u can help me to find the AndroidSDK/windows ?
Starting ADB Server…
*daemon not running. stating it now on port 5037*
*daemon started successfully*
OK
Waiting for device
And waiting…
Something must be wrong becuase I have not gotten past waiting.
i do have USB debugging connected…
What might be wrong?
Thanks
OK I just opened a CMD prompt and typed adb devices
This is what I got in return.
C:usern0m0n>adb devices
List of devices attached
C:usern0m0n>
Does that mean ??? adb is working or isn’t becuase I have my Droid2 and gTablet plugged in?
I have re-flashed my Droid2 with the stock SBF already so I don’t know why I cant get the root app to work.
Can anyone advise?
Thanks
Behold 2 trying to download the Samsung Driver (using VISTA 64 bit version) Windows gives an error saving the Driver needs to be digitally signed? Help me plz!
Hey Unlockr….uhm i just go a brand new evo…its not rooted of anything…im wondering if it would still work…
i do everything like the instructions, and when i type adb devices, “list of devices attached”,what it’s means?thank you
It should show a serial number underneath that. If it doesn’t, start over, your drivers were not installed properly.
I followed your instructions and downloaded AndroidSDK to my C:drive. However, when I plugged in my Galaxy Windows could not find the driver in the AndroidSDK directory. I checked under Device Manager and it is recognizing the Samsung Andorid USB Device but there is no driver. Was the driver suppose to download in the tools directory and if so what was the name of the file?
I opened the SDK manager and downloaded the USB Driver for Windows to my AndroidSDK directory. I tried to add the driver to my Samsung Android USB device under Device Manager and it still does not find the driver. What gives????? This is so beyond frustrating for something that should be so simple. The USB debugging checked. Could there be other settings on my phone that could be creating the problem. I am assuming that the USB device is OK since it is showing up under the Device Manager.
OMG! i have done everything rite at least twice when cmd abd no device serial number help motorola xt701 unlocked
everything goes well until i type adb devices.. its says its not recognized as an internal or external command
once i download the sdk the icon doesnt look like a stack of books, instead it has teh internet explorer icon and when i right click there is no option to extract…???
lol u have to have win-rar to extact a file duh
I’m having the same problems with two different Android.
First the Samsung Captivate and now the Nexus 1.
I can get as far as device and it show the device ID.
None of the command work, ie. if I do adb remount I get: remount failed: Operation not permitted
i am not getting a serial number, mine just says attachments listed
I’ve followed this to the letter. When I reconnect the phone all of the drivers install except ADB. I then point it to the location where the driver is… and Windows can’t find the driver. Am losing the will to live. Have been through this loop several times now. Any help appreciated.
Dear Mr. Unlockr; I rooted my G1 and now I’m trying to setup the ADB/USB drives. I have the debug box checked off I connected the USB Cable and I was wondering am I supposed to mount the SD card via USB? I’m using Windoows7/64 and the link that u setup that goes to My Digital Life says to extract the into a folder; now my ? is do I type the info that they have. Thx in Advance.
I have the AndroidSDK strter kit but how do I download the platform I want plus since I rooted my G1 can I run Android 2.2? thx in Advance.
You need to download a custom ROM and do our How To Load a Custom ROM procedure for your phone.
about windows 7 instructions: HTC has released HTC sync ver 3 and its working fine with win7 64bit. just tested!
The “adb files” download link given upster is down.
To get adb with r08 release : launch SDK manager and apply the available packages.
After than the manager has downloaded every packages, it’ll start the deamon.
Now go on a prompt command
insert : cd C:path_of_your_installation_of_AndroidSDKplatform-tools
insert : adb shell (or adb devices)
–> It’s work !
20101208 Vincent.
The “adb files” download link given upster is down.
To get adb with r08 release : launch SDK manager and apply the available packages.
After than the manager has downloaded every packages, it’ll start the deamon.
Now go on a prompt command
insert : cd C:path_of_your_installation_of_AndroidSDKplatform-tools
insert : adb shell (or adb devices)
–> It’s work !
20101208 Vincent.
The “adb files” download link given upster is down.
To get adb with r08 release : launch SDK manager and apply the available packages.
After than the manager has downloaded every packages, it’ll start the deamon.
Now go on a prompt command
insert : cd C:path_of_your_installation_of_AndroidSDKplatform-tools
insert : adb shell (or adb devices)
–> It’s work !
20101208 Vincent.
The link is NOT down. It works just fine, but thanks for the alternative method to install the ADB files if people need it!
Ok, link works today.
Yesterday : MegaUpload said “Link is not available”
Strange..
Ok, link works today.
Yesterday : MegaUpload said “Link is not available”
Strange..
Mr.Cogen million million thanks for your good instruction
Mr.Cogen million million thanks for your good instruction
Mr.Cogen million million thanks for your good instruction
alright, i have been trying for 2 days and i finally get it.
after do the cmd thing i always get stuck in the last line of code so here is the solution:
after you tipe
cd
cd AndroidSDKtools
u need to copy the adb drivers to
C:AndroidSDKtools
and then u can tipe the last line of code
adb devices and it will work. at least worked for me and im using win7 ultimate 32bit
alright, i have been trying for 2 days and i finally get it.
after do the cmd thing i always get stuck in the last line of code so here is the solution:
after you tipe
cd
cd AndroidSDKtools
u need to copy the adb drivers to
C:AndroidSDKtools
and then u can tipe the last line of code
adb devices and it will work. at least worked for me and im using win7 ultimate 32bit
Welcome!
Thanks for the adb upload. Really helped me 😀
I type in C:>AndroidSDKtoolsadb devices and it says Access Denied ! SOMEONE HELPS ME !
Do i have to extract adb too? !