Have as have your Nexus 4, You can return to the original factory condition by following these steps. Here you can reinstall the original rom google from scratch if you have already rooted with unlocked bootloader.
I suppose that if you've come this far, it is that goes wrong or you mobile or you can not upgrade to the latest version of Android for having fondled system files with other applications (in my case, I can not upgrade to JWR66Y for having fondled too many things better not have touched)
2 – Install Nexus toolkit (following…following..) and then leave a small window 2 options, in the first selected Nexus 4 (LGE960) and the other version you have, we give the ok. Now started getting off the latest updates of files to process and accept all. We left it there..
3 – Prepare the phone to display the development mode. Let's settings-phone information- build number and press with your finger a 7 times until you've got say how developer. Go back and see development options. Now we activate the USB debug mode and accept the notice.
4 – install windows driver. Open Nexus toolkit and we full driver installation. We go to Step 2 and install Windows xp-vista-7 version PDANet drivers, la raw drivers para windows 8. When we click on PDANet, simply have to follow the small tutorial that appears on the left and follow their 9 steps as you appear in the installation.
5 – Now for the first time, plug the smartphone to the USB debug mode activated, (already be done because if you have stock options until the end…) and you should detect and install the device in windows..
Check this ok like this image from control-panel device manager.
Usb..esperamos deactivate debug mode a few seconds and you will return to this message activar..ahora “The fingerprint of your key RSA is: ….Always allow and accept”. Then we accept the request and mark the box Always allow.
– It is normal that when you conectéis mobile to pc install a driver, and it is normal that when we connect in debug mode reinstall the driver on windows.
– This process or any other, Erase everything you have on your mobile !!
– This manual will serve if : We rooteado the nexus, Y, Thus, unlocked bootloader (since it is impossible to root without unlocking before)
Leave your NEXUS 4 OF FABRIC
1 – You must have done all common options and you have plugged the pc with debug mode mobile and you detect windows
2 – Flash pincharemos Stock-Unroot with Device is on regular tab. If in your case you have loaded the system restarts and only uncharged android or this semi-bricked, we catch soft-bricked-bootloop. We give below and leave this picture.
2A – If we have already lowered the original rom from google web on your hard disk, select Other / browse, we give the OK, you look for it on your pc and will seleccionas.Te few options to verify that it is correct and you're giving all that if until the process begins.
2B – If you have nothing, the program down for you, we just say that we want to install the drop-down and select ok. It's almost 400 Mb, so it will not be immediate.
2C – If this is not the first time you do this process, already have lowered the image factory… you can avoid the above steps by selecting I did this Already…it means you've done it before and want to repeat the process you've done before.
3 – After the flashing process of the original rom, we have the last option, it depends on you.
Click on OEM lock to lock the bootloader. This will be done only if we have to send the SAT google repair or, because if you want to make root again this will preclude you as the bootloader must be unlocked.
4 – If we have chosen to not step 3, we can make the root from the ROOT option and check or uncheck the option custom recovery, I installed by default TWRP (you can change by CWM from the options menu- Custom recovery-utilize Clockworkmod, and is changed before clicking ROOT)
Make install SuperSU root and busybox, if after the process appears not SuperSU, Try to install it from google play.