How To: Install ADB and Fastboot on your Windows computer for use with your Android phone

June 18, 2011 47 Email article | Print article

Anyone that has ever tried to mod their Android phone has come across users telling other users to run various different ADB and/or Fastboot commands. The only problem is the average Joe has no idea what ADB and Fastboot are because, well, they aren’t your run-of-the-mill applications. I was completely lost myself when I first ventured into the world of Android. While yes, developer hubs like XDA-Developers do provide instructions on how to get ADB/Fastboot installed, there are so many convoluted guides out there, it is easy to throw one’s hands up in defeat. Hopefully this guide makes it simple and straightforward to get ADB and Fastboot installed on your computer.

What are ADB and Fastboot and why do I need them

ADB stands for Android Debug Bridge, while Fastboot stands for, well, Fastboot. Without going into too many technical details (trust me you don’t want technical details), let’s just say they are two command-line tools used when modding/hacking Android phones.

You need ADB and Fastboot if you are one of those people that like to mod/hack your Android phone. While many mods/hacks are now becoming more main-stream-user friendly with GUIs (i.e. they no longer require users to use ADB or Fastboot), there are still times when users need to use ADB and/or Fastboot. (Anyone with a Google Nexus One or Nexus S knows what I mean.) While you may not necessarily ever use ADB or Fastboot (depends on what phone you have, and the type of developer support it gets), it is always nice to have them installed when the time comes that you do need them.

Installing ADB and Fastboot

Installing ADB and Fastboot is actually very easy:

The following guide is for Windows PCs only, but ADB/Fastboot can be installed on Linux and Mac OS X also. (You just do it differently for Linux/Mac OS X.) Also note that this guide was written on a Windows 7 computer. However, the guide will work on Windows 8/XP/Vista the same way; I don’t know about earlier versions of Windows.

  • Download(11 MB) ADB, Fastboot, and other tools.
    • Note: The tools found in the download are provided by Google, found in Android SDK. I have simply extracted the tools and uploaded them for easy access, instead of telling everyone to download the whole SDK. You can get the same tools if you download the Android SDK directly from Google.
  • Extract the contents directly into your C:\ partition. You should now have a folder C:\Android that looks something like this:

  • Press Win + R on your keyboard to bring up the Run dialog.
  • Once the Run box is open, type in sysdm.cpl and hit OK:

  • Once you hit OK, the System Properties panel should open; click on the Advanced tab:

  • From the Advanced tab click on Environment Variables:

  • At the Environment Variables window find where it says Path under System variables, click on it, and click the Edit button:

  • When the Edit System Variable window pops up, type in ;C:\Android at the very end and hit OK:

Make sure you type in exactly ;C:\Android (be sure to include the semi-colon at the beginning).

  • After clicking OK, close out all windows. You are done!

Using ADB and Fastboot

Once you have them installed, using ADB or Fastboot is as easy as opening command prompt, typing in adb xxx or fastboot xxx (with xxx being the command you want to run)…

…and hitting Enter on your keyboard to execute the command.

Take note, however, installing ADB and Fastboot is not enough to start using it with your phones. You need to install the relevant drivers on your computer – so your PC recognizes your phone – before ADB or Fastboot will be able to work with it. If you don’t have any drivers installed, you will get an error similar to the following:

If you don’t have the proper drivers installed, read dotTech’s article on downloads links for USB (adb and fastboot) drivers for Windows for all Android phones.

Uninstalling ADB and Fastboot

Uninstalling ADB, Fastboot, and the other tools is as easy and undoing what you did when you installed. In other words, delete C:\Android and all the files in it and remove the environmental variable you added earlier.

Conclusion

You have installed ADB and Fastboot – now what? Now go look for guides on modding/hacking your phone. A good place to start is reading dotTech’s how to root guides. Another good place to look for Android hacking and slashing is XDA-Developers. If you are lucky, the guides you find won’t require you to use ADB or Fastboot; but if they do, you are now prepared because you just installed them.

Originally posted Jun 18, 2012. Updated Nov 16, 2012 to include newer version of ADB and Fastboot.

47 Comments »

  1. riaz mahamud October 15, 2012 at 11:37 AM (comment permalink) -

    hey ashrafb can u kindly tell me how can i update my lg gw620 from 1.5 to 2.3.7 gb. with details

    26
  2. hasem October 25, 2012 at 1:16 AM (comment permalink) -

    help I changed my path to c:\anroid what I should do now?

    27
  3. Ashraf October 25, 2012 at 2:01 AM (comment permalink) -
    Mr. Boss

    @riaz mahamud: I don’t know. Google it.
    @hasem: You can either rename the folder in your C:/ to “anroid” or you can go back to your Environment Variables window (as described in the article above) and change “anroid” to “android”.

    28
  4. Ashraf October 25, 2012 at 2:06 AM (comment permalink) -
    Mr. Boss

    @Hassan: After you remove the path from your Windows settings, try restarting your computer then deleting the folders.

    Hope that helps.

    29
  5. Ashraf October 25, 2012 at 2:07 AM (comment permalink) -
    Mr. Boss

    @Everyone: You are welcome!

    30
  6. foysyl November 12, 2012 at 12:32 PM (comment permalink) -

    @Ashraf:
    superb …..like it …& worked…..is thr no/any installer avlbe for do ths…

    31
  7. abi December 9, 2012 at 7:50 AM (comment permalink) -

    Hi…I’ve tried your tutorial in win 7, when I opened system variable (path) there is no power shell but nvidia/bluetooth…….etc but I still typed as your guide,after that I restarted, when I tried with my device (xperia pro) there is nothing happens, so what I have to do?

    32
  8. Noz December 9, 2012 at 10:07 AM (comment permalink) -
  9. mohit December 18, 2012 at 4:40 AM (comment permalink) -

    last step is not working
    after pressing enter
    its written ‘adb’ is not recognized as an internal or external command,
    operable program or batch file

    34
  10. Ashraf December 18, 2012 at 4:49 AM (comment permalink) -
    Mr. Boss

    @abi: Does your comp not recognize adb or your device? if the latter, then you need to install drivers.
    @Noz: Welcome!
    @mohit: Sounds like you didnt modify the environmental variables properly. go back and dbl check.

    35
  11. mohit December 18, 2012 at 5:04 AM (comment permalink) -

    thank you for previous query
    now i am getting another problem
    i am using sony ericsson play and have installed sony pc companian
    but still i am getting that error

    36
  12. jeff December 26, 2012 at 11:16 PM (comment permalink) -

    the drivers need to be updated.

    37
  13. Ubaid January 3, 2013 at 1:43 AM (comment permalink) -

    Can any one help me to inlock my htc explorer without htc dev and please guide me to how to use adb and fastboot or cmd Please reply soon?

    38
  14. gaurav January 8, 2013 at 4:10 AM (comment permalink) -

    Sir do i have to connect my phone to the pc ???
    If yes then i have a karbonn android phone and the driver is not in the list so what to do ???

    39
  15. eskargoz January 21, 2013 at 4:36 PM (comment permalink) -

    Thank you very very much !

    40
  16. eydien January 29, 2013 at 5:41 AM (comment permalink) -

    what should i do if this came out?”AdbWinApi.dll is missing from your computer”. .please help me ,how to reinstalling it??

    41
  17. loz February 14, 2013 at 6:08 PM (comment permalink) -

    When trying to run the command I keep getting “‘fastboot’ is not recognized as an internal or external command, operable program or batch file”

    42
  18. TheItguy March 1, 2013 at 4:03 PM (comment permalink) -

    Ashraf what commands do I run after install. I am having a terrible time rotting my LG optimus G

    43
  19. catherine March 6, 2013 at 3:05 AM (comment permalink) -

    hey ashraf can i get the latest stand-alone adb for the latest sdk revision 12

    44
  20. alex thobias March 17, 2013 at 4:38 PM (comment permalink) -

    i am not accessible for any commands i could use to excute my files for device rooting could any one help on this?

    45
  21. alex thobias March 17, 2013 at 4:41 PM (comment permalink) -

    a im experiencing some problems due to the ignorance on the commands i could use to excute my files for rooting my device could anyone help on this?

    46
  22. Giriraj May 16, 2013 at 12:11 PM (comment permalink) -

    A very clear cut description of Fastboot and ADB drivers.
    Thanks for sharing.

    47

Leave A Response »