Google’s new flagship, the Nexus 5 offers the most straightforward rooting experience of any modern Android device. Google doesn’t really do anything to stop you from rooting it, but you’ll still have to jump through some hoops. Here’s how to do it.
The very easy way to root the Nexus 5
If you just want to get root access and don’t much care about how the process works, there is a (nearly) one-click solution from noted developer Chainfire. It’s called CF-Auto-Root and you can get it directly from Chainfire’s site for free. This is a zipped folder that includes all the files needed to unlock and root the Nexus 5.To use it, simply put the files on your computer and connect the Nexus 5 via a USB cable. Boot the phone into the bootloader by turning it off, then holding volume up+down+power. Click on the script file in the CF-Auto-Root directory that matches your desktop OS, and watch the magic happen.
Getting your hands dirty
The best way to root your Nexus 5 is to do it step-by-step yourself — it isn’t even very hard with this phone. You will be able to check along the way to make sure things are working correctly, and you’ll have a better handle on how to fix problems that might crop up later.The first thing you need to do is download the official Android SDK from Google. Run the SDK manager and install the suggested components, which will include the Android USB drivers. This should allow your computer to see the device when it is plugged in via USB. On some systems, you may have to change the phone’s USB access mode from MTP to PTP for it to be recognized.
Open a command prompt (or terminal on Mac) from the SDK’s platform-tools folder. It should contain a few files, two of which are ADB and fastboot. Plug in the Nexus 5 and input the following to make sure the device is found:
adb devices (add ./ to the beginning of all commands on a Mac)
The first thing you have to do is unlock the bootloader, which will factory reset the device. Here are the steps to make that happen:
adb reboot bootloader
fastboot oem unlock
fastboot flash recovery twrp-file-name.img
This should only take a few seconds, then you can use the volume toggles on your device to select recovery and activate it with the power button. TWRP will load, which has a touch interface. Tap on Reboot, then System. TWRP will ask if you want to install the root package — go ahead and say yes.
Image : Geek.com
Source : Geek.com
No comments