A simple Python script for installing ADB (Android Debug Bridge) on Windows and Linux systems, and automatically adding ADB to the system's PATH.
- Python 3.x
- Windows 8.1 or above or some linux distro
Clone the repo or download the script Run the script using python 3
python3 main.py
Follow the prompts to install ADB on your system.
Once the installation is complete, you can use ADB commands in the command prompt or terminal without having to specify the full path to the ADB binary.
If you get an error message that ADB is not recognized as an internal or external command, make sure that the script has added ADB to the system's PATH.
If you are on Linux and get a permission error, run the script with superuser (sudo) privilege.
Some linux users may need additional udev rules for their device to be succefully recognized, if this is you please run the linuxudev.py
file which should attempt to find your device and also install a generic rule list.
We welcome contributions to this script. If you have any suggestions or improvements, please feel free to open a pull request.
This script is released under the MIT License.