In fact, I now actually prefer to root Android devices on a Mac since it usually involves less headache. There are quite a few reasons behind this, including the fact that you can issue fastboot and ADB commands to a majority of the Android devices on a Mac without worrying about their drivers. On Windows though, it is impossible to execute a fastboot command without installing the drivers first as the PC will not be able to see the device itself.
Various guides on the Internet will recommend you to download the Android SDK manager to get ABDB running on your Mac. However, if you only want to use ADB/Fastboot to unlock the bootloader of your device and root it, there is no need to download the 400MB+ SDK.
Follow the steps below and you will be able to get ADB and Fastboot up and running on your Mac in less than 15 mins with hardly any effort.
Step 1: Open up Terminal on your Mac and execute the follow command:
ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”This will install Homebrew on your Mac, which is necessary for installing ADB and fastboot via the method mentioned in this guide.
Step 2: You will be prompted to download Xcode or only install the necessary files to run the commands properly. Select the ‘Install’ option and wait for the download to finish. If you already have Xcode installed on your Mac, you will not get any such dialog box.
Step 3: Once the necessary files are downloaded, you will need to enter the password of your local Mac account in Terminal so that the files can be installed successfully.
Step 4: After brew is installed, proceed to run the following command:
brew install android-platform-toolsThis will download and install the very latest version ADB and fastboot files on your Mac. Depending on the speed of your Internet connection, this step can take anywhere between a few seconds to a few minutes.
You can verify that ADB and fastboot are installed on your Mac by running the “adb version” command.
Next time you need to run an ADB or fastboot command, simply open up terminal and execute the ADB or Fastboot command you want to run straightaway. There is no need to navigate to any particular folder or directory before doing so.
One of the advantages of following the above steps to get ADB and Fastboot on your Mac is that they will be updated to their latest version automatically.
If you are facing any trouble in getting ADB/Fastboot to run on your Mac, drop in a comment below and we will help you out.