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

Search This thread

wlmeng11

Senior Member
Apr 23, 2012
3,222
1,362
Palo Alto, CA
Hi thanks so much for this. Ive been wanting something like this for months/ almost a year.

All the other guides didnt work for me, but this was simple and easy to follow.

Ive encountered one problem and its device specific. My nexus 7 tablet works great with adb, but my htc evo 4g lte doesnt. its rooted, and running cm 10 4.1.2. its debugged any idea how to make it see the device?

UPDATE. so i turned on my usb storage on the device and it now sees the phone. Great work!!!!

Am i going to have to connect storage to mac all the time for this to work on any device?

What does it say for "adb devices"?

Sent from my HTC Rezound
 

fraul

Senior Member
Feb 9, 2012
123
12
OnePlus 7 Pro
I followed the thread to the best of my ability, but in the end when i type "adb devices" it reactsm but my device doesn't show up!
it worked before we did the ~nano thing. any help is appreciated.
 
  • Like
Reactions: Stajdanley

AshtonTS

Senior Member
May 11, 2011
5,727
2,657
27
Woodstock, CT
I followed the thread to the best of my ability, but in the end when i type "adb devices" it reactsm but my device doesn't show up!
it worked before we did the ~nano thing. any help is appreciated.

Try rebooting? Also, double check the nano editor to make sure you entered the text right, and make sure adb is set to allow root access on your phone
 
  • Like
Reactions: neehow

fraul

Senior Member
Feb 9, 2012
123
12
OnePlus 7 Pro
Worked instantly after i rebooted my computer, thanks a bunch! another quick question? how do i get a logcat? what's the code? i keep getting waiting for device, i don't know what to do after that!
 

wcypierre

Senior Member
Apr 11, 2012
438
192
Worked instantly after i rebooted my computer, thanks a bunch! another quick question? how do i get a logcat? what's the code? i keep getting waiting for device, i don't know what to do after that!

Try "adb logcat -d -v long > logcat.txt". The filename is called logcat.txt and it is saved at the place where your adb is. If the logcat.txt is empty, try to do this "adb devices" and see if there's any device found
 

fraul

Senior Member
Feb 9, 2012
123
12
OnePlus 7 Pro
I got around it using logcat on my phone, thanks for the help I really appreciate it

Sent from my SAMSUNG-SGH-I727 using xda app-developers app
 

AshtonTS

Senior Member
May 11, 2011
5,727
2,657
27
Woodstock, CT
Try "adb logcat -d -v long > logcat.txt". The filename is called logcat.txt and it is saved at the place where your adb is. If the logcat.txt is empty, try to do this "adb devices" and see if there's any device found

Thanks, I'v enever actually used logcat before so I couldn't have answered that myself. I'll be sure to thank you whenever I get my 8 Thanks back (or go on tapatalk) ;)
 

wcypierre

Senior Member
Apr 11, 2012
438
192
Thanks, I'v enever actually used logcat before so I couldn't have answered that myself. I'll be sure to thank you whenever I get my 8 Thanks back (or go on tapatalk) ;)

haha you're welcome :). Creating logs can be sometimes overwhelming for newbies so I have just made a tool(look at my thread) which can create logs easily but you have to compile it manually for mac(as I don't have a mac so I can't do it myself, I can teach you how to compile my code if you want to, so you can make a tutorial on creating logs on mac or something similar to that in the future ;))

---------- Post added at 10:45 PM ---------- Previous post was at 10:43 PM ----------

I got around it using logcat on my phone, thanks for the help I really appreciate it

Sent from my SAMSUNG-SGH-I727 using xda app-developers app

you're welcome :). alogcat or catlog are two good tools to get logcat with your phone. do drop by my thread for an easier logging or drop me a pm when you want to make other sorts of logs :D
 
  • Like
Reactions: AshtonTS

Top Liked Posts

  • There are no posts matching your filters.
  • 316
    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.
    ScreenShot2012-10-02at42205PM.png


    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)
    ScreenShot2012-10-02at42257PM.png


    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.
    ScreenShot2012-10-02at42232PM.png


    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.
    ScreenShot2012-10-02at42242PM.png


    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.
    ScreenShot2012-10-02at42733PM.png


    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
    ScreenShot2012-10-02at43423PM.png


    Press enter.
    ScreenShot2012-10-02at43424PM.png


    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.
    ScreenShot2012-10-02at44100PM.png


    (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:
    ScreenShot2012-10-02at44356PM.png

    (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
    ScreenShot2012-10-02at44544PM.png


    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!
    ScreenShot2012-10-02at44817PM.png


    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!
    24
    Added screenshots :)
    7
    So... Macs are Impersonal Computers?

    ---------- Post added at 06:24 PM ---------- Previous post was at 06:17 PM ----------

    Nice guide though btw

    Lol I'll fix that. Thanks btw. I'm out today, but I'll give you one tomorrow (too lazy to use my phone)
    4
    you won't need to install Java first like you would on a PC

    So... Macs are Impersonal Computers?

    ---------- Post added at 06:24 PM ---------- Previous post was at 06:17 PM ----------

    Nice guide though btw
    4
    To save time, you might want to just have a adb/fastboot combo instead of the entire sdk.
    (BTW it's tomorrow :p)

    Sent from my HTC Rezound

    Maybe, I actually use other parts of the SDK ;). Ill look into that though