How to Setup ADB on Linux

You can setup ADB easily on any Linux distribution including Ubuntu, Fedora, openSUSE, Linux Mint etc.

  1. Download the Android SDK package for Linux [android-sdk_r21.1-linux.tgz]
  2. Place the downloaded file in your “HOME” folder.
  3. Right click on the file and select Extract here
  4. Now, you shall see a folder named android-sdk-linux.
  5. Open the terminal in the Home folder and type in the following commands:cd android-sdk-linux/tools./android
  6. Make sure everything is un-ticked. Now select Android SDK Platform-tools and install it.
  7. During the next window, you will be prompted. Accept the license and click on Install.
  8. When the installation is complete, close the window.
  9. The SDK manager has now download the platform-tools successfully, which certainly includes our prior ADB.
  10. The next step is to define the path where ADB is present.
  11. Open the terminal again and type in the following commands to add the SDK Path to the .bashrc & .profile. Here “gedit” is the default text editor in Ubuntu. In case you are running other Linux distribution, replace it with the name of the corresponding text editor. For example, in the case of Linux Mint, you shall use: gksudo pluma ~/.bashrc and so on for other distributions.gksudo gedit ~/.bashrc
  12. Go towards the end and add the following lines:# Android tools export: PATH=${PATH}:~/android-sdk-linux/tools export PATH=${PATH}:~/android-sdk-linux/platform-tools export PATH=${PATH}:~/bin
  13. Let’s do the same for .profile. Open Terminal and type:gksudo gedit ~/.profile
  14. Scroll to the very end of the file and add the following line:PATH=”$HOME/android-sdk-linux/tools:$HOME/android-sdk-linux/platform-tools:$PATH”
  15. Reboot your system now to take effect.
  16. To confirm the configuration, open Terminal and type:adb
  17. You have now successfully installed and configured ADB on your Linux machine.

Similar Posts

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.