[Guide] Flash the Factory Images and Return to Stock LG Nexus 5X (Without Wiping Your Personal Data).

[Guide] Flash the Factory Images and Return to Stock LG Nexus 5X (Without Wiping Your Personal Data).

Flash the Factory Images LG Nexus 5X. This guide will explain [Guide] Flash the Factory Images and Return to Stock LG Nexus 5X (Without Wiping Your Personal Data), by following this guide you can return the phone to be like it was when it came out of the box. This is a second method you can use to flash LG Nexus 5X device, on this method your personal data is safe because the process is Leaving Internal Storage Intact. So you don't need to worry if your personal data is lost.

Prerequisite.

  1. Before you perform this task, make sure your Bootloader is Unlocked. For more instruction guide you can see here.  
  2. TWRP Recovery installed on your LG Nexus 5X device.

Guide to flash LG Nexus 5X.

  1. Switch On your LG Nexus 5X device.
  2. Then perform factory data reset.
    • Go to Settings
    • Then Backup and Reset.
    • Then follow all instruction shown on screen.
    • Beware. This action will remove all of your user data from the LG Nexus 5X device (apps, settings, photos, music, etc).
  3. Once it was done, now download the appropriate factory images for your model .
  4. Extract the bullhead-xxxxxx-factory-xxxxxxxx (x's replace variables) into a directory on your computer. You can use 7zip to extract this file.
  5. You can create a folder on drive C:
    • C:\bullhead\
  6. Once extract finished, Open it and move the following files to a new directory.
    • C:\bullhead\images\:
  7. This is your file content.
    • bootloader-bullhead-bullhead-xx.xx.img
    • radio-bullhead-bullhead-xx.xx.img
    • flash-al-sh
    • flash-base.sh
    • flash-al
      Flash the Factory Images and Return to Stock LG Nexus 5X
      Flash the Factory Images and Return to Stock LG Nexus 5X
  8. Within C:\bullhead\bullhead-xxxxxx\ you'll see another zip archive named image-bullhead-xxxxxx.
    Flash the Factory Images and Return to Stock LG Nexus 5X
    Flash the Factory Images and Return to Stock LG Nexus 5X
  9. Now, extract the content of zip file into a folder.
    • C:\bullhead\images\
  10. Then, within C:\bullhead\images\ you should have the following files:
    • android-info.txt
    • boot.img
    • bootloader-bullhead-bullhead-xx.xx.img
    • cache.img
    • radio-bullhead-bullhead-xx.xx.img
    • recovery.img
    • system.img
    • userdata.img
    • vendor.img
      Flash the Factory Images and Return to Stock LG Nexus 5X
      Flash the Factory Images and Return to Stock LG Nexus 5X
  11. Now, Boot into TWRP recovery and enter the wipe menu, 
  12. Then select advanced wipe, check only the data box and swipe to wipe.
  13. Now, Go to the TWRP main menu,
  14. Then, enter the reboot menu, select bootloader.
  15. The LG Nexus 5X device will now boot into the bootloader.
  16. It's time to connect your LG Nexus 5X device to the computer using USB cable.
  17. Now, Open a command prompt from within your fastboot folder.
    • To start this command prompt just hold shift + right click, select open command prompt here.
  18. Now, enter this command to flash your LG Nexus 5X device without Wiping Your Personal Data.
    • fastboot flash bootloader C:\bullhead\images\bootloader-bullhead-bullhead-xx.xx.img
      fastboot reboot-bootloader
      fastboot flash radio C:\bullhead\images\radio-bullhead-bullhead-xx.xx.img
      fastboot reboot-bootloader
      fastboot flash boot C:\bullhead\images\boot.img
      fastboot erase cache
      fastboot flash cache C:\bullhead\images\cache.img
      fastboot flash recovery C:\bullhead\images\recovery.img
      fastboot flash system C:\bullhead\images\system.img
      fastboot flash vendor C:\bullhead\images\vendor.img
  19. Once all commands or flashes process is complete you can reboot the LG Nexus 5X device:
  20. To reboot this device, type.
    • fastboot reboot
  21. Finish.