Adb And Fastboot For Mac


ADB and Fastboot are command line tools that allow you to communicate with Android devices like the Amazon Fire TV and Fire TV Stick. The Android Debug Bridge, which is more commonly referred to as ADB, is used in most of the guides on this website to perform a variety of tasks on Fire TV devices. Fastboot is similar to ADB in that it is a command line tool, but it is primarily used to replace the entire operating system on an unlocked Android device. This guide will show you the simple process of setting up both ADB and fastboot on either a Mac running OS X or a Windows PC.

  1. Adb And Fastboot For Mac
  2. Adb And Fastboot For Mac Os X

Most of the fastboot and ADB commands produce the same results on any device regardless of the manufacturer or variant. If you are stuck somewhere, where you need fastboot / ADB command to assist, this post is for you. I have listed all the important fastboot, and ADB commands in the table given below. Now you need to actually execute an adb or fastboot command. To do this, you'll need to type './adb (or fastboot) ' For this tutorial, we will use 'ADB devices' since it doesn't actually.

Contents

  • 1: Windows PC Guide
  • 2: Mac OS X Guide

Windows PC Guide

Drivers
  1. Download the latest version of ADB Installer from here: adb-setup
  2. Launch the setup file you just downloaded.
  3. When asked “Do you want to install ADB and Fastboot?” type Y and press enter.
  4. When asked “Install ADB system-wide?” type Y and press enter.
  5. When asked “Do you want to install device drivers?” type N and press enter.
  6. You’re done. Now, anytime you need to run an ADB or Fastboot command, simply open up a command-prompt (which can be done by typing “cmd” into the start menu) and enter your command.

Mac OS X Guide

  1. If your Mac has OS X El Capitan (v10.11 and up), then you need to first disable System Integrity Protection by following these steps. You can re-enable it after you finish installing ADB.
  2. Download the Android zip file from here: adb-fastboot-install
  3. Extract the zip file you just downloaded by double clicking it.
  4. Open the newly created unzipped folder.
  5. Open the Terminal application on your Mac.
    (If you don’t know where it is, you can search for it from Spotlight with ⌘-Space or find it in your Applications >Utilities folder)
  6. Drag and drop the “ADB-Install-Mac.sh” file from the unzipped folder into the Terminal window.
  7. Press enter in the Terminal window. You may need to enter your Mac password to complete the installation.
  8. Once the installation completes, you’re done. You can now open Terminal anytime and enter ADB or fastboot commands. Be sure to re-enableSystem Integrity Protection if you disabled it at the start of this guide.

Share

ShareTweetShare+1Colinsays:June 1, 2015 at 12:34 pm

I have the adb file chilling in my home folder on my mac and just connect it to my FTVs anytime I need to make changes. Is this different/better from just running adb through terminal like I have been from the start?

ReplyAFTVnewssays:June 1, 2015 at 4:28 pm

The only advantage of this method to what you’re doing is the instructions above will install ADB and Fastboot system wide. This means you can run ADB and Fastboot commands from any directory while in the Terminal app.

ReplyColinsays:

Adb And Fastboot For Mac

June 1, 2015 at 5:15 pm

Thanks!

FastbootFastbootReplyJohn Merrillsays:June 2, 2015 at 6:10 am

A Mac tip —
1. Open System Preferences
2. Open Keyboard Preferences
3. Click on the Shortcuts tab and select Services
4. Scroll down to Files and Folders and enable “New Terminal at Folder.” Quit System Preferences.

Assume that all your apk files are in your Downloads folder. To install an apk file via ADB, open your Home Directory and right click on Downloads. The Services menu will open and allow you to open a new Terminal at your Downloads folder. You no longer have to use any paths. Simply write “adb install xyz.apk”. Done

ReplyAFTVnewssays:June 2, 2015 at 11:06 am

Thats a great tip! Thanks.

Replygubo8888says:October 27, 2015 at 7:18 pm

Thanks!

ReplyMatthew Thomassays:October 28, 2015 at 9:32 am

Thank you much for sooo simple instruction!!! High five!

ReplyJRsays:December 30, 2015 at 3:04 pm

I seem to be having issues… it doesn’t seem to be reading my installation? ADB commands don’t seem to be working.

Here is what is popping up on my terminal

Last login: Wed Dec 30 17:56:49 on ttys000
Nexus:~ administrator$ /Users/administrator/Desktop/Android/ADB-Install-Mac.sh
This will install ADB and Fastboot on your computer.
Root Permissions required. Please type your password.
Password:
Changed directory to /Users/administrator/Desktop/Android
Moving ADB
mv: rename Mac/adb_Mac to /usr/bin/adb: Operation not permitted
ADB Moved to /usr/bin/adb
moving Fastboot
mv: rename Mac/fastboot_Mac to /usr/bin/fastboot: Operation not permitted
Fastboot moved to /usr/bin/fastboot
You may now run Android Debug Bridge and Fastboot commands
Have a nice day.
Nexus:~ administrator$ adb version
-bash: adb: command not found
Nexus:~ administrator$

Please advise. Any help would be appreciated.

ReplyTerrysays:January 1, 2016 at 11:31 pm

I have same using El Capitan

ReplyMacssays:January 3, 2016 at 4:11 am

I had this problem too. As of El Capitan the usr/bin folder is restricted so the install script will no longer work. To work around this you can disable “System Integrity Protection” then running the install script will work.

See instructions here http://stackoverflow.com/questions/32590053/copying-file-under-root-got-failed-in-os-x-el-capitan-10-11

Remember to enable System Integrity Protection once you are done

ReplyAFTVnewssays:FastbootMarch 7, 2016 at 10:22 am

I have updated the guide to work with El Capitan and get around this issue.

ReplyMaitas Vargtasssays:August 21, 2016 at 6:39 am

Im having problems too, same as JR and Terry. I followed the guide to turn off Rootles system integrity check. Osx rebooted and I tested by running “csrutil status” in terminal and it said “System Integrity Protection status: disabled”

I still get “-bash: fastboot: command not found” tho… what to do?

ReplyJegadeesansays:September 15, 2016 at 10:25 pm

Hi,

I have installed ADP V 1.4.2 but getting the below error.

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:UsersDell>adb start-server
‘adb’ is not recognized as an internal or external command,
operable program or batch file.

C:UsersDell>

ReplySamsays:November 17, 2016 at 4:53 am

ME too. Install Batch is working fine. Files are being copied. Even ran as administrator to make sure. No errors on install. But going to just check version from cmd prompt gets the ‘adb’ is not recognized as an internal or external command, operable program or batch file.

where does your installer put the files?

ReplySamsays:November 17, 2016 at 4:54 am

ME too. Install Batch is working fine. Files are being copied. Even ran as administrator to make sure. No errors on install. But going to just check version from cmd prompt gets the ‘adb’ is not recognized.. blah blah
where does your installer put the files?

ReplyJohnsays:November 2, 2017 at 3:32 pm

For Mac users experiencing the ‘command not found’ error, try prepending the command with ./

For example, ./adb devices

And here’s a time-saving tip: When typing anything at the command line, you can type the first character or couple of characters of, for example, an apk you want to install, then hit the tab key and bash will fill in the rest of the name for you.

ReplySteve Ssays:February 3, 2018 at 1:50 pm

I just tried installing v 1.4.3 on Win 10: when Installing ADB and FASTBOOT…. (System-wide) it shows 0 files copied instead of 4 files as per your images on this help page.

running as Administrator

Any ideas would really be appreciated!

Reply

Adb And Fastboot For Mac Os X

Clarencesays:March 15, 2019 at 12:56 pm

For windows you need to add an environmental variable to adb.exe file.

ReplyClarencesays:March 15, 2019 at 12:58 pm

My comment after reading seems kinda jacked.

So, Under Environmental Variables, for PATH, you need to add the path to the abd.exe file.

Reply

Leave a Reply

ADB & Fastboot Installation Guide

Hey, there are you looking for the most accessible guide to Install ADB And Fastboot On Windows/Mac? If yes, this article is for you. In this article, I will show you the most straightforward way to install ADB and Fastboot on your Windows or Mac.

First I will show you How To Install ADB And Fastboot On Windows. If you are a Mac user, then you can follow these steps on How To Install ADB And Fastboot On Mac.

Nowadays everyone wants to get the most out from your android device, so I am assuming that you love android and want to do customization on your phone to get most out of your Android Device. Now if you like to Install Custom ROM’s, Flash Modded Apps, Custom Recovery, Root, Unlock Bootloader. Then to flash the .img, boot, or recovery file on your phone, you need PC with ADB, and Fastboot drivers installed to flash files on your phone.

With the help of these both tools ABD and Fastboot, you can easily send terminal commands to your phone also, if you want to connect your android device to windows pc. You must have ADB and Fastboot drivers installed so that you can easily connect your phone to windows pc. So, by the end of this article, you will be able to install ADB drivers and Fastboot commands on your pc.

What Are ADB Drivers?

ADB stands for Android Debug Bridge. ADB is a small-sized tool through which you can send terminal commands to your phone. Now to send these commands to your phone you need to Enable USB Debugging. The best part of this tool is it works on both when the phone is turned ON and on recovery mode.

With the help of ADB Commands, you can unlock your phone, root your phone, install a custom kernel and more. ADB involves Linux shell commands which most of the developers use for development of ROM’s.

Some Important ADB Commands

  • This command will list all the devices that are connected in ADB mode to your PC
  • This will push the file from a computer to your phone
  • This command will pull any file from your phone to your PC
  • This will install apk to your phone
  • This will flash any zip file from your PC to your phone
  • This will reboot your phone
  • This will reboot your phone into Bootloader mode
  • This will reboot your phone into Recovery mode
  • This will take us to the shell on our phone

What Is Fastboot?

Fastboot is a very important tool for ROM developers as it helps to modify the Android file system from PC. Fastboot is not available for all android devices, many phone’s don’t allow us to enter into fastboot mode so it’s better to check first. You can easily flash custom recoveries. This tool sends commands to the phone bootloader.

Some Important Fastboot Commands

  • This will list all the device that is connected in Fastboot mode to your PC
  • This will give you the basic device info of your phone
  • For Unlocking Bootloader On Your Phone –
  • To Boot Your Phone In Recovery Mode –
  • For Flashing Recovery File –
  • To Reboot Your Phone/ Device –

Install ADB And Fastboot On Windows

Now before proceeding to further steps, make sure that you have installed all the necessary drivers for your phone. If you haven’t installed any USB Divers, then you can download the USB drivers from the requirement section and install them.

You can easily install ADB and Fastboot on your PC, you don’t have to do any complicated work in order to install ADB drivers just follow the steps carefully and that’s it.

Steps To Install ADB And Fastboot On Windows

1.) First, you need to download the required USB Drivers on your Windows PC, and all you have to do is run the file

2.) Now Download Minimal ADB and Fastboot tool on your PC

3.) After you have downloaded the Minimal ADB .zip file, Extract the zip file on your desktop

4.) Open the Minimal ADB folder that you just extracted and “Right Click” on cmd-here file and click on “Run as administrator.”

5.) Now you can type any ADB or Fastboot commands here, and it should work

Steps To Install ADB And Fastboot On MAC OS

1.) First, you need to open your Terminal and run the below command to Install Brew on your Mac

2.) Now run the below command to install ADB and Fastboot and then Enter your Password

3.) After that, ADB and Fastboot drivers should be installed in a minute

4.) Now you can run any ADB and Fastboot command using your terminal

Some Important Steps Before You Proceed

1.) Before you proceed, make sure to Enable USB Debugging on your phone

  • To Enable USB Debugging on your phone
  • Go To Settings >> About >> Tap Build Number 5-6 Times Until You See Message Saying “You are now a developer.”
  • Now Go Back To Settings Page >> Developer Options
  • Scroll Download And “Enable USB Debugging”

2.) When you connect your phone to your computer, make sure to allow USB Debugging Authorization

Now you can easily connect your phone to PC, and you can send terminal commands to your android device. You can now quickly flash custom recoveries, ROM’s, Root your phone, Unlock your phone.

Conclusion: So, this is all about How to install ADB and Fastboot drivers on any PC. Also, I have shown you how you can install ADB drivers on Mac OS. I hope this guide helps you.

If you have any questions related to this guide, then make sure to leave a comment, and I will help you to solve the problem. Also, you can ask your doubts and query through our official Facebook Page: RootmeGuide