Before explaining you through the procedure, here is a little explanation on what the Android ADB and Fastboot is. ADB is short for Android Debug Bridge, which is a platform that would provide a terminal or command based interface enabling the interaction between your computer and the Android device. ADB is available as a part of the platform tools which is given in the SDK, the software development kit by Google.
ADB basically is useful for the app developers to tamper the internal components of the computer operating system, and bring out the features which are not normally available to the user. Modding a firmware, playing around with the custom recoveries needs the changes to internal parts of the system, and that is all provided by the Android ADB.
The ADB is a very much needed tool if you wanted to make some advanced changes to the Android phone and it’s internal system.
Fastboot is another debugging bridge which is used to directly flash the filesystem to the Android devices, using the USB connection from the host. This even helps in flashing of the unsigned partition images.
Now, to set these ADB and Fastboot on the Windows PC, you need to first download the Android SDK app. You will have to select based on the chip used in your computer, whether it is a 32-bit or 64-bit one. Once you download that, follow the below given steps.
Once you have downloaded the SDK app file, extract it to your desktop so that it is easy to navigate. Open the extracted folder and you would see the sdk folder under which there is a sub folder named platform tools, and this is the folder you need because that contains the ADB and Fastboot files. Rename platform-tools to AndroidADB (really doesn’t matter but easy to remember).
Now, move that folder to the root of C:/ in ‘My Computer’. The path should show as C:\AndroidADB when you check the address bar.
Copying and placing it under this drive doesn’t finish the job, because you will need the command prompt to understand it and then run all the ADB commands under it. For this, you will have to set this folder under the system properties. Right Click on “My Computer” and go to Properties. There go to “Advanced System Settings” and under the Advanced tab, click on the bottom option – “Environment Variables”.
In the Environment Variables, go to System Variables and in that, “Path”. Under Path, you will see a list of different paths and here you need to add C:\AndroidADB in the end after a ;
Save and then close the settings.
The ADB folder is now configured and now you can easily run the commands for both ADB and fastboot from the Command Prompt. To verify whether it went good, you need to connect your Android phone to the computer with the USB connection, and then open Command Prompt from the stand menu and type adb devices and press enter. It would show the list of devices that are connected and ready to accept commands through the bridge.
The bridging and using the commands helps a lot in advanced changes to the operating system and settings in the Android phones, but you will have to set up the ADB on any computer before doing it.