Install ADB Setup on macOS Device
To setup ADB on macOS device, follow these steps:
Go to https://developer.android.com/studio/releases/platform-tools.
Scroll down the page to locate Downloads.
Select SDK Platform-Tools for Windows and download it.
The platform-tools zip file will be downloaded. Extract the folder and place it in an accessible location..
Save it in a location where you won't accidentally delete it.
Start the terminal and enter the following commands:
mkdir ~/.android-sdk-macosx
mv platform-tools/ ~/.android-sdk-macosx/platform-tools
- Add platform-tools to the path:
echo 'export PATH=$PATH:~/.android-sdk-macosx/platform-tools/' \ ~/.bash_profile
- Refresh your bash_profile (or restart the Terminal app).
source ~/.bash_profile
- This package contains an adb.exe file; please note down this path which is required when configuring the agent.
The next step is to Set up the Android devices.
Alternatively, to install ADB via Homebrew, use the following command in the terminal:
- brew install --cask android-platform-tools