FORUMS
Remove All Ads from XDA

[GUIDE] Set up ADB and Fastboot on a Mac easily (With Screenshots!)

5,727 posts
Thanks Meter: 2,843
 
By AshtonTS, Senior Member on 2nd October 2012, 10:37 PM
Post Reply Email Thread
8th April 2018, 07:05 PM |#221  
Senior Member
Thanks Meter: 90
 
More
Hello
I have a galaxy s9. When i use ./adb devices, it is ok. But when i use ./fastboot devices, nothing happend.
 
 
5th May 2018, 02:41 AM |#222  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by sebfar

Hello
I have a galaxy s9. When i use ./adb devices, it is ok. But when i use ./fastboot devices, nothing happend.

are you in fastboot mode?
adb is for adb mode..
fastboot is for fastboot mode..
5th May 2018, 05:27 AM |#223  
Senior Member
Thanks Meter: 90
 
More
Quote:
Originally Posted by kairi033

are you in fastboot mode?
adb is for adb mode..
fastboot is for fastboot mode..

Of course

In fact fastboot doesn't work with samsung

Envoyé de mon SM-G960F en utilisant Tapatalk
11th June 2018, 09:09 PM |#224  
Junior Member
Thanks Meter: 1
 
More
" adb devices" can not see my Yota 2.
Quote:
Originally Posted by AshtonTS

Ok, so I'm going to make a little write up on how to easily install ADB and fastboot on a Mac. It's actually quite simple, and plus you don't have to worry about drivers like in Windows.

Instructions

First, make a folder named "android" (no quotes of course ) You can place it anywhere on your hard drive, it doesn't really matter. Put it somewhere you'll easily remember, because you're going to be using it a LOT. I placed mine on my desktop.


Next, you'll want to download the android SDK from Here. (you won't need to install Java first like you would on a Windows PC, though I would recommend it anyway)
(As pointed out by Wlmeng11, you could skip this step just download a zip that I will have attached at the bottom of the page containing the adb and fastboot files instead of downloading the whole SDK)


When the SDK finishes downloading, Unzip it and the contents of the "android-sdk-mac_x86" folder into your android folder.

Once you have done that, open your android folder. Go into the tools folder inside of it. Double click on the file called "android" (possibly called android sdk) This file is a UNIX executable and will open within a Terminal window.


When it finishes opening, check the folder called tools. Make sure both "Android SDK Tools" and "Android SDK Platform-tools" are selected within the tools folder. Click install and wait for them to download.


When they finish downloading, go into the platform-tools folder inside your android folder, then copy adb and fastboot and paste them into the root of your android folder.


Now that you have adb and fastboot installed, we're going to want to test them to make sure they work.

Go ahead and plug in your android device at this time. Make sure android debugging is enabled in settings. Go into Settings > Apps > Developer and check it there (for Gingerbread 2.3 and lower) or go into Settings > Developer Options and check it there for Ice Cream Sandwich or Jellybean. As of now, there are two ways to access adb and fastboot.

Open a Terminal window (look in Applications > Utilities if you can't find it). Type "cd" followed by the path you saved your android folder to (I'm going to use the Desktop for this demonstration) it should look like this
Code:
cd /Users/<yourusername>/Desktop/android


Press enter.


Now you need to actually execute an adb or fastboot command. To do this, you'll need to type "./adb (or fastboot) <command>" For this tutorial, we will use "ADB devices" since it doesn't actually do anything to the phone. (we won't use fastboot since it requires rebooting to the boot loader which is different for every device)

In the same terminal window as before type the following:
Code:
./adb devices
then hit enter. It should turn up your device's serial number. If it does, proceed to the next step, if not recheck your steps, then leave a post in this thread.


(if it says * daemon not running. starting it now on port 5037 *
* daemon started successfully * that is perfectly normal)

Now, at this moment, ADB and Fastboot are both completely useable. However, it's very annoying to have to CD into the directory and use ./ in front of every terminal command. I'll show you how to add it to your path so you don't have to do any of that.

Open a new Terminal window and type
Code:
nano ~/.bash_profile
it will open a window that looks like this:

(Yours will probably be blank, because I've added a lot of stuff to mine over the years)

Add a line to it that contains the path to your android folder. (again, I'm using Desktop) It should look like this
Code:
export PATH=${PATH}:/Users/<yourusername>/Desktop/android


Once you have added that, press CTRL+X to exit, then Y to confirm the save then press enter. It will close the nano editor. You can close the Terminal window now.

Now we need to verify that it works. Open a new Terminal window and type
Code:
adb devices
If it shows the serial number, then you have set it up successfully and are good to go!


If you have any questions or issues let me know in the thread below.

If this has helped, please press thanks!

Awesome! This made the front page of XDA Thanks guys!

I installed "android.zip " on my iMac OS High Sierra and " adb devices" can not see my Yota 2 (YD206 ,Ver.4.4.3) ,just leaves empty line. But sees serial numbers of my HTCM9 (ver.6.0.0) and my Blue AIR (Ver.5.0.1).
Any help?
29th October 2018, 03:36 AM |#225  
metropical's Avatar
Senior Member
Flag New York
Thanks Meter: 35
 
More
useful info even today with new (to me) U11. thanks to OP.
28th November 2018, 10:06 PM |#226  
Junior Member
Flag Orsk
Thanks Meter: 17
 
More
Thanks for your work
29th January 2019, 01:52 PM |#227  
Junior Member
Flag Bologna
Thanks Meter: 1
 
More
Quote:
Originally Posted by sebfar

Hello
I have a galaxy s9. When i use ./adb devices, it is ok. But when i use ./fastboot devices, nothing happend.

They don't work together adb devices works during normal boot, fastboot works when you are boot the bootloader.
So, did you execute adb reboot bootloader before ./fastboot deves?
7th February 2019, 08:44 AM |#228  
Junior Member
Thanks Meter: 0
 
More
Update the docs!
This guide is great, but it's now pretty dated. The best way to connect to adb / fastboot is to grab the latest libraries direct from developer.android.com/studio/releases/platform-tools (unable to post proper link)
Then just unzip and run, boom! Tested this on 2018 Macbook Pro running OS X 10.14.2 Mojave. I was concerned earlier on that there may be some issue using ADB through my USB-C adapter, but this is fine.
18th July 2019, 03:18 PM |#229  
Junior Member
Thanks Meter: 0
 
More
I think there's an easier way to install
Quote:
Originally Posted by wlmeng11

Well since this guide is primarily aimed towards users who only want to root their phone, rather than developers, adb/fastboot is really all you need.
So it would save time to just use an adb/fastboot combo.

Well since this guide is primarily aimed towards users who only want to root their phone, rather than developers, adb/fastboot is really all you need.
So it would save time to just use an adb/fastboot combo.
3rd August 2019, 11:48 AM |#230  
Junior Member
Thanks Meter: 2
 
More
thanks!!!!!!!!
21st August 2019, 11:12 PM |#231  
Junior Member
Flag Dakar
Thanks Meter: 0
 
More
Quote:
Originally Posted by AshtonTS

Added screenshots

Any version for Infinix Smart 2 X5515?
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes