Prerequisites
- Google Nexus 5 with Android 4.4 KitKat running (no modifications)
- Android USB driver for LG Nexus 5 installed on your PC
- USB Debugging enabled on the device
- Completely backup your Android device.
- Windows-based computer with Android ADB & Fastboot configured.
- CF-Auto-Root package for Nexus 5 (download from here)
Step 1: From the link above, grab the CF Auto Root package and extract it to a convenient location on your PC.
Step 2: Power off your Nexus 5, disconnect from USB cable and power it on back by pressing and holding Volume Up and Volume Down keys at the same time. This will put your device in Fastboot mode.
Step 3: Connect the Nexus 5 in fastboot mode to the PC using USB cable, and navigate to the folder where you extracted CF Auto Root files.
Step 4: Simply double-click and run the file named root-windows.bat, and let the script do its work. Follow any on-screen instructions as prompted.
Once the script finishes running, your Nexus 5 will have both an unlocked bootloader as well as root access. Check for the availability of SuperSU APK in your app drawer. Enjoy!