[HowTo] Setup ADB for Android on Linux

In this new post, I will explain how to install ADB (Android Debug Bridge) on a Linux Debian based system.

What is ADB ?

If you read this article, I suppose that you know why do you want to install ADB but like all good [HowTo] I must explain briefly what is it. ADB or Android Debug Bridge, is a fully equipped and loaded command-line tool which is put to use in order to communicate with an Android device. ADB tool is provided along side the Android SDK and one could easily find this tiny but versatile tool under <SDK>/platform-tools/

ADB is composed of 3 components :

  • The client : It is what runs on your machine
  • The server : It is held responsible for communication between the client and daemon running on a device/emulator
  • The daemon : It runs as a background process on each device/emulator instance

Install ADB on linux

  • Installing ADB on linux is easy. Just follow these steps :
  • Download the SDK Android package here. At the time of writing this article, the latest version of the SDK was r23.0.2)
  • Extract the content of the ZIP file. (in my case, android-sdk_r23.0.2-linux.tgz)
  • Move the extracted folder (android-sdk-linux) in the Home folder
  • With a terminal, go to extracted folder, the in tools and execute this command : sudo ./android
  • Please make sure everything is un-ticked. Now select Android SDK Platform-tools in tools directory and install it
  • During the next window, you will be prompted. Accept the license and click on Install
  • Close the window when the installation is complete
  • The SDK manager has downloaded the platform-tools successfully, which certainly includes our prior ADB
  • The next step is to define the path where ADB is present.
  • Open the terminal again and type in the following commands to add the SDK Path to the .bashrc & .profile
sudo nano ~/.bashrc

Now, at the end of this file, write this:

# Android tools
export PATH=${PATH}:~/android-sdk-linux/tools
export PATH=${PATH}:~/android-sdk-linux/platform-tools
export PATH=${PATH}:~/bin

Note : If you don’t have the folder android-sdk-linux in your Home directory, please write the correct path in this file.

  • Lets do the same for .profile. Open Terminal and type this at the end of the file.
  • Reboot the system to apply changes
  • Now, open a terminal and type the adb command to test if ADB is correctly installed.
adb version
Android Debug Bridge version 1.0.31

If you can see the version of ADB, the installation is successful. Please write a comment if you have suggestion, trouble with this post.

Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.