You don’t need to Install the entire android development environment to get the adb now. Google collectively refers to ADB, fastboot, and a few other utilities as the Platform Tools package and has provided them seperately now. This post is assuming you don’t have android sdk or android studio installed.
Install adb on MacOSX using Homebrew
This is the easiest way and will provide automatic updates.
# Install homebrew ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" # Install Adb brew install android-platform-tools # run adb devices
Install adb manually
- Download your OS specific zip of platform tools from here.
- Extract the contents of the .zip file to a folder you can find later.
- Navigate to the extracted folder using your terminal, and there you will find the adb command.
- Run the command normally once you’re in to the extracted folder-
Installing ADB on MAC OS X - StackOverflow
SDK Platform Tools Download - Android Studio
Install Android’s ADB and Fastboot Tools on Any OS - Lifehacker