• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Rooting with a Mac

D

Deleted User

Guest
Hi guys, i can really use some help. I'm trying to root my stock Nexus 5 (5.0.1) on my Mac. The problem seems to be that the commands i'm following, are not being accepted by the terminal. I've tried several "how to's", but i always get stuck in the same spot. I can unlock the bootloader, and reboot the phone. That's it. Any command that i put in after that(i'm following the rooting guide) is not recognized. I have the rooting folder on my desktop, and maybe i need to tell the terminal that's where it is. After four hours, i'm very frustrated. Any help with this would be greatly appreciated. Thanks.:confused:
 
You probably do need to tell the terminal where to look for the rooting files. The command is "cd " the type (or copy and paste) the directory of the folder. Are you using CF Auto root?
 
I assume that you mean this - http://androidforums.com/threads/nexus-5-rooting-guide.790362/

If you're following the direct steps with our Mini-SDK, I also can help on any point with a Mac easily.

If you used another method to get the fastboot (and optionally adb), the steps are the same, just the starting points may vary.

Please let us know which way you started.

AndroidRootz guide for rooting Nexus5 on a Mac. Please look at step #12. I'm hung up there. When i input the command into terminal, it says that it doesn't recognize the command. When i type in adb devices, all it says is mbp(macbook pro).:confused:
 
AndroidRootz guide for rooting Nexus5 on a Mac. Please look at step #12. I'm hung up there. When i input the command into terminal, it says that it doesn't recognize the command. When i type in adb devices, all it says is mbp(macbook pro).:confused:

So your phone isn't showing up as an adb device?
 
Is adb in your path?

If not and if you're executing from where adb is, then the proper command becomes -

./adb devices

Can you link the guide? I'm mobile, would make it easier.

To see if it's in your path, the command is -

which adb

If it doesn't return the directory (folder) followed by /adb it's not in it.
 
When i type in "which adb", i get /sdk-tools/adb. My root nexus 5 folder is on my desktop, and the sdk-tools folder is on the hard drive. Don't know how to send you a picture of the terminal.:(
 
When i type in "which adb", i get /sdk-tools/adb. My root nexus 5 folder is on my desktop, and the sdk-tools folder is on the hard drive. Don't know how to send you a picture of the terminal.:(
Don't sweat the picture for now, its clear and we can get you there.

OK, so you have two issues that I see - access to your root folder and your phone not being seen.

Let's concentrate on adb first.

Is your phone up and running normally with USB debugging turned on?

Have you checked that you're plugged in to a USB 2 port and not USB 3?

Is Android File Transfer, if you have it, closed?

When Android File Transfer runs, can you see your files in the storage area? (Will confirm the cable and the usb port.)
 
Don't sweat the picture for now, its clear and we can get you there.

OK, so you have two issues that I see - access to your root folder and your phone not being seen.

Let's concentrate on adb first.

Is your phone up and running normally with USB debugging turned on?

Have you checked that you're plugged in to a USB 2 port and not USB 3?

Is Android File Transfer, if you have it, closed?

When Android File Transfer runs, can you see your files in the storage area? (Will confirm the cable and the usb port.)

1-Yes
2-Yes
3-Yes
4-Yes
5-Yes
 
When you say

adb devices

Do you get a security confirmation on your screen?

Plus, if I have the right link above and we're only worried about following their instructions, and fastboot worked for unlocking your device, why are we on adb?

Mind, I'm not criticizing, I'm still getting aligned with your steps and setup.
 
When you say

adb devices

Do you get a security confirmation on your screen?

Plus, if I have the right link above and we're only worried about following their instructions, and fastboot worked for unlocking your device, why are we on adb?

Mind, I'm not criticizing, I'm still getting aligned with your steps and setup.

Fastboot worked. If we don't need adb, that's fine. If you can get me through step #12 of that guide, that should do it. Thanks.
P.S. I've since relocked the bootloader, and shut off the N5. I'll start at the beginning, right after dinner.:p
 
Maybe it'll change when you're fresh.

Let me know how you get on.


Will do. One thing: Step #12, the command for mac looks awfully long. Is it all one command? Shouldn't the word "desktop" be in there somewhere, as that's where my RootNexus5 folder is? Thanks.:p
 
Will do. One thing: Step #12, the command for mac looks awfully long. Is it all one command? Shouldn't the word "desktop" be in there somewhere, as that's where my RootNexus5 folder is? Thanks.:p
Nope.

The root of the command is simple -

fastboot flash recovery recovery-file-name

Use fastboot, to install (flash), on your recovery partition, an image.

The line length is just the line length.

Easy way to get to the right place -

Open a Terminal AND the Finder.

In the Finder, tap on the folder, on the desktop, of the root folder.

In Terminal -

cd(spacebar)

In Finder, drag the desktop-root folder to the Terminal, let go.

Click in the Terminal. Hit return.

Execute step 12 as given. Copy and paste will work.

You'll probably be OK - but - those are old files in your link.

If you have trouble, we'll be looking at that.
 
Frankly, if it was my phone, seeing as how you already have our Mini-SDK, I would do the following -

Get the SuperSU zip from - http://forum.xda-developers.com/apps/supersu

Download it to your Nexus storage while running normally.

Get TWRP from here -

http://teamw.in/project/twrp2/205

If you're running Lollipop, go back to the main page and choose the right version instead of that one.

Get the image (IMG) file, and drag it to the sdk-tools folder (still assuming that you're using our Mini-SDK).


Then in the Terminal, with the bootloader unlocked and the phone in FASTBOOT mode as noted in your original guide -

cd /sdk-tools
fastboot flash recovery open(tabKey) (return)

Go to recovery, and choose Backup - accept the defaults for boot, system, and data.

Go back, then Install. Choose the SuperSU zip file by browsing.

Done, you're rooted and have your stock system already backed up.
 
Went a different way. Used Mac toolkit for root(nexus5) on the xda website. Got root the first time. Thanks for your help.:p
 
Back
Top Bottom