Setup Android ADB on Mac Effortlessly

Complete steps for Setup Android ADB on Mac

setup adb android

If you want to setup Android Debug Bridge on your Mac, then firstly you need to know complete about ADB. There are some reasons to setup the ADB on your Mac.



What is ADB?

ADB stands for Android Debug Bridge. With this versatile tool you can easily manage the state of Android powered device. It is the mixture of two different applications. One application is for your pone and other one is for your Mac or Linux. After connecting your phone with the Mac, you can command and communicate with the phone by using your Mac. You can easily view this on your screen and keyboard.

Your command and communication will run directly on the device itself using some terminal emulator. It is quiet difficult to execute the complex commands. It is actually a bridge between your Mac and your machine.

Basically the ADB is used for Android development. It has mainly constituted of three components: A server, a daemon and a client. It is used on actual Android device to manage either emulator. It is an Android development machine which is the basic requirement of the development. Its client component runs through the development machine. And also ADB daemon runs as background process in the device automatically.


Why do need to setup ADB?

ADB is a perfect tool for android users and to interact with the Android phone system it has terminal based interface. There are following reasons to setup the ADB.

  • The first thing which is needed to setup the ADB is to facilitate interaction between both AVB emulators, develop system and physical Android device. It is required for the purpose of debugging and running applications.
  • It consists of daemon background process running AVDs, so many processes running in the background and physical Android device such as tablets and phones.
  • By using the ADB command line tools you can perform the various tasks. Through your Mac ADB components are used for the Android development.


How to setup Android ADB on Mac.

To setup ADB on Mac follow these procedure setps:

Step 1: Installing the Android SDK

Before starting the download process, create a new directory that you can easily find. So, before installing Android SDK check for the available latest version. For Mac get the SDK package as zip format. Download and extract the zip package. You will see folder such as android-sdk-macosx. So enter and search the folder: sdk-macosx/tools/.



setup android

To run the SDK manager, double click on the "android". Leaving all other things un-ticked.

Step 2: Downloading the SDK Platform Tools

After this download and install the SDK Platform Tools. In the next window you will see the license regulation which you have to accept and Install the tools. After completing the installation process, close the window. In this way SDK manager downloads the SDK Platform tools successfully. It is very important to set the path where ADB is located.

Now open the directory android that you made in the first step. Tap on to the /sdk/platform-tools and copy the adb file. In the root of the original android directory, paste the adb. Now the entire task is complete only you need to check the process.

After this setting you have to connect your android device with your Mac, but before this enable the Android Debugging on your device and to do this go to the Developer options, it is actually a hidden setting. When you tap the Build number 7 times during Settings > About Phone on your device, it will be activated.


  • Open the Terminal and type cd in the path of original android directory that you made in the first step.
  • cd ~/Desktop/android
  • click Return
  • Again Type ./adb devices & press Return

Check your Android device, it might ask you to Allow USB Debugging from your Mac. If you find any such message like this then, just allow it.


  • You will see that your device is enlisted under the list of attached device.
  • To see that your device is an authorized device, you have to type. /adb devices again.


setup android 2

 

 

You will get a message in Terminal like this:

* daemon not running starting it now on port 5037 *
* daemon started successfully * .

 

setup android 3

Don't worry; continue the following process in the setup.

If you follow these mentioned steps properly then ADB is installed and function ready to start. By using the terminal you can add a path and now you don't need to add./ and cd in the android directory to every command.


  • Open terminal

  • Write nano ~/.bash_profile

  • Click Return.

 


setup android 4

 

 

There must be a terminal window, so as to copy the export PATH command just below your Terminal window exchanging /Users/ / Desktop/android with the correct path to the original android directory which you have created in the first step.


export PATH=${PATH}:/Users/ /Desktop/android


setup android 5

  • Click on Return

  • Click on CTRL+X

  • Click on Y to confirm

  • Click on Return

  • Close Terminal


setup android 6

 

 

To confirm the installation, type adb devices into the Terminal and you will see device enlisted under attached devices without having to change directories. Before using the last step of adb devices add close terminal. It may create trouble to setup. For perfect ADB setup follow the complete procedure. If still you are facing any problem then try it again on your Mac OS.



How to Use ADB

To do the setting process follows the above mentioned procedure. You can simply use ADB to manipulate your phone. Check the command of your ADB on your Android device. Tap 'adb device' and then press enter. Now you will see the serial number on the screen. If you are unable to install the ADB or failed to use the ADB, just follow the instruction again carefully because it is correct way to setup the Android Debug Bridge on your Mac.

Tips & Trick