[HOW-TO] - The Easiest Way to Root Nexus 4 Running Android 4.3 Jelly Bean Using CF-Auto-Root
1) Install USB Driver for Nexus 4 to transfer files between the Android device and the computer.
2) Enable USB Debugging Mode on the phone to connect the Android device with the computer and use the Android SDK with it. [Press Menu>> Settings>>Applications. From there navigate and click on Development option and then check the USB Debugging Mode.]
3) As the tutorial might wipe out all data of the phone, create a backup. If the device is having any custom recoveries such as CWM/TWRP already installed then back up data using the recovery.
4) The Nexus 4 should have above 80% battery charge.
5) The phone should be factory unlocked and not locked to a particular carrier.
6) The CF-Auto-Root file is compatible only with Nexus 4. As applying this to any incorrect variant is likely to brick the device, verify the model number of the Nexus device by navigating to Settings>> About phone>> Model number.
7) Rooting the device will void it of its manufacturer's warranty. Users can reclaim the warranty back by unrooting it later.
Note: If the device has not been unlocked before, then this procedure is likely to wipe out all data.
Steps to root Nexus 4 on Android 4.3 Jelly Bean
Step-1: Download and install Android SDK from Android Developer site. The package includes the necessary drivers for connecting the Nexus phone to the computer which is mandatory for rooting process
Step-2: Download CF-Auto-Root file for the Nexus 4 to the computer
Step-3: Extract the root package using winrar/7zip/winzip or any other extracting tool
Step-4: Switch off the Nexus 4 and wait for some time for the vibration to confirm complete power off
Step-5: Boot the phone into Fastboot mode by pressing and holding Volume Up, Volume Down and Power buttons together
Step-6: Plug in the USB cable to the phone to connect it with the computer. Wait until Windows finishes installing the drivers
Step-7: Navigate to the folder which contains the extracted CF-Auto-Root files. Run the following commands
Window users: Run root-windows.bat
Linux users: chmod +x root-linux.sh
Mac OS X users: chomd +x root-mac.sh
Step-8: Follow on-screen instructions. When the rooting process is completed, the phone will reboot automatically into normal mode. Now unplug the USB cable from the phone to disconnect it from the computer
Nexus 4 running on Android 4.3 Jelly Bean should now be rooted successfully. Open the app drawer of the phone and look for an app called SuperSU. To verify the root status further, install the Root Checker app from Google Play Store.