Skip to content

How to set the enviroment variable

Massimiliano Sartore edited this page May 31, 2024 · 1 revision

Adding Platform Tools to Environment Variable PATH for ATA-GUI on Windows

Introduction

This guide explains how to add the Android Platform Tools to the environment variable PATH on a Windows system. This setup is essential for ATA-GUI, which can either automatically detect platform tools from the PATH or it can download them automatically. Follow the steps below to configure your system for optimal use of ATA-GUI.

Prerequisites

  1. Download Platform Tools: Ensure you have downloaded the platform tools zip file from the Android Developer website.
  2. ATA-GUI Installation: Make sure ATA-GUI is installed on your system.

Step-by-Step Guide

1. Extract Platform Tools

First, extract the contents of the downloaded platform tools zip file to a directory on your computer. For example, you can extract it to C:\platform-tools.

2. Add Directory to PATH

Next, add the directory containing the platform tools to your system's PATH environment variable. Follow these steps:

  1. Open System Properties:

    • Press Windows Key + R to open the Run dialog box.
    • Type sysdm.cpl and press Enter to open the System Properties window.
  2. Navigate to Environment Variables:

    • In the System Properties window, click on the Advanced tab.
    • Click on the Environment Variables button at the bottom.
  3. Edit the PATH Variable:

    • In the Environment Variables window, scroll down to find the Path variable under the System variables section.
    • Select the Path variable and click Edit.
  4. Add New Entry:

    • In the Edit Environment Variable window, click New and add the path to the directory where you extracted the platform tools, e.g., C:\platform-tools.
    • Click OK to save your changes.
  5. Confirm Changes:

    • Click OK in the Environment Variables window.
    • Click OK again in the System Properties window.

3. Verify the PATH Addition

To ensure that the platform tools directory has been added correctly to your PATH, follow these steps:

  1. Open Command Prompt:

    • Press Windows Key + R, type cmd, and press Enter.
  2. Check PATH:

    • In the Command Prompt window, type echo %PATH% and press Enter.
    • Verify that the path to the platform tools directory (C:\platform-tools) is listed in the output.

4. Using ATA-GUI

With the platform tools now added to your PATH, ATA-GUI can automatically detect and use them. Follow these steps to use ATA-GUI:

  1. Launch ATA-GUI:

    • Open ATA-GUI.
  2. Automatic Detection:

    • ATA-GUI will scan the PATH and detect the platform tools.

Alternatively, if you prefer not to add platform tools to the PATH, you can place the platform tools in the same directory as ATA-GUI or specify the path within ATA-GUI's settings.

Conclusion

By following the steps in this guide, you have successfully added the Android Platform Tools to your system's PATH environment variable. This allows ATA-GUI to detect and use these tools seamlessly. If you encounter any issues, ensure the path is correctly added and that the tools are properly extracted.

For more information or further assistance, refer to my email [email protected] or by opening an issue.