Nexus 5 is one of the best phones to experience pure Android. When it was released, everyone fell in love with how the Android operating system worked on it flawlessly. Nexus 5 is still loved by many, and even years after its release, people are still using it. Considering its success, Google also released its successor named Nexus 5X. Recently, my Nexus 5 was stuck at bootloop. After trying every other option, the last chance was reinstalling the operating system. To help others facing the same problem. I wrote this guide on how to flash stock ROM on Nexus 5 stuck at bootloop.
Flash Stock ROM on Nexus 5 Stuck at Bootloop
The following are some prerequisites that you will require before you proceed. First, I will use Nexus Root Toolkit to flash stock ROM on Nexus 5. This toolkit was developed by a recognized developer of XDA named WugFresh. So you don’t have to worry. It works like a charm.
Prerequisites:
Note: This process ahead will delete all the data present in your phone’s internal storage.
You need to download and install the tool on your Windows PC. It doesn’t matter if you enabled USB debugging or not. This guide will still work.
Guide on how to flash Stock ROM on Nexus 5, which is stuck at bootloop:
Note: If the tool fails to download the TWRP recovery file, you get a Hash unmatch error. Then, you will have to download it from the official TWRP website. For that, Go to the TWRP website. Next, select your phone model, and download the latest recovery zip file. Now select that zip file by clicking on the browse option on the tool and selecting this downloaded TWRP file.
- First of all, download and install Nexus Root Toolkit.
- After installing, open the toolkit. The software will check whether all the dependencies are up to date. If yes, then the main screen will appear. If not, then the missing dependencies will be downloaded.

- When this screen appears, select your device and the current Android version your device is running, and then just hit apply. Or let the software connect your phone to your PC and click on Auto Detect Device + Build.

- The next screen displayed will be this one. Now, this is the main menu of this software. This is a potent software as it has the ability to do anything you could think of for an Android device running the stock Google operating system.
- Now, In your case, your Nexus 5 is stuck in a bootloop, so just click on the Flash Stock + Unroot button before clicking it and select “Soft-Bricked/Bootloop” from the current status.

- Just follow these steps and hit OK.
Now, this screen will appear. From here, select the Android version you want to revert to, or if you have already downloaded a .tgz or .tar factory image, then you could just browse and select it.- The software will do it if you don’t know which firmware to select for your phone. Once selected, just hit OK.
- After this, the necessary downloads will start, and after the downloads are completed, the unbricking process will begin with the essential prompts on the screen. Just follow these prompts, and your device will be functional again.
Conclusion:
Note: If you have any issues while using this tool for flashing stock ROM on Nexus 5, see this guide regarding the Nexus toolkit.
That’s all on how to flash stock ROM on Nexus 5 stuck at bootloop. Suppose you have any questions or queries regarding the guide above. Feel free to ask me in the comments. Also, give us feedback if you successfully fix your phone using the guide above.



















so cool :O
did you succeed if yes how long does it take?
Hello
I want to do the same thing on Nexs 5, but I have a Macbook.
Do you know an other soft doing the same thing but working on iOs?
Thank you so much
Hey Mehdi.
I am sorry but this tool is only for windows. You will have to borrow friend’s windows PC or get a emulator on your MAC to run windows in order to use this tool.
Best of luck.
Hey Mehdi,
I have a Nexus 7 2013. I tried to carry out a factory reset and when I turn my Nexus 7 on, the android character in on screen saying ‘Erasing’. It then shows the character lying down with a red exclamation mark over his chest. When I select reboot, it goes back to erasing and then to the character with the red exclamation mark again.
When I press the power and volume up key, the E:filed error appear for failed to mount/cache (Invalid argument) and another saying
E:Failed closing/dev/block/platform/msm_sdcc.1/by-name/misc (I/O error)
Will the above process help me on a Nexus 7?
Thanks
Chris
Apologies, this comment was meant for Abdullah
If you are getting failed to mount cache error. Then try the following guide.
https://itechify.com/2016/04/01/fix-failed-mount-cache-invalid-argument/
Best of Luck
Regards.
Abdullah
How long does it take to boot after the whole process cause its been 1 hour but my phone hasnt boot yet
It takes round about 15 minutes to reboot for the first time.
Hi Abdullah, i successfully d the process but my phone took so long to reboot, How long does it ussually take
Hi,
This hasn’t worked for me. I followed the other guide first to wipe the cache partition which didn’t work. I have installed the Google drivers and selected the correct stock image for my nexus which was listing Android 5.0.1 in the bootloader. Followed the instructions for Flash Rom/stuck in bootloop. Managed to unlock the phone but when it reboots nothing happens and it’s still stuck on the bootloop. I left it running overnight to come back to it in the morning with it still in the boot loop. Please help? I’ve heard that flashing the cache img. if the cache data is corrupt may be an option as well.
Hi,
Thank you for your guide. I have my nexus 5x stuck at bootloop, i tried your guide but still not working. The nexus root toolkit is stuck at “waiting for your device” just after rebooting it for the first time (trying to unlock the bootloader). Do you know how to solve this ?
I think that this is a good news that NRT is able to reboot the phone but am i still missing something ?
Thank you,
If you are still stuck at bootloop. See the comments you will find link to an article that allows you to mount cache partition. After that your phone will get out of bootloop.
Awesome worked a charm ! Much appreciated !
My nexus 6p google logo is still on loading from last 2 hours … and then nothing happens. its just stays on loading screen
Try to clear the cache from recovery menu. If nothing works install stock firmware on Nexus 6P using this guide.
https://itechify.com/2016/07/10/how-to-fix-nexus-6-bootloop-by-flashing-stock-rom/