[Nexus 4 Q&A, Help & Troubleshooting] vlatkonexus4:
HELLO EVERYONE I KNOW THERE IS ALREADY THREAD ABOUT THIS

BUT I JUST WANT TO HELP EVERYONE,AND THIS IS MY CORRECT FORMATTING AND RESTORING TO FACTORY 4.3 OUR NEXUS 4 DEVICE,STEP BY STEP(THIS IS FOR WINDOWS ONLY)

PLEASE USE USB DEVIEW(http://www.nirsoft.net/utils/usb_devices_view.html,AND UNNISTAL ALL PREVIOUSLY INSTALLED DRIVERS FOR NEXUS 4,RUN THIS APP LIKE ADMINISTRATOR AND PLEASE UNNINSTAL ALL DRIVERS WITH VENDOR ID 18d1,BEFORE YOU PROCCED WITH STEPS GIVEN BELOW)

1.Make sure you have installed the correct drivers for your nexus 4 and your pc/laptop etc...(here is my example how i managed to work,and below i give drivers link and description)

2.Make sure you are using original usb cable for your nexus 4

3.Download sdk depending on your pc configuration and install it on your pc

4.Run Android Sdk Manager and download only:Android Sdk Platform Tools,Android Sdk Build Tools,Android Sdk Tools and Google Usb Drivers

5.Download Universal Naked Driver from here http://xdaforums.com/showthread.php?t=1998650 (thanks to 1wayjonny)

6.After you install those tools with Android Sdk Manager,go to sdk folder,open it and go to extras folder,then google folder,than usb_driver folder and delete all content inside usb folder

7.If you have already downloaded Universal Naked Driver exctract it and copy the drivers to the usb folder in your sdk folder(from 6 step)

8.Now on your Nexus 4 enable developer options(open settings>about phone>tap 7 times on build number,now back to setting and you will see

developer options there(skip this if you already enable developers option)

9.In developer options check usb debbuging,stay awake and alow mock locations

10.Now you can connect your Nexus 4 with your pc,and if your don't install your drivers,go to computer>properties>device manager>find nexus 4

drivers that don't install correctly>then right click>update driver>browse and navigate to >sdk >extras>google>usb_drivers and click ok,and your drivers should be installed correctly

11.Now to install fastboot drivers,power off your phone and hold power and volume down button on your phone to get to bootloader mode(first disconnect your phone from pc)

12.Once you are in fastboot mode connect your phone to pc and you will se something like>Google Bootloader Interface installed

13,Once that you have installed all drivers with succes,we can go forward(phone disconnected for now)

14.Download factory image for Nexus 4 occam JWR66Y from here: https://developers.google.com/android/nexus/images#occam

15.Extract this with 7_zip program,once extracted you have another zip folder,and again extract that folder

16.The last folder that you have extracted have:bootloader and radio image,and occam jwr66y zip folder

17.Copy everything from last extraction from 16 step inside platform tools folder(sdk>platform tools)

18.Now you have all that you need to start restoring original nexus 4 image from google and revert back to android 4.3 original stock rom

19.Now go to platform tools,there you have adb.exe,fastboot.exe and image files and image-occam-jwr66y.zip inside

20.Click shift and right button of your mouse,and choose open command prompt window here

21.This will automatically open cmd for you,now connect your phone(must be in bootloader mode)to your pc

22,Before you do this please copy your content from internal storage somewere in your pc,because this will wipe everything from your phone

23.Type in cmd:

fastboot devices(you must see your device under name FASTBOOT)

fastboot erase boot

fastboot erase recovery

fastboot format system

fastboot format cache

fastboot format userdata

fastboot reboot-bootloader

fastboot flash bootloader bootloader-mako-makoz20i.img

fastboot reboot-bootloader

fastboot flash radio radio-mako-m9615a-cefwmazm-2.0.1700.84.img

fastboot reboot-bootloader

fastboot -w update image-occam-jwr66y.zip

24.This will take some minutes to finish,after writing everything in your phone your phone will reboot,and there you go again stock,unrooted and clean restore of your previously rooted phone

I HOPE I HAVE HELPED A LOT OF PEOPLE WITH THIS TUTORIAL,IT IS NOT MY PERSONAL WORK,I HAVE READ A LOT AND TAKE OTHERS OPINIONS AND CREATED THIS BECAUSE THIS WORKED BEST FOR MY RESTORING

Finnaly if you want to lock the bootloader again,type in cmd fastboot oem lock and that is that

Thanks to all sites for drivers and developers for teaching as how to make this and all other stufs

Big thanks to XDA Developers for everything,without this our phones are nothing