Article reprinted from: https://seo-michael.co.uk/how-to-setup-adb-on-os-x/
Here's an easy-to follow-for-setting up Android Debug Bridge (ADB) on your Mac.
- Create a new directory on your Mac called and placeandroidit somewhere easy to find
- Download Android SDK (300+mb Download)
- Unzip Adt-bundle-mac-x86_64-20140702.zip
- Rename unzipped directory to ANDROID-SDK
- Move the renamed directory android-sdk to the Android directory created in step 1
- Open the android-sdk directory
- Navigate to/sdk/tools
- Double Click (Need to right click and select Open) the android file
This would execute a command in Terminal and open the Android SDK Manager window. If you don't have the Java installed you'll get a popup in which you'll need to select more Info: so you can D Ownload and install it.
- In this window check Android SDK Tools & Android SDK Platform-tools and select Install packages< /c3>. They may has already downloaded automatically, it is easy to tell if they has as the Install Packages button WI ll be greyed out
If The above screen was blank you'll need to check updates/new & installed and the necessary packag Es'll appear.
In the next window, that opens select:
- Android SDK License
- Accept License
- Install
Installation would take a minute or both.
- Open the original android directory created in the first step
- Navigate toAndroid-SDK/sdk/platform-tools
- Copy The adb file
- Paste adb to the root of the original Android directory created in step 1
This is pretty much completed. Now we need to test to make sure it is working correctly.
Connect your Android device to your MAC. You must ensure the Android debugging enabled on your device. This was done via Developer Options (a hidden setting) which was activated by pressing Build number 7 Ti Mes in Settings > About Phone on your device.
Once Android Debugging is enabled:
- Open Terminal
- Type CD followed by the path to the original for Android directory in step 1. In my case this would is
cd ~/Documents/android
- Press Return
- Type./adb devices& Press Return
- Look at your your Android device as it is asking allow USB debugging from your MAC. If it does then allow.
You should now see your device listed as an attached device. If you had to select Allow on your Android device the need to type again for it to appear as an./adb devicesauthorised Devi Ce.
A message in Terminal saying
5037 *
* Daemon started successfully *
This was nothing to worry about; Continue to follow setup.
If you followed the steps above and everything went as expected then ADB are now installed and functioning as it should.
You can now add a path using Terminal so you don ' t need to CD into the Android directory and Add./To E Very command.
- Open Terminal
- Typenano ~/.bash_profile
- Press Return
You should has a Terminal window that looks something IKE the one above. Copy the export path command below into your Terminal windows replacing with the/Users/<yourusername>/Documents/androidcorrect path to the Origina L Android directory you created-in step 1.
Path=${path}:/users/<yourusername>/documents/android
- Press Return
- Press ctrl+x
- Press Y to confirm
- Press Return
- Quit Terminal
You can now confirm the this works by opening Terminal again and typing and youradb devicesshould see your device listed under ATT ached devices without have to change directories.
Share this post
"Reprint" How to Install & Setup ADB on Mac OS X