Home > Tips and Tricks

Download Latest Android SDK Platform Tools [Windows/Mac/Linux]

In this guide, we will show you the steps to download and install the Android SDK Platform Tools on your PC. Among the plethora of tools and custom binaries doing the rounds in the open-source ecosystem, there’s no denying the fact that the ADB and Fastboot Tools are probably the most important ones. Moreover, it is among the very few tools that are used by both tech enthusiasts and normal users alike.

android sdk platform tools

If we talk about the latter set of users, they could use it to boot their device to Stock Recovery and then format their device or flash the firmware via ADB Sideload. Likewise, they could also use it to execute ADB Shell commands and remove bloatware or preinstalled apps from their device. Then if we shift our attention towards the tech geeks, well, the platform-tools is the gateway to entering the custom development market.

android sdk platform tools

Right from booting their device to Fastboot Mode, to flashing Magisk patched boot.img for root, flashing firmware to unbrick their device, or flashing custom ROMs and recoveries, probably none of these tweaks would be possible if it wasn’t for this tool. Well, enough of the praise, let’s now get straight to the task and make you aware of the steps to download and install the Android SDK Platform Tools on your PC.

How to Install Android SDK Platform Tools on Windows

android sdk platform tools

The below instructions are listed for Windows PC. If you are on Mac, refer to the next section.

YouTube video

STEP 1: Download Android SDK Platform Tools

  1. To begin with, download the Android SDK Platform Tools on your PC from below:
    Windows | Linux | macOS 
    [Note: Links are automatically updated from Google's servers]
  2. Once downloaded, extract it to any convenient location on your PC.android sdk platform tools
  3. Doing so will give you the platform-tools folder, which will be used throughout this guide.

STEP 2: Add ADB to Path

So you have downloaded and extracted the Android SDK Platform Tools to a convenient location of your choice. Your next step should be to inform your system about this location as well. And this could be done by adding the ADB path to the system’s Environmental Variables. To do so, you may either refer to our detailed guide on How to Add ADB to Path in Windows 11 or check out the below shorter instructions-

  1. To begin with, note down the location where you have extracted the Android SDK Platform Tools.
  2. Then head over to the Start menu, search View Advanced System Settings, and open it.Android SDK Platform Tools
  3. You shall now be taken to the Advanced tab of System Properties.
  4. Click on the Environmental Variables button situated at the bottom right.
    android sdk platform tools
  5. Now select the Path field under System Variable and click on the Edit button.
    android sdk platform tools
  6. After that, click on the New button and paste the platform-tools folder location (that you had earlier copied) in the space provided.
    android sdk platform tools
  7. Then click OK to save this path. Again click OK to close Environmental Variable and finally click OK to close System Properties.
  8. That’s it. Now restart your PC (optional but recommended) and your tasks stand complete.

STEP 3: Verify ADB Connection on Windows

  1. To begin with, enable USB Debugging on your device to make it recognizable by the PC in ADB mode.
  2. To do so head over to Settings > About Phone > Tap on Build Number 7 times [MIUI Number in Xiaomi Devices].
  3. Then go back to Settings > System > Developer Options > Enable USB Debugging.android sdk platform tools
  4. Likewise, it is also recommended that you change the USB Type to File Transfer from Charging Only [you may do so from the Notification Panel itself].
  5. Once done, now head over to the platform-tools folder, type in CMD in the address bar, and hit Enter.android sdk platform tools
  6. This will launch the CMD window with the platform-tools folder directory.
  7. Now execute the below command to verify the ADB Connection:
    adb devices

    android sdk platform tools

  8. You should now get your unique device ID, signifying that the ADB connection is successful.
  9. If you also get an unauthorized message, then check your device, there will be a prompt, tap on Allow.android sdk platform tools
  10. Then again execute the above command and this time you won’t get the unauthorized alert in the CMD.

STEP 4: Install Fastboot Drivers [OPTIONAL]

YouTube video

The ADB is just the tip of the iceberg, most of your work would usually be carried out in the Fastboot Environment. However, your PC wouldn’t be able to identify the connected device in Fastboot Mode unless it has the necessary Fastboot Drivers installed. So please refer to our guide on How to Install Fastboot Drivers in Windows 11.

android sdk platform tools

STEP 5: Verify Fastboot Connection [OPTIONAL]

  1. To begin with, make sure that you have carried out all the steps mentioned in the above ADB section.
  2. Then execute the below command in the CMD window that is opened in the platform-tools folder:
    adb reboot bootloader

    android sdk platform tools

  3. Your device will now boot to the Fastboot Mode, signifying that the connection stands successful.

How to Install ADB on Mac?

YouTube video

There exist two different methods through which you can install the Android SDK Platform Tool or ADB on your Mac- via the direct official link or using Homebrew. It is a free and open-source software package management system that allows you to install applications on your Mac and Linux OS via CLI. Moreover, it is the shorter and easier of the two methods for setting up ADB on Mac as it has a big advantage over its counterpart in that you don’t have to manually add ADB to Path. Moreover, it will auto-update ADB on your Mac as soon as a new version is available.

However, some users prefer to maintain a safe distance from it just because it involves dealing with commands. In the case of the former [Direct Link], it doesn’t involve any Command Line Interface and is completely GUI-based, so this might come as a relief for some. On the flip side though, you’ll have to manually add ADB to Path [which is somewhat complicated] and update Android SDK Platform Tools manually as well. With that said, we have given both methods below, you may try out the one that is in sync with your requirements.

Install ADB on Mac via Direct Link

  1. Download the Android SDK Platform Tools from below:
    DOWNLOAD LINK
  2. Now extract it to any convenient location onto your PC.install adb on mac
  3. Then open the Terminal app from Launchpad > Others.
  4. Now type the below location, replacing path accordingly
    cd /path

    install adb on mac

  5. I have extracted it to Desktop, so the command will be:
    cd /Users/sadique/Desktop/platform-tools/
  6. ADB is now set up. Let’s proceed ahead and verify the same.

Install ADB on Mac via Homebrew

  1. First off, launch Terminal from Launchpad > Others.
  2. Then copy-paste the below command in the Terminal:
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  3. It will install Homebrew on your Mac in a few seconds.install homebrew macos
  4. Once done, you’ll now have to add Homebrew to Path.
  5. For that, copy-paste the below commands in Terminal:
    (echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/sadique/.zprofile
    eval "$(/opt/homebrew/bin/brew shellenv)"
  6. NOTE: Depending on your username, the above command will be slightly different.
  7. Now copy-paste the below command to install the ADB
    brew install --cask android-platform-tools
  8. That’s it. ADB is now successfully installed on your Mac.homebrew android sdk adb platform tools

Now that we are done setting up the ADB environment, let’s put it to the test and verify the results, in other words, let’s verify the ADB Connection on your Mac. Follow along.

Add ADB to Path

This is only required if you have set up Android SDK Platform Tools using the Direct Link method. If you have done so via the Homebrew method, then you may skip this section. NOTE: If you’re running macOS older than Catalina, the default shell will be Bash. For macOS Catalina and newer versions, the default has been changed to the Z shell (Zsh). Still, we will first perform a check and then proceed ahead to add ADB to Path on your Mac.

  1. First off, open the Terminal window from Launchpad > Other.
  2. Then type in the below command to go to the Home directory:
    cd ~
  3. After that, type in the below command to find the current shell
    echo $0

    Add ADB to Path mac

  4. If you get a Bash output then type in the below command:
    touch .bash_profile
  5. On the other hand, for Zsh, you should use the below command
    touch .zshrc

    Add ADB to Path mac

  6. Now Open the shell configuration file with TextEdit. For Bash:
    open -e .bash_profile
  7. On the other hand, for Zsh, use the following command
    open -e .zshrc
  8. Then type in the below command, replacing the path accordingly:
    export PATH=$PATH:/path_to_SDK_Platform_Tools

    Add ADB to Path mac

  9. In my case, the path is Desktop, so the command will transform to
    export PATH=$PATH:/Users/sadique/Desktop/platform-tools/
  10. Now save the changes via Command+S and close the TextEdit file.
  11. Next, go back to Terminal and reload the shell settings. For Bash:
    source .bash_profile
  12. On the other hand. For Zsh, you should use the below command:
    source .zshrc
  13. After that, type the below command to verify the PATH variable:
    echo $PATH
  14. Finally, launch a new Terminal window and type in the command:
    adb

Verify ADB Connection on Mac

  1. To begin with, head over to the Settings > System > About Phone.
  2. Now tap on Build Number 7 Times [OS/MIUI Version on Xiaomi].
  3. This will enable Developer Options and you’ll be notified of the same.retain twrp custom rom
  4. So go to Settings > System > Developer Options.
  5. Then enable the toggle next to USB Debugging.
  6. Now connect your device to your Mac via USB.
  7. Then change USB Type to File Transfer from the notification panel.
  8. Now open Terminal and type in the below command [replace path]
    cd /path_to_SDK_Platform_Tools
    NOTE: This cd is only required if you haven't added ADB to Path.

    install adb on mac

  9. For example, I have extracted ADB to Desktop, so the command is:
    cd /Users/sadique/Desktop/platform-tools/
  10. Finally, type in the below command to verify the ADB connection:
    ./adb devices

    install adb on mac

  11. You should now get your unique device ID, signifying that the ADB connection is successful.
  12. If you also get an unauthorized message, then check your device, there will be a prompt, tap on Allow.android sdk platform tools
  13. Then again execute the above command and this time the connection is successfully established.

Can I use any other ADB Tool?

It is not advised to use any other third-party ADB and/or Fastboot Tools. This is because most of these tools are outdated and haven’t received updates in years. Moreover, they aren’t in sync with newer Android changes either [such as the FastbootD Mode, dynamic partitions, etc].

Can I use Powershell instead of CMD to Execute Commands?

While you could use Powershell instead of Command Prompt, but I wouldn’t advise you to do so. This is because Powershell requires you to append a couple of additional characters or keywords before each command which makes it quite difficult and confusing. So stick with CMD and you won’t face any issues as such.

How to Open CMD as Admin inside Platform Tools

If you want to open the Command Prompt as an administrator inside the platform-tools folder, then there are two different approaches that you could take-

  • Open CMD as an administrator from the Start Menu and then use the cd command to change the directory to the platform-tool folder.
    Benefit- it is easier to carry out. 
    Drawback- You will have to do this everytime.
  • Add the Open CMD as administrator option in the right-click menu. [Personally, I would recommend this approach].
    Benefit- it just requires a one-time setup required. 
    Drawback- Slightly technical to set up.

    android sdk platform tools

List of all ADB and Fastboot Commands

From this guide, you will be able to get hold of all the important and most frequently used ADB and Fastboot Commands as well as their usage instructions. So do check out our guide on A List of Useful ADB and Fastboot Commands and their Usage.

android sdk platform tools

How to Fix ADB and Fastboot Errors

it is no hidden secret that the ADB and Fastboot domain is prone to quite a few issues. From the inability of the device to be recognized in Fastboot Mode to the inability of the CMD to flash a file, you might com across quite a few bugs and issues. Fortunately, we have it all covered, do check out our guide on How to Fix All Possible ADB and Fastboot Errors.

android sdk platform tools

So this was all from this guide on how you could download and install the Android SDK Platform Tools. We have also addressed some of the most commonly asked queries relating to this tool. If you have any queries concerning the aforementioned steps, do let us know in the comments. We will get back to you with a solution at the earliest.


Share: