
For those of you who want to root your Nexus 4 Android smartphone, here’s a step-by-step tutorial showing you how to root a Nexus 4 on Windows, Linux/Ubuntu, or Mac OSX computer.
This works for all Android versions including Android 4.2.1 4.2.2, 4.3, 4.4, 4.4.1, 4.4.2, 4.4.3 ,4.4.4 KitKat, and 5.0 Lollipop. (For rooting Android 4.3, 4.4, 4.4.2, 4.4.3, 4.4.4, 5.0 the steps are exactly same except for Step 15, you need to download the latest version of SuperSU from ChainFire and use that instead of the one provided.)
This rooting guide will allow you to also backup and res