Install ADB on the macOS Devices
To setup ADB on macOS device, follow these steps:
1. Go to https://developer.android.com/studio/releases/platform-tools.
2. Scroll down the page to locate Downloads.
3. Select SDK Platform-Tools for Windows and download it.
4. The platform-tools zip file will be downloaded. Extract the folder and place it in an accessible location.
5. Save it in a location where you won't accidentally delete it.
6. Start the terminal and enter the following commands:
mkdir ~/.android-sdk-macosx
mv platform-tools/ ~/.android-sdk-macosx/platform-tools
7. Add platform-tools to the path
echo 'export PATH=$PATH:~/.android-sdk-macosx/platform-tools/' >> ~/.bash_profile
8. Refresh your bash_profile (or restart the Terminal app).
source ~/.bash_profile
9. 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.
Note:
Alternatively, to install ADB via Homebrew, use the following command in the terminal:
- brew install --cask android-platform-tools