You just need to have the basic things before start this and don't ever forget to take a complete backup of your current user data.
Before going into details make sure that you have the following things in hand to start with the rooting method.
Required things:
- Driver for Your Nexus device
- Fastboot and adb binaries
- SuperSU Flashable package
- Recovery image for your corresponding device from the following links:
CWM custom recovery
TWPR custom recovery
- USB cable
- Enough time with a smart and cool brain
NOTE:
Please download the recovery image meant for your device only.
The ROOTing process will erase all of your data, so it is strongly recommended that you should take a full backup of your current data.
Follow the below link for how to backup all the data on your android device:
Step by step guide to take full backup of your phone data
[Rooting guide for all Nexus devices]
STEP by STEP ROOTing guide for your Nexus device:
The complete process will be split into three things as following:- Unlocking the Bootloader
- Installing a custom recovery
- Installing the ROOT package using the custom recovery
Unlocking the Bootloader:
STEP 1:---------
Turn the phone off.
Then boot it into the bootloader/fastboot mode by holding volume down + power.
STEP 2:
---------
Open a command console and go to the directory where you have extracted adb and fastboot
Type the following command in the console:
$ fastboot devices
NOTE:
This command will list the connected devices.
If your phones serial number shows up you are good to go and may continue.
If the phone is NOT listed this indicates that your drivers are not installed correctly.
In order for you to continue you must configure your drivers properly so that your phone is listed under fastboot devices.
STEP 3:
---------
If the phone has been recognized by the command above, proceed to unlocking the bootloader with the following command::
$ fastboot oem unlock
WARNING:
Remember that this step will wipe EVERYTHING off the phone.
If you have not taken a backup of your phone data then do it here:
Step by step guide to take full backup of your phone data
Flashing a Custom Recovery:
STEP 1:---------
Find out the appropriate custom recovery for your device.
Copy the custom recovery into the directory where you have kept the adb and fastboot files.
STEP 2:
---------
Now type the following command to install the custom recovery image onto your Nexus device:
$ fastboot flash recovery <recovery_image_file.name>Place the recovery image name in the <recovery_image_file.name> field.
$ fastboot reboot
Rooting guide:
NOTE:Rooting guide will only work only after the custom recovery installation.
If you will SKIP the custom recovery installation process and perform only these steps then rooting will not be done.
STEP 1:
---------
Copy the SuperSu zip file to your SD card(By using a USB cable or via adb push command).
STEP 2:
---------
After copying the SuperSu zip file to your SD card you have to go to the recovery and there you have to install this zip file.
To do so use the following command:
$ adb reboot recovery
STEP 3:
---------
If you are in the CWM custom recovery then do the following:
Select the Install Zip from SDcard option.
Select the SuperSU zip file where you have kept in the SD card.
If you have installed a TWRP custom recovery then do the following:
Touch on the Install software button
And then Select a zip file to install.
Select the SuperSu binary zip file where you have kept in the SD card.
After successfully completing all the above mentioned steps your device will be rooted.
Have fun and stay tuned to get more updates.