[Interim update]
I think there are two types of random shutdown problem with the Nexus 5:
- Some have a diagnosed worn power button.
- Some have an undiagnosed battery problem (not able to supply peak power?).
My Nexus 5 (running Android 5.1.1) is shutting down at random and I think it has problem 2.
This is what I found:
- When running normally (i.e. from the battery at near 100%) it shuts down randomly.
- When running while plugged into the recharger it NEVER shuts down randomly.
I have tried the fixes below but the problem above persists:
- Run in "safe mode"
- Clear the cache
- Factory reset
Using a battery monitor, I've noticed the voltage dipping to 3.3v (from 4.3v) when a crash happens but I'm not sure if this is a symptom or the problem.
I'm interested in any opinions on this. I'll supply more updates when I have them.