[HOW-TO] The Nexus 5 All-In-One Beginner's Guide

xBeerdroiDx

Senior Member
Nov 10, 2012
2,356
1,744
0
Fort Worth


Welcome to the Nexus 5 All-In-One Guide. If you are a new user that is looking for the opportunity to take advantage of your device and do it right the first time, this guide is here to point the way. This thread exists to keep all the necessary methods and material in one common place just for you. As always: Do your homework first.

If followed correctly, this guide can be a useful tool. These steps are listed in the order in which they should be completed. The intent is to seamlessly unlock, root, backup and/or flash, leaving as little room for error as possible. This process will erase and/or reset everything on your device. All steps are assuming you have backed up your contacts, texts, pictures, videos, etc. I do not take credit for any of this material or information. This is all the work of great people that I have simply brought together. Cheers!

**WARNING!** All information and attached links is for the Nexus 5 ONLY! No one here is responsible for anything that may happen to your device. Proceed at your own risk.​

>>>>>>Before you begin, make sure your N5 has USB Debugging Mode switched on<<<<<<​

Step 1: Read. Read. Succeed.


Your journey down the Android path of rooting and modifying can be smooth, fun and educational, based on your attempt at learning everything you can before you begin. This is entirely up to you, the user. There is some excellent material here on XDA that I highly recommend reading over as part of step 1. Don't skip this information!

A message from the moderators - All users please read
Yep, read it. It's for your own good. Included with some very useful general forum information, it also contains the forum rules which should also be read and understood.

[FAQ][REF]★All you need to know about Android | Read this before you post/root★
This awesome thread by @abaaaabbbb63 is a *noob friendly* collection of information every user that wants to root their phone should know. Many people blindly follow guides without even knowing what "Rooting" means. Hopefully, this will help new users (and old ones, why not?) understand what is happening with their phone, and what they will put up with. Get on over there and read it.


Step 2: Unlocking, Rooting & Custom Recoveries


For those of you who want to get most out of your Nexus 5, you will certainly want to root it. Rooting your device provides you as the user many, many benefits. That's why you're here right now reading this. You want it all. Please note that there is always the chance of error during these processes. Bad or faulty USB cables, USB ports, bad/old device drivers on the computer, an active virus scanner. These are a few of the issues that can cause your device to fail to connect or prohibit a successful root/flash. Use good and original OEM USB cables. Uninstall any drivers you may have installed for Samsung Mobile Devices and disable your virus scanner.

[Nexus 5] CF-Auto-Root
The thread linked here is the work of our beloved @Chainfire. This guide will direct you through the root process. CF-Root is the root for "rooting beginners" and those who want to keep as close to stock as possible. CF-Root is meant to be used in combination with stock firmware and be the quickest and easiest way for your first root.

**If you want to have root access only you can stop here.**​


[GUIDE] Nexus 5 - How to Unlock Bootloader, Install Custom Recovery and Root
This one-stop thread by @Chromium_ will get you setup with the necessary tools like the Android SDK and Nexus 5 drivers while also giving you instructions for unlocking your Nexus 5 bootloader, installing a custom recovery and gaining root access. Don't be afraid of ADB commands. You'll need to begin learning them at some point.

A word on custom recoveries: A recovery image is the system level software for your Android that lets you perform several maintenance and recovery tasks. The stock recovery image is quite limited in what it allows you to do and therefore, flashing a custom recovery image is required to gain full control of your device’s administration. A custom recovery image allows you to perform the following tasks:

- Wipe your phone’s data (Factory reset) and cache
- Make, restore and manage backups of your phone’s operating system and software
- Mount, unmount and format your phone’s internal as well as external storage partitions
- Install a custom ROM or application from a zip file to your phone
- Wipe Dalvik cache and battery statistics
- Make logs for error reporting and debugging


Additionally, you can download the Goo Manager app to install TWRP updates or the Rom Manager app to update your CWM. At this moment, there is no official CWM.
*NOTE: I do not recommend Rom Manager or Goo Manager as a tool to do anything but just install and/or update your recovery Do not flash ROMs from these applications.


STEP 3: Making A Backup
Making a Nandroid will allow you to try out new ROMs while still keeping a safe backup in the event you experience issues during or after a custom OS or kernel installation. Be sure your device is fully charged before proceeding to the backup and flashing procedures.

If you are not already booted into recovery then do so now.

1. Boot into fastboot mode (Volume Down + Power)
2. Browse with the volume keys to Recovery Mode and press the power button
3. You are now in custom recovery.
4. In CWM go to Backup and Restore and select Backup. In TWRP select Backup. Name and select the options you want. Swipe to backup.
5. In TWRP, after the nandroid is finished, select "Name" and create a name for your EFS backup. Deselect everything except for EFS then swipe to backup.
6. After backup is finished, select reboot system now or stay in recovery to continue with this guide.

Optional Step 7: Check out the Modem/EFS thread listed below in Post #2 by @autoprime. Another fast and easy way to back up that EFS.

*NOTE: Be sure to save a copy of these backups to your computer and/or micro sd card. Having a recent backup saved to your computer and micro SD card can be useful if something happens to your phones internal memory.


Step 4A: Wiping Your Device


When flashing any ROM, it is always important to follow the proper wipe procedures in order for everything to function properly. There are various levels of wiping based on what sort of transition you may be making. In this guide, I will list the procedures for a full wipe, presuming that you are coming from the stock firmware and changing your OS completely. This is all assuming you have made the appropriate backups. ALWAYS perform the appropriate wipe before flashing a new ROM or update!

1. If you are not already in recovery, boot in now.

In CWM:
2. Select Wipe data/factory reset
3. Select Wipe Cache
4. Select Advanced and Wipe Dalvik Cache
5. Select Mounts and Storage and format /system
6. If you are transitioning from Android versions (4.4 to 4.x, etc) you must also format /data. You will lose all personal data so back it up first.

In TWRP:
2. Select Wipe
3. Select Factory Reset and wipe
4. Select System and wipe
5. If you are transitioning from Android versions (4.4 to 4.x, etc) you must also select Data and wipe. You will lose all personal data so back it up first.


Step 4B: Flashing a Custom ROM


Once you have selected a ROM for your Nexus 5:

1. Download the ROM. Be sure to download the appropriate gapps as well.
2. From your PC, place the ROM/gapps on your internal storage. Remember where they are.
3. Boot into custom recovery.
4. Perform the wipe listed above if you have not already.
5. From the main recovery screen:
>>CWM - Choose the "install .zip from SD Card" and confirm.
>>TWRP - Choose Install and locate the desired ROM on your internal storage.
6. Repeat step 5 and select the gapps package.
7. Reboot system. It will take several minutes to load so be patient and don't worry. Once the phone is booted, let it sit for 5 minutes, reboot and enjoy!
 
Last edited:

xBeerdroiDx

Senior Member
Nov 10, 2012
2,356
1,744
0
Fort Worth
>>>>>Fixes and Additional Resources<<<<<

Post #2 will, as it claims, contains further useful information and links that will hopefully restore, repair or update your device and continue to make your device-modding travels safe, smooth and fun. Please do not disregard the initial purpose of this thread and all the useful steps and information listed above. Cheers!​



[MODEM] [EFS] Nexus 5 Flashable Modems and EFS Backup
Don't skip this. Backing up your EFS is highly recommended. It's incredibly fast and simple and you could really be helping yourself out in the event of some unforeseen IMEI problem down the road. @autoprime has a sweet little zip waiting for you in this guide. Go check it out.

[TUTORIAL] How to flash a factory image | Return to stock | Unroot your Nexus 5
In case you somehow missed it in the General section or just found your way here via a search, here you go. A nicely told story by @abaaaabbbb63 on how to undo all that cool stuff you've been up to since you bought the device.
 
Last edited:

.jond

Senior Member
Aug 24, 2010
153
33
0
Just to make sure, with the Nexus line of phones, you can gain root anytime you want right?
It's not the case that Google would push out a security update that would stop these from working?
 
  • Like
Reactions: JustSayMyName

xBeerdroiDx

Senior Member
Nov 10, 2012
2,356
1,744
0
Fort Worth
Just to make sure, with the Nexus line of phones, you can gain root anytime you want right?
It's not the case that Google would push out a security update that would stop these from working?
you sound as though you are coming from experiences on an htc or samsung device, controlled by a major carrier.

you'll be all set. :good:
 

Nexus5-32GB

Senior Member
Nov 2, 2013
440
137
0
Backup

Hey guys, am really android newbie with my first Android phone ever, I`ve red the guides and tutorial, few things want to clarify:

1/ I want to make FULL backup of device - is there a way to make CLONE of all content of the phone before I start using it and customising, rooting etc? I guess the right word for this is Nandroid, right? From reading to do a Nandroid, I have to install custom recovery into phone which doesnt make sense as I would like to backup it without any modification made. Any advice?

2/ What about some easy tool to run on computer, connect phone via USB cable, turn to recovery mode and perform full backup this way???

Since I will have full backup I can start messing with the rest, thx for answer
 

jd1639

Recognized Contributor
Sep 21, 2012
16,836
5,398
0
Minnesota
Hey guys, am really android newbie with my first Android phone ever, I`ve red the guides and tutorial, few things want to clarify:

1/ I want to make FULL backup of device - is there a way to make CLONE of all content of the phone before I start using it and customising, rooting etc? I guess the right word for this is Nandroid, right? From reading to do a Nandroid, I have to install custom recovery into phone which doesnt make sense as I would like to backup it without any modification made. Any advice?

2/ What about some easy tool to run on computer, connect phone via USB cable, turn to recovery mode and perform full backup this way???

Since I will have full backup I can start messing with the rest, thx for answer
Making a nandroid when you first get your phone is a perfect way to start. You do need to do it in the custom recovery. It'll back up your system and data. If you ever want to return the phone to a like new, right out of the box, you can flash the factory image to do that. Look in the development forum for the factory image.

Good luck on your experience and keep reading and learning. It's the best thing you can do.
 

jj14

Senior Member
Mar 5, 2008
1,110
316
83
Making a nandroid when you first get your phone is a perfect way to start. You do need to do it in the custom recovery. It'll back up your system and data. If you ever want to return the phone to a like new, right out of the box, you can flash the factory image to do that. Look in the development forum for the factory image.

Good luck on your experience and keep reading and learning. It's the best thing you can do.
Just out of curiosity, what purpose does a nandroid image of a new/unused/uncustomized phone serve? In case of issues, isn't flashing the factory image going to do the same?
 

jd1639

Recognized Contributor
Sep 21, 2012
16,836
5,398
0
Minnesota
Just out of curiosity, what purpose does a nandroid image of a new/unused/uncustomized phone serve? In case of issues, isn't flashing the factory image going to do the same?
Restoring the nandroid is a little easier then flashing the image. I just like to have a nandroid as I start playing with apps, some of which I won't keep. That way I can easily go back to a clean slate. Also if you ever have a bad flash flashing custom roms you have something on your phone to fall back to.
 

.jond

Senior Member
Aug 24, 2010
153
33
0
you sound as though you are coming from experiences on an htc or samsung device, controlled by a major carrier.
you'll be all set. :good:

Thanks!
Yeah, coming from an HTC EVO LTE on Sprint.
With the EVO, if you didn't grab s-off when there happened to be an exploit, you could lose the opportunity for months.
HTC offered a root tool, but it didn't S-Off, and would also watermark the boot screen showing that you rooted it(thus voiding any warranty).
Glad to be on Nexus now....
 

jj14

Senior Member
Mar 5, 2008
1,110
316
83
Restoring the nandroid is a little easier then flashing the image. I just like to have a nandroid as I start playing with apps, some of which I won't keep. That way I can easily go back to a clean slate. Also if you ever have a bad flash flashing custom roms you have something on your phone to fall back to.
ok. I've always created a nandroid backup as well, but only for non-Nexus devices (kinda harder to get the factory image at times), and/or after making changes to get the phone customized just right (screens/apps/settings etc) - hence the question :)

Thanks