The Android Development Bridge (ADB) is a vital part of Android App development, along with Android modding. Learning how to install ADB can help you later down the line. ADB allows you to access your Android phone via USB and issue commands to it. This can be really helpful for flashing roms, automated scripts or if your device is inaccessible through the normal Android interface. For this tutorial, we are going to focus on how to install ADB on Windows.
The first thing that you need to do is download the standalone ADB Zip file from Google. Unzip the file to any location on your computer. Preferably, you should keep in it a location that you will not delete. At this point, that’s all you need to do to get going with ADB. If you open up a command prompt and navigate to the current directory and type in adb you should see a list of commands that you can use.
But, if you try using ADB outside of the current directory you’re in, Windows will not recognize the command. Therefore, it’s better to setup adb as a system variable so that it can be accessed from any location.
To setup ADB as a system variable, hold down the Windows Key + S and search for System Variables. You should see an option to add or edit system variables.
You want to add another value to the path variable underneath System Variables. Select path and then hit edit.
In the following window hit new and type in the path to the adb folder that you unzipped in step 1. Then hit OK to save the changes.
Now when you open up command prompt and type in adb you should see a list of commands and this will work no matter what directory that you are in.