ADB and Fastboot for some...

Miniature American flags for others!

Since I'm going to potentially do a monthly (although maybe weekly) post related to more "difficult" tinkering that can be done with Android devices, it is beyond awesome and relevant that Lifehacker just posted the following earlier today.

This is quite possibly the easiest methods to get ADB and Fastboot setup on any OS. I am not even joking, the process for setting up ADB/Fastboot on Windows machines for sure used to be rather tedious and time consuming and don't even get me started on the difficulties we had early on when Windows 8 and then 8.1 came out. Those by and large have been solved and simplified, but they were pain for awhile. So it's nice to see things like this being released.

Read on and get to downloading and installing if you've got any interest whatsoever in really getting down and dirty with your Android devices.

As for what you can do with ADB/Fastboot, you can see two examples in the Command Prompt window included in the post.

adb reboot-bootloader

fastboot devices

The two of those are but two commands you can run.

The former would be sent while your device is booted normally and it basically reboots your device into it's bootloader, this is where you'd want it to be to get down to the really fun stuff you can do with ADB/Fastboot.


The latter ensures that your device is connected and being read by your computer. If you're not seeing a serial number and device model being listed then it means you've got issues. If it does come up though it means you can get to the fun stuff. (Like installing a custom recovery which opens up an even larger world of possibilities.)

So yeah, pretty informative and helpful post.

The Easiest Way to Install Android's ADB and Fastboot Tools on Any OS

If you’ve ever tried to root your Android phone or flash a ROM, you may have heard about ADB and/or fastboot. These two tools are surprisingly powerful, but can be a bit overly complex to install. Here’s how to do it the easy way.

Update: Google recently released ADB and fastboot as a standalone download. Now you don’t need to download a huge developer kit just to mod you’re phone! We’ve updated our guide below to reflect the changes and to use Google’s official download instead of third-party services.

What are ADB and Fastboot?

These two tools allow you to send terminal commands to your phone from your computer via USB. They both serve different functions, but they can be installed with relative ease at the same time, so it’s helpful to have both. Here’s a (very) brief breakdown on what these tools do:

  • Android Debug Bridge (ADB): This tool allows you to send a wide array of terminal commands—including but not limited to basic Linux shell commands, plus some specialty developer commands—to your phone at just about any time (as long as you have debugging enabled on your phone). You can send commands while the phone is turned on and booted, or even when it’s in recovery mode. While ADB is often used in conjunction with rooting or modifying your phone, you can use ADB to send terminal commands to unrooted devices as well.
  • Fastboot: When you need to modify your phone’s firmware, fastboot is the tool you need. This allows you to send commands to the bootloader, which means you can flash/modify things like custom recoveries. You can’t flash whole ROMs with it, but it’s helpful for many things that ADB can’t do. Fastboot isn’t enabled for all phones, so you may have to check your specific device.


Both of these tools come with the Android SDK, however that’s an extremely large download that, frankly, most users who are interested in ADB and fastboot don’t need. Fortunately, Google recently made it easy to get these two without all the junk.

Step 1: Download the Platform Tools Package


Google collectively refers to ADB, fastboot, and a few other utilities as the Platform Tools package. You can download the Platform Tools package from the SDK website here. There are separate packages for Windows, Mac, and Linux so download the appropriate version for your platform.

Once you’ve downloaded the Platform Tools package, extract the contents of the .zip file to a folder you can find later (like “C:\Android\platform-tools”). You don’t actually need to install ADB and fastboot to use them, but you can take an extra step to make them more convenient for you.

By default, you’ll either have to navigate to the folder where you extracted the Platform Tools package and run any ADB or fastboot command from there, or write out the full path where ADB is every single time you want to run a command. For example, this is a simple command to see what devices are attached to your system:

adb devices

If your command prompt isn’t open to the location where you extracted the Platform Tools, however, you would have to type something like this:

c:\Android\platform-tools\adb.exe devices

That’s a pain to go through every single time you want to tweak something on your phone. To fix this, we can modify something called the PATH variable so that you can run ADB and fastboot commands no matter which folder you’re in.


Step 2: Edit Your PATH Variable

The PATH variable is a master list of where to look for command line tools. By default your computer already knows where to find a few really useful tools. Here, we’ll add ADB and fastboot to that list to make it much easier to use them in the future. You’ll need to know where you extracted the Platform Tools package in the last step, so keep that folder location handy.



Depending on which version of Windows you’re using, these steps may be slightly different. To add ADB to your PATH variable, follow these steps:

  1. Open the Start menu and search for “advanced system settings.”
  2. Click “View advanced system settings.”
  3. Click the box that says “Environment Variables.”
  4. Under “System variables” click on the variable named “Path”.
  5. Click “Edit...”
  6. (Windows 7,8): Add ;[FOLDERNAME] to the end of the “Variable value” box, replacing [FOLDERNAME] with the folder path where you extracted Platform Tools. Be sure to include the semicolon at the beginning so Windows knows you’re adding a new folder.
  7. (Windows 10): Click “New” and paste the folder path where you extracted the Platform Tools. Hit Enter and click OK.


Now when you want to use ADB or fastboot, simply open a command prompt from the Start Menu and enter your commands.


Editing the macOS and Linux PATH files are a little more complicated than on Windows. However, if you’re comfortable with a command line, it’s still pretty simple. This method will automatically add the location of ADB and fastboot to your PATH every time you log into your system:

  1. Open up a Terminal window by navigating to Applications/Utilities or searching for it in Spotlight.
  2. Enter the following command to open up your Bash profile: touch ~/.bash_profile; open ~/.bash_profile
  3. The .bash_profile file should open in your default text program.
  4. Add this line to the end of the file: export PATH=”$HOME/[FOLDERNAME]/bin:$PATH” replacing [FOLDERNAME] with the location where you extracted ADB and fastboot.
  5. Save the file and press Cmd+Q to quit your text editor.
  6. In your terminal enter source ~/.bash_profile to run your Bash profile for the first time.


From now on, any time you open a Terminal window, you can run ADB and fastboot commands from wherever you are.

About the author