

- #Mac os x open terminal here for mac#
- #Mac os x open terminal here install#
- #Mac os x open terminal here manual#
- #Mac os x open terminal here full#
- #Mac os x open terminal here mac#
backed up the ".bash_profile" and ".profile".In my case : I did the following (on a mac) : zshenv if you use zsh) as other users have suggested. If you don't have root access, just add the platform-tools directory to $PATH in your. Users/GodZilla/Software/platform-tools/fastboot

Users/GodZilla/Software/platform-tools/adb Quit and Open terminal again and check if it sees your platform-tools directory.
#Mac os x open terminal here full#
Paste the full path of your platform-tools directory (something like /Users/GodZilla/Software/platform-tools/adb) at the end of this list and save. $ cat /etc/paths # check contents of the file The downside is that you require root access. I like this way because after a few additions the $PATH starts to look too messy and hard to read, the /etc/pathshas everything in separate line, clean and organized.
#Mac os x open terminal here mac#
If you have root access, the easiest way I have found on a mac is to add your directories to the list in /etc/paths.
#Mac os x open terminal here for mac#
Search file ~/.bash_profile or ~/.zprofile & open it.Ĭommenting with some updated information from 2018.Įxecutable Binaries for Platform tools are made available for mac by Android here: ĭownload these to your mac.Go to the Home directory & tap command + shift +.Run the following command to reload your shell configuration:Īfter you have set the PATH for adb, you should be able to run the adb command from any terminal window.Press Ctrl+X to exit the Nano editor, then press Y to save the changes and Enter to confirm the filename. This will open the ~/.bash_profile or ~/.zprofile file in the Nano text editor.Įxport PATH=~/Library/Android/sdk/tools:$PATHĮxport PATH=~/Library/Android/sdk/platform-tools:$PATH Open a terminal window and enter the following command:.If you're using Bash, so you will need to edit the ~/.bash_profile file otherwise edit ~/.zprofile in your home directory. The default shell on macOS is Bash or Zash. To set the PATH for the adb command on a macOS system, firstly need to edit your shell configuration file. User > Library (Hidden folder) > Android > sdk > platform-tools > adb If you want to check the SDK is available or not, just check it by following this path: Close the SDK Manager window.Īdd platform-tools to your path echo 'export PATH="$PATH:~/.android-sdk-macosx/platform-tools/"' > ~/.bash_profileĬonsidering you have already downloaded SDK platform tools & trying to set adb path:
#Mac os x open terminal here install#
Run the SDK Manager sh ~/.android-sdk-macosx/tools/androidĬlick Install Packages, accept licenses, click Install. Unzip the tools you downloaded unzip tools_r*-macosx.zip Make sure you save them to your Downloads folder.

Refresh your bash profile (or restart your terminal/shell):ĭownload the Mac SDK Tools from the Android developer site under "Get just the command line tools". E.g., for bash: echo 'export PATH="$PATH:/opt/local/share/java/android-sdk-macosx/platform-tools"' > ~/.bash_profile Close the SDK Manager.Īdd platform-tools to your path in MacPorts, they're in /opt/local/share/java/android-sdk-macosx/platform-tools. Install the packages, accepting licenses. Uncheck everything but Android SDK Platform-tools (optional) Run the SDK manager: sh /opt/local/share/java/android-sdk-macosx/tools/android Install the Android SDK: sudo port install android Option 3 - If you already have Android Studio installedĪdd platform-tools to your path echo 'export ANDROID_HOME=/Users/$USER/Library/Android/sdk' > ~/.bash_profileĮcho 'export PATH="$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools"' > ~/.bash_profile

Refresh your bash profile (or restart your terminal app) source ~/.bash_profile Mv platform-tools/ ~/.android-sdk-macosx/platform-toolsĪdd platform-tools to your path echo 'export PATH=$PATH:~/.android-sdk-macosx/platform-tools/' > ~/.bash_profile Move them somewhere you won't accidentally delete them mkdir ~/.android-sdk-macosx Unzip the tools you downloaded unzip platform-tools-latest*.zip Go to your Downloads folder cd ~/Downloads/ Navigate to and click on the SDK Platform-Tools for Mac link.
#Mac os x open terminal here manual#
This is the easiest way to get a manual installation of ADB and Fastboot.ĭelete your old installation (optional) rm -rf ~/.android-sdk-macosx/ Option 2 - Manually (just the platform tools) Or try a cask install depending on your settings: brew install -cask android-platform-tools Install adb brew install android-platform-tools Install homebrew /bin/bash -c "$(curl -fsSL )" This is the easiest way and will provide automatic updates. Note for zsh users: replace all references to ~/.bash_profile with ~/.zshrc. Note: this was originally written on Installing ADB on macOS but that question was closed as a duplicate of this one.
