Steps to Install adb on your PC
-
Download latest version of the Platform Tools specific to your Operating system from the android site
Tip: Windows users will need the proper drivers installed on their computer -
Extract the archive somewhere you can remember
-
Run the below command in a console
For adb
path-to-the-extracted-archive/platform-tools/adb
…to the
adb
in the above path add the commands you want to execute for e.g.adb devices
For fastboot
path-to-the-extracted-archive/platform-tools/fastboot
…to the
fastboot
in the above path add commands you want to execute for e.gfastboot devices
Add the path to you PC configuration
To avoid having to type the above commands every time you can add the location of the folder where you save the extracted platform tool file to you system configuration
On Ubuntu systems
Type the below command to you .bashrc file
You will be able to see the .bashrc file which are hidden files by pressing on your keyboard ctrl and h keys
export PATH="$HOME/platform-tools:$PATH"
here we have assumed you have saved the downloaded files to a folder named
platform-tools
and this is in your home directory
After this you should be able to access adb
and fastboot
by typing only the below commands in a console
adb devices
or
fastboot devices