[Update: Official Recovery] Here Is How To Root The Nexus 4
- Nexus 4
We know that Nexus devices are simple to unlock and root, but the operation is still a little different every time. Thus, XDA member HQRaja published an opportune guide on just how to root the Nexus 4.
There’s two techniques used in rooting the unit – using either ADB by having an insecure boot image, or directly through ClockworkMod Recovery. While each method are published within the source thread at XDA, the CWM technique is unquestionably simpler and can most likely feel more familiar to many. Ergo, we are going to pay attention to doing the work this way.
To begin with, this involves working fastboot and adb. Without having that setup, a fast Search ought to provide a good how-to. Past that, you will need CWM, the right motorists, and also the flashable SuperSU package, all that exist at XDA. After installing all the needed files, go on and plug the telephone to your computer, transfer the SuperSU file to the storage partition, make certain you’ve “USB debugging” enabled in Developer Options (if you do not see dev options, get into About phone and tap the build number seven occasions) and reboot in to the bootloader.
Update: Koush just released the state ClockworkMod Recovery for that N4, that you simply should most likely use rather from the port. You’ll find that download here. (Make certain to change the instructions lower below appropriately if you opt to make use of the official CWM Recovery.
adb reboot bootloader
Once within the bootloader, you will need to go on and unlock the telephone.
Unlocking the bootloader will factory reset the unit.
fastboot oem unlock
The unit should then reboot – whether it adopts the standard setup, proceed a reboot into the bootloader using adb reboot bootloader. After that, you are likely to launch CWM – observe that this does not install CWM, it just boots it so that you can flash SU and busybox.
You have to launch the command in the directory in which the recovery file is.
fastboot boot cwm-recovery-mako.img
Next, make use of the volume rocker to visit the “recovery” option, striking the ability button. In recovery, you may make a backup when you purchase, then flash the SuperSU/busybox file that you simply downloaded earlier.
Boom. You are done. Reboot and revel in.
Should you hit any snags or would rather make use of the other method, read this thread on XDA.