Lloydbm41

Suspended
Original poster
Oct 17, 2013
4,019
1,455
Central California
For those technically inclined and don't need or want a toolkit, this is the best option. Worked perfect for me running a Windows 8.1 machine:

Link: http://forum.xda-developers.com/showthread.php?t=2507905

For those not so technically inclined and want root, these are your options (I have not used any of these except the last one by WugFresh on my Nexus 4):

http://forum.xda-developers.com/showthread.php?t=2508817
or
http://forum.xda-developers.com/showthread.php?t=2509428
or
WugFresh Toolkit (arguably the best for all things Nexus) is about to put out the latest version to include the Nexus 5 (which will be version 1.7.4) the link to this toolkit is: http://www.wugfresh.com/

FOR MAC USERS:
Again, this will erase your phone's data and revert it to the way it came out of the box (except unlocked and rooted). Note: while I don't think it's needed for these scripts, you might need to download and setup the Android SDK first. As it's already installed on my Mac, I can't be sure if it is or is not needed.

  • Download the Nexus 5 zip from here (or go via the link I posted above).
  • Unzip it and go to that folder in Terminal. Easiest way is to open Terminal, type "cd", and drag the unzipped folder onto Terminal to have the path show up, then hit return. The command will look something like
    Code:
    cd /Users/yourname/Downloads/CF-Auto-Root-hammerhead-hammerhead-nexus5
  • Type
    Code:
    chmod +x *.sh
    and hit return. This just ensures the script is executable.
  • Put the N5 into fastboot: power it off, then power it on by holding the Volume Up, Volume Down, and Power buttons simultaneously. I hold them until I see the Android guy, but maybe you don't need to do so for that long. In any event, you'll soon see the fastboot screen. No need to do anything except plug the phone into your Mac via USB at this point.
  • Run the script with
    Code:
    ./root-mac.sh
    and enter your password.
  • Wait while it does its thang. You'll eventually see the phone reboot, but it takes a few minutes.
  • Profit. Oh, and re-setup your phone.


** Remember, this will void your warranty and should only be done after reading lots of material on the XDA forums. That said, it is really, really difficult to brick your phone, unless you try to install a modem or ROM not intended for your device. Otherwise, it is extremely safe.
 
Last edited:

AAPLinc

macrumors 65816
Jul 27, 2012
1,292
2
Hollywood, CA
WugFresh toolkit worked for my Nexus 7 perfectly. Literally the easiest most straight forward thing I've ever used.
 
Last edited:

Lloydbm41

Suspended
Original poster
Oct 17, 2013
4,019
1,455
Central California
Thanks! This will surely come in handy when I (hopefully) get mine tomorrow!

I highly recommend the first option, as long as you have a windows machine. I'm not a fan of using Toolkits to unlock the bootloader and root devices. Using ADB is always a better option IMO.
 

appledes7

macrumors 6502a
Jul 12, 2011
756
0
I highly recommend the first option, as long as you have a windows machine. I'm not a fan of using Toolkits to unlock the bootloader and root devices. Using ADB is always a better option IMO.

I did the manual root method for my Nexus 4 and it was fairly simple. And this looks to be nearly the exact same process so I'll likely do that. And ya I've got a Windows machine to do this on.
 

Lloydbm41

Suspended
Original poster
Oct 17, 2013
4,019
1,455
Central California
I did the manual root method for my Nexus 4 and it was fairly simple. And this looks to be nearly the exact same process so I'll likely do that. And ya I've got a Windows machine to do this on.

You're good to go then. Just make sure you reboot the phone after you unlock the bootloader - "fastboot reboot"
 

Stooby Mcdoobie

macrumors 6502a
Jun 26, 2012
828
40
I highly recommend the first option, as long as you have a windows machine. I'm not a fan of using Toolkits to unlock the bootloader and root devices. Using ADB is always a better option IMO.

Curious, why did you qualify your statement with the part I bolded? Working with ADB in OS X/Linux is the same as Windows -- only difference comes from the way you add the sdk tools to the PATH (which you don't even need to do if you keep them in the directory you're working from).
 

Lloydbm41

Suspended
Original poster
Oct 17, 2013
4,019
1,455
Central California
Curious, why did you qualify your statement with the part I bolded? Working with ADB in OS X/Linux is the same as Windows -- only difference comes from the way you add the sdk tools to the PATH (which you don't even need to do if you keep them in the directory you're working from).

Because I have no idea if it works the same on OSX. I can only verify for windows.
 

Lloydbm41

Suspended
Original poster
Oct 17, 2013
4,019
1,455
Central California
Fair enough. Didn't mean to come off snobby or anything, just thought you might have had some other agenda.

No agenda what so ever. I do all of my Android stuff from my Windows desktop and all Mac and iOS stuff from my iMac. I just find it easier that way and don't mix the two.

And I didn't take your comments as snobby. I would rather clarify and ensure people have correct info, so if I was wrong about something, it is fixed. :)
 

Oletros

macrumors 603
Jul 27, 2009
6,002
60
Premià de Mar
I think that doing adb work on OS X or Linux is easier than doing it on Windows.

I prefer to do all the work on my Macbook Air
 

Lloydbm41

Suspended
Original poster
Oct 17, 2013
4,019
1,455
Central California
I think that doing adb work on OS X or Linux is easier than doing it on Windows.

I prefer to do all the work on my Macbook Air

Never used a Mac for anything other than jailbreaking iPhones. Have always used Windows to root Android. Just easier for me, although I am sure I could figure it out on OSX. It's good to know that if I ever need to, I can use my iMac. Cheers.
 

jsw

Moderator emeritus
Mar 16, 2004
22,909
41
Andover, MA
I intend to use Chainfire's Nexus 5 script here (main page - look for the Nexus 5 link near the bottom), probably today.

Remember, for those new to this, that it will wipe your phone because unlocking it does so, so be prepared.

Assuming the script works - and his stuff is very good - I'll (a) donate a few bucks for his effort, and (b) report back (again, maybe today, maybe within a few days).
 

nfl46

macrumors 604
Oct 5, 2008
7,344
5,742
I'm all rooted and unlocked now! I couldn't stand having ads in apps, that was one of the first things I took care of.
 

jsw

Moderator emeritus
Mar 16, 2004
22,909
41
Andover, MA
Ok, done. Here's the process I followed on my Mac. Again, this will erase your phone's data and revert it to the way it came out of the box (except unlocked and rooted). Note: while I don't think it's needed for these scripts, you might need to download and setup the Android SDK first. As it's already installed on my Mac, I can't be sure if it is or is not needed.

  • Download the Nexus 5 zip from here (or go via the link I posted above).
  • Unzip it and go to that folder in Terminal. Easiest way is to open Terminal, type "cd", and drag the unzipped folder onto Terminal to have the path show up, then hit return. The command will look something like
    Code:
    cd /Users/yourname/Downloads/CF-Auto-Root-hammerhead-hammerhead-nexus5
  • Type
    Code:
    chmod +x *.sh
    and hit return. This just ensures the script is executable.
  • Put the N5 into fastboot: power it off, then power it on by holding the Volume Up, Volume Down, and Power buttons simultaneously. I hold them until I see the Android guy, but maybe you don't need to do so for that long. In any event, you'll soon see the fastboot screen. No need to do anything except plug the phone into your Mac via USB at this point.
  • Run the script with
    Code:
    ./root-mac.sh
    and enter your password.
  • Wait while it does its thang. You'll eventually see the phone reboot, but it takes a few minutes.
  • Profit. Oh, and re-setup your phone.
 
Last edited:

jsw

Moderator emeritus
Mar 16, 2004
22,909
41
Andover, MA
Thank you jsw for your Mac instructions.
Any time! I rooted my N4's on my work Windows machine the first few times because I was unaware of how to do so on a Mac, but, at least lately, it's become a pretty easy thing to do.
 

Stooby Mcdoobie

macrumors 6502a
Jun 26, 2012
828
40
Note: while I don't think it's needed for these scripts, you might need to download and setup the Android SDK first. As it's already installed on my Mac,

Chainfire usually includes the adb and fastboot executables in the zip with his scripts, but the SDK is still great to have if you're interested in tinkering.

On a side note, does this script flash a custom recovery or does it just root the device? I've already rooted and flashed TWRP but may use this in the future.
 

jsw

Moderator emeritus
Mar 16, 2004
22,909
41
Andover, MA
On a side note, does this script flash a custom recovery or does it just root the device? I've already rooted and flashed TWRP but may use this in the future.
It just roots it, which is actually fine by me - I prefer this route until I'm sure the device is fully functional and doesn't need to be returned. I do generally flash TWRP, but I'm actually happy I didn't in this case.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.