Okay, so couple things first, ChainsDD is fantastic, he maintains SuperUser for us! Now, as far as I know, these binaries have NOT been tested on a Nexus 4 yet, so it is possible though unlikely that they may not work. If so, no biggie, you just won't have root.
- Extract su and Superuser.apk and copy them to your adb platform-tools folder.
- Boot the unsecured boot image from the OP.
- Make sure debugging mode is active on the device.
- Open a command prompt in the adb platform-tools folder.
- Mount /system as rw.
Code:
adb shell mount -o,rw /system
- Push su and Superuser.apk to /system.
Code:
adb push su /system/bin/
adb push Superuser.apk /system/app/
- Change permissions on su and Superuser.apk.
Code:
adb shell chmod 0655 /system/bin/su
adb shell chmod 0655 /system/app/Superuser.apk
- Reboot.