yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Q&A, Help & Troubleshooting] locutusx:
This has nothing to do with hardware.

Many people have Nexus 4's which were 100% SOD-free -- like myself!! In the 2 years I had the phone, I've never had a SOD.

Mind you, I've also been 100% completely factory stock; no root, no bootloader unlock, nothing. I bought my phone from the Google Play store (and I think it came shipped with 4.2.1 ?) and I've accepted every single update as OTA -- I have never done a factory reset. For the longest time (1 year+ now?) it's been on KitKat which has been 100% stable.

But soon after upgrading to Lollipop via OTA - BAM! the "Nexus 4 randomly turning off" issue began. Unless my hardware decided to spontaneously degrade on the same week I got Lollipop, it's nothing to do with hardware. It's caused by Lollipop.

Also, check out this 10 page long official Google Forum thread about this issue. Loads of people are having this issue, identical to mine. Just like me, a 100% stable phone for 1-2 years, then after getting Lollipop , BAM! the nexus 4 turns into a piece of crap:

https://productforums.google.com/forum/#!topic/nexus/LNEnfEnTJ3Q[226-250-false]
[Nexus 4 Q&A, Help & Troubleshooting] orangeyes:
That's why I said this I am referring to the issue that this topic was started for.

Many people had this since the day the N4 was released with Jellybean including myself.

Many did RMA their phones because of this so this was indeed related to hardware.
[Nexus 4 Q&A, Help & Troubleshooting] travon802:
Thanks for bring this up! Keeping my fingers crossed that this is my issue.

Had my N4 for 2+ years and updated to 5.0 in November, never had random shutdowns until about 2 weeks ago.

When I read your post, it reminded me that I set 'Merge tabs and apps' to OFF in the Chrome settings around that time.
[Nexus 4 Q&A, Help & Troubleshooting] spezi77:
Hey there,

I also have this problem after receiving OTA upgrade to LP. I am on Stock LP 5.0.1 (unrooted) and I am absolutely certain that on JB and KK my N4 has never had a SOD.

I have read that some people think it comes from Chrome? So deinstalling Chrome should solve this. Can anyone confirm that it helped?

By chance, has this issue been fixed in a custom LP ROM?

Cheers!

- spezi
[Nexus 4 Q&A, Help & Troubleshooting] dsbnz:
I did read somewhere sometime ago about watching a video in chrome would cause the SOD (I think earlier in this thread). Another suggestion could be to disable chrome, and try another browser?
[Nexus 4 Q&A, Help & Troubleshooting] travon802:
Changing the tab option in Chrome worked for a while... but it did SOD several hours later which (coincidentally) was a slight improvement. I then disabled Chrome this morning and it's SOD'd 3 times since. Back to the drawing board..
[Nexus 4 Q&A, Help & Troubleshooting] spezi77:
I will now give 'safe charge' a try.

Sent from my Nexus™4 ?
[Nexus 4 Q&A, Help & Troubleshooting] locutusx:
Sorry, this has nothing to do with Chrome. When I had Lollipop on my N4, I never touched Chrome. I would literally never open it. Ever. It never even synced either.

I still got this issue.

I was only able to solve this issue once and for all by switching to SlimKat. Yes, it's only 4.4.4 but at least it's a bit better than stock (some extra features)

5 weeks on SlimKat stable 9.0 (their last 4.4.4 release) and ZERO sleep of death issues.
[Nexus 4 Q&A, Help & Troubleshooting] FormerSlacker:
Just to sum up what I've seen...

There are many triggers for this bug, Chrome is one of them but not the only one... and as far as I know Chrome is the only user reproducible way to invoke the SOD so I'd assume it's a big one. .. actually I think there is an exchange TLS SOD that is reproducible as well?

From my experience, Chrome, Netflix and Wifi usage in general are all triggers. The bug exists in Kitkat as well, but it's significantly rarer to the point where most never even experienced it. 5.0.1 seems particularly prone to SOD, 5.0 not so much.
[Nexus 4 Q&A, Help & Troubleshooting] JDYx:
Can confirm I am also having this issue, I'm on the first 5.0 PA release, glad to see it's probably not a ROM or hardware issue, hopefully it's fixed in 5.1, maybe that is why there is a delay with the release.
[Nexus 4 Q&A, Help & Troubleshooting] liquid64:
Same issue here. There are 3 Nexus 4 phones in my family. My wife and I are both running CM12, and the 3rd phone is running completely stock (running lollipop). My wife's phone, I have done a complete wipe, and still the problem persists. I feel like the only solution is to go back to kitkat on all of them.
[Nexus 4 Q&A, Help & Troubleshooting] CalculatedRisk:
If stability is what you desire, you might want to just return to 4.4.4 KitKat until 5.1 drops. It's supposed to fix a lot of issues.
[Nexus 4 Q&A, Help & Troubleshooting] spezi77:
Do u know if and when 5.1 will arrive on our N4?

Sent from my Nexus™4 ?
[Nexus 4 Q&A, Help & Troubleshooting] liquid64:
This is probably a fool's errand, but after reading from the google product forums that someone retro'd back to 5.0 stock on their N4, and they haven't had the problem in weeks. ( https://productforums.google.com/d/msg/nexus/LNEnfEnTJ3Q/knLYqOTDqTUJ )

My plan, is to grab the blobs from 5.0, and replace the blobs that CM is currently shipping. If it works, I will package it up in a zip, and post it here.

If it doesn't, hey, that's what backups are for ;)
[Nexus 4 Q&A, Help & Troubleshooting] CalculatedRisk:
No idea man. Sorry.
[Nexus 4 Q&A, Help & Troubleshooting] locutusx:
yup i've been on 4.4.4 slimkat for 6 weeks now and ZERO "randomly turning off" events.

if i had stayed on 5.0.1 my phone would have died at least 12 times by now (the longest it could go was 4 days before randomly shutting off)

i'm so much happier now. plus 4.4.4 slimkat is so much faster on this old phone's hardware, compared to stock Android 5.0.1!

even after 5.1 lands i'm planning on waiting at least 6 weeks before thinking about upgrading. so i am 100% sure that it solves SOD problem.
[Nexus 4 Q&A, Help & Troubleshooting] CalculatedRisk:
That's a good idea.
[Nexus 4 Q&A, Help & Troubleshooting] liquid64:
So far, running the LRX21T blobs on cm12 seems stable enough. I've been running it for 2 hours. Will give it 24, and post back if I get SOD or not.
[Nexus 4 Q&A, Help & Troubleshooting] spezi77:
I was also planning to downgrade to KK, probably Slimkat, to get rid of SOD. When looking into custom roms, I have discovered that there a few ones already available on 5.1, e.g. Terminus, Euphoria and CM12.1 just to name a few.

Has anyone by chance checked if on one of those roms SOD is no longer reproduced?

Sent from my Nexus™4 ?
[Nexus 4 Q&A, Help & Troubleshooting] spezi77:
Hey there,

I'm on Slimkat now, and really happy about making this step! If you will never find me posting in this thread, then SOD is solved for my device.. :D

Sent from my Nexus™4 ?
[Nexus 4 Q&A, Help & Troubleshooting] liquid64:
Well, replacing the blobs didn't help the situation. However, after updating 20150327, I've been running it for 23 hours, with no SOD. It may be a coincidence though. Will keep this thread posted.
[Nexus 4 Q&A, Help & Troubleshooting] liquid64:
I am now currently running a self built cm 12.1 (android 5.1) on my nexus 4, and the issue is still there.
[Nexus 4 Q&A, Help & Troubleshooting] raptor170:
Slimkat it will be than ;) thanks for the heads up

Edit: been running slimkat for day or so and zero RR, Sod, and battery life is way better anyways than stock lp.
[Nexus 4 Q&A, Help & Troubleshooting] spezi77:
Hum, I hate to be that guy! But after a week with Slimkat on my device I have experienced a SOD!

I decided to switch horses.. now on temasek's CM12.1...

Sent from my Nexus™4 ?
[Nexus 4 Q&A, Help & Troubleshooting] raptor170:
Strange havnt had an sod, RR, any of that fun stuff past week or so, fingers crossed, were u on the slimkat kernal or different kernal
[Nexus 4 Q&A, Help & Troubleshooting] spezi77:
Slimkat kernel. I have picked the most recent official/ stable build from SlimRoms.

Ah, and another glitch i had on slimkat was that my alarm clock was ringing but i couldn't hear it as the sound had a crash.

Sent from my Nexus™4 ?
[Nexus 4 Q&A, Help & Troubleshooting] locutusx:
Hmm. I have been on SlimKat Stable 9.0 since Feb. 13th (so 2 months now) and have not gotten a single SOD. Very very happy with it. Will keep the N4 on this OS until it dies or I get a new phone.
[Nexus 4 Q&A, Help & Troubleshooting] idividebyzero:
happened to me nearly everyday until doing a factory reset, now it happens once every couple of weeks to the point that I forget its a problem, phone is fully updated on stock
[Nexus 4 Q&A, Help & Troubleshooting] liquid64:
There might be hope after all. I built a fresh build of cm-12.1, and added the binaries from LMY47O, and so far, I have not had one SOD yet. I started experimenting with the LMY47O binaries within a few hours of google releasing them, and since then, I haven't had any trouble. Will keep this thread posted if something changes.

http://xdaforums.com/showpost.php?p=60157619&postcount=60
[Nexus 4 Q&A, Help & Troubleshooting] microMXL:
Already had one SOD on stock 5.1, gonna try SimpleAOSP + hellscore, before I had purity + hellscore for like a month and zero SOD there
[Nexus 4 Q&A, Help & Troubleshooting] theabsurdman:
SOD not fixed in 5.1

I'm still getting off-charger SODs, specifically:

the first time the screen goes off after a long period on the charger - SOD.

It doesn't happen otherwise.

and never happens while it's actually on the charger.

hoped 5.1 would fix it but, no-go.
[Nexus 4 Q&A, Help & Troubleshooting] spezi77:
After switching to CM12.1, I also got one SOD after a period of 3 or 4 days. :/

But then it started.. OTA updates every now and then, which means that I was upgrading the ROM almost every 1st or 2nd day. After dirty flashing, I needed to wipe cache + dalvik cache and then to restart the system. And I believe that this procedure has somehow prevented further SODs in my phone. Maybe a daily restart of your phone is a good workaround.

Running now for more than two weeks without SOD :D
[Nexus 4 Q&A, Help & Troubleshooting] Firefly1337:
Sorry, but two weeks are nothing.

I kept a record of my SODs to see how frequent it occurs: (DD.MM.YYYY)

- 16.11.2014

- 25.11.2014

- 14.12.2014

- 04.02.2015

- 02.03.2015

- 18.03.2015

So you can clearly see that there are gaps of sometimes months when it didn't occur.

I had a friendly chat with LG Germany a few months back and they told me that it's hardware related. They also told me that they know how to fix this issue (and that they fixed it several times before) and to RMA my phone. And that's exactly what I'm going to do as soon as I find the time...
[Nexus 4 Q&A, Help & Troubleshooting] spezi77:
U know what? Just the next day, right after flashing a new OTA update, I got another SOD. :/

So finally I am convinced that it's hw related. Do u know how much it will cost to fix it at LG or is it for free? My device should be still within warranty period according to German laws.

Sent from my Nexus™4 ?
[Nexus 4 Q&A, Help & Troubleshooting] Firefly1337:
If it's within warranty, it's completely free. You don't even have to pay the shipping costs, they'll send you a voucher.

According to my chat it should take them 5 days to repair it (plus shipping).
[Nexus 4 Q&A, Help & Troubleshooting] Binarybaba:
I have been using N4 for almost 2 years now, Currently phone is running on Stock 5.1, unrooted , stock recovery and bootloader unlock.

I did not have any SOD until 4.4.4. After 4.4.4 update I am getting SOD every days, since then I am trying to figure out the occurrence of SOD. After trying all the combination for almost 1 years, I have successfully found the combinations for SOD,

1. Phone with Data Connection on + GPS (Battery Saving) + Bluetooth + Google Now = SOD

2. Phone with Wifi on + GPS (Battery Saving) + Bluetooth + Google Now = SOD

3. Phone with Wifi on + GPS (Battery Saving) + Google Now = SOD

4. Phone with Wifi on - GPS (Battery Saving) + Google Now = NO SOD

5. Phone with Mobile Data on - GPS (Battery Saving) + Google Now = No SOD

6. Phone with Mobile Data on - GPS (Battery Saving) + Bluetooth + Google Now = No SOD

It has been observed only when the phone enabled into GPS battery saving SOD happens more than once in a day. If the phone is switched to Device or High accuracy there is not SOD.

Whenever phone go to SOD there is drastic decrease in the battery %. Clear the cache from the stock recovery and reboot, battery % will increase.

I hope this is the issue with all the N4 users having SOD, no one have specified whether GPS (battery saving) was enabled or not. Try turning off the GPS (battery Saving), the device should work fine.

Let know if you people have the same issue.
[Nexus 4 Q&A, Help & Troubleshooting] Firefly1337:
Thank you for your input, but I noticed quite the opposite.

For me SODs seem to be less frequent if I have GPS battery saving enabled.

BUT there are definitely multiple triggers.

I noticed you have Google Now in every equation, so maybe in combination it causes SODs for you, but not for me because I don't use Google Now.

By the way, had a SOD last week and another this wednesday. I'm going to RMA it next week, maybe they'll be able to fix it (which I doubt, but we'll see).

I found this issue on Google Code where people are discussing the cause of the problem, and in post #84 a guy claims its memory (=hardware) related and is actually able to trigger it.

//Edit:

Wow, I think my phone really hates me. Just had another SOD. Somehow it's more frequent now than the few months before.

Could be related to the wipe I did last week to install 5.1 and that it's completely stock now.

Before that I had it rooted and the franko kernel installed.
[Nexus 4 Q&A, Help & Troubleshooting] rogers11:
My device only had SODs when I switched off Google Play Service's "Keep Awake" and "Wakelock" permissions. After reactivating them no SODs anymore. Maybe I had just luck.
[Nexus 4 Q&A, Help & Troubleshooting] UltimateGoblin:
I have the same problems you encountered. I tried to change the battery but alas, to no avail. I believe the hardware is dying on me.
[Nexus 4 Q&A, Help & Troubleshooting] raptor170:
Wife was getting sod every day with stock lp, I flashed slimkat about 2 months ago and not one RR, sod,etc.
[Nexus 4 Q&A, Help & Troubleshooting] Firefly1337:
Yesterday I chatted again with LG, but this time with a completely different outcome than my previous chat.

At first, they officially didn't know the problem. After some poking around they admitted that it could (not will, but could) happen sometimes on Android 5 (and not on 4!).

They also told me this time that it's definitely not hardware related. The only thing they could do is reinstall the software (well, thanks, I can do that myself) and that I should contact Google. When I asked how to do that (there is literally no way) he didn't know and send me their support site (that FAQ one).

Nice, so back to the beginning.

I guess I'll try out some other ROMs (CM, Slimkat etc), maybe they'll indeed work better.
[Nexus 4 Q&A, Help & Troubleshooting] Blacksmith5:
MAJOR ISSUE

This "Nexus SOD" issue is showing up on many sites across the Internet. I have multiple "Nexus" devices including 2 Nexus 4, 1 Nexus 5, 2 "Nexus 7 2013". It suddenly started out of the blue with one of my Nexus 4 phones. Symptoms included rapid battery discharge. I am using Lollipop 5.1 on all devices. There are many claims as to the cause, Hardware Motherboard, Power Button etc. Others claim it is "Software Related" or App Related. The problem effects Nexus 4 and Nexus 5 phones. I have ordered a new motherboard for my nexus 4 device and see if that makes a difference.

This problem should warrant a "Major Android Lollipop Crisis Team" by Google to investigate the cause and let us know what it is and what Google is doing to solve the problem before moving to announce "Android M". This issue needs to brought up and actively pursued at the upcoming "Google I/O Conference" by the strong Android Developers Groups to press for "Formal Action"
[Nexus 4 Q&A, Help & Troubleshooting] raptor170:
Had the same issue on wife's n4 and I installed slimkat, been 2 months on slimkat and not one sod, RR, etc. Sucks to see the problem still exists, was thinking of upgrading her to slimpop, slimkat ftw for the n4 I guess
[Nexus 4 Q&A, Help & Troubleshooting] Blacksmith5:
Convinced the Battery was the problem for the SOD's

I had "SOD"s a few times recently till my Nexus 4 motherboard failed. I swapped it out for a new one that was loaded with kitkat 4.2.2.

I also replaced the battery at the same time.. Rebooted and then did a sideload to Lollipop 5.1. Bootted up again. Eveything worked great. I let it run like that for a few days.

Then yesterday sideloaded using the WUG Nexus Root Toolkit with Lollipop 5.1.1

Booted up and it went into an endless boot loop of over 7 hours.... Rebooted again. still endless bootloop. I booted into Bootloader using Volume Down button and Start button. Got into recovery.... did a factory wipe restore......

rebooted and it came up after 20 mins with L 5.1.1 running....everything was fine

I also sideloaded with the root kit to load Nexus-4-LTE Enabler V2.14 to get 4G for Tmobile US......

worked like a charm

I am convinced the battery ws the problem so I swapped it out for a new one. I will let it like that for a week or so. Then I will replace the new battery with the old one that I still have just to check it out and see if I can replacte the problem...... I will post the results.

Please note many Nexus 5 users are reporting the same "SOD" s and reboots.
[Nexus 4 Q&A, Help & Troubleshooting] Blacksmith5:
This issue is widespread on the Nexus 5 many reports..... not too many on Nexus 4...... I am convinced after all my research the problem is battery related...... I replaced my battery with a new one and the problem went away.

just google it and you will see lots of reports and theories

Hope that helps
[Nexus 4 Q&A, Help & Troubleshooting] idividebyzero:
it shut down for no reason again and now it wont turn back on after unplugging the battery, is there another way to get it to turn on?
[Nexus 4 Q&A, Help & Troubleshooting] spezi77:
Deleted
[Nexus 4 Q&A, Help & Troubleshooting] idividebyzero:
has anyone replaced the logic board? It doesnt seem to be the battery or the software, I downgraded to 4 and it didnt help, I just tried a different battery and its still shutting down all the time. I found out that I can get it to turn back on if I hit it against my knee, otherwise it will not turn back on even after pulling the battery.

I took apart the phone and dont understand why hitting it makes it work again, none of the connections were loose and the board has nothing that would come loose
[Nexus 4 Q&A, Help & Troubleshooting] theabsurdman:
Eureka! I think I may finally have stumbled on a solution to my own (described above) problem.

I charged my Nexus 4 overnight on a friend's QI wireless charger and ... what do you know? My usual reliable SOD in the morning immediately after disconnecting the charger didn't happen!

Since then I've bought my own cheap wireless charger (<£4 on eBay) and so far - it's been a week now - not a single SOD.

I now charge overnight exclusively on the wireless QI charger and if I do happen to use a usb charger, I briefly allow the device to sync with the QI charger immediately after disconnecting it from the usb , and again: no SODs.

Something about QI wireless charging seems to prevent off-charger SODs.

Try it.
[Nexus 4 Q&A, Help & Troubleshooting] spezi77:
Awesome news! Could you share a link to the one you have bought?

Sent from my nexus™4 ?
[Nexus 4 Q&A, Help & Troubleshooting] theabsurdman:
I actually bought 2 - both have been fine.

eBay item number: 331602323444 @ £3.59 + 0.59 postage has 2 additional usb sockets

Qi Wireless Charging Charger Pad for iPhone Samsung Nexus LG HTC Mircosoft Nokia

and this larger one, eBay item number: 201317662368 @ £3.79 shipped.

Qi Wireless Charging Pad for iPhone5s 6 6Plus Samsung Galaxy S4 S5 S6 Note 4/5

You'll additionally need a micro-usb charger - minimum capacity 1.5A - if you don't already have one, to power the QI pad.
[Nexus 4 Q&A, Help & Troubleshooting] Yaime:
This seems a quiet old thread, but it worth a shot.

So, I have this amazing thing called Sleep of Death on my Nexus 4. At first, it appeared every 2-3 months, now, I had it for the third time in the past week. I have no idea what could be wrong.

I got CM13 nightly, rooter, unlocked.

I don't have WiFi optimization option in the setting.

I'm using 3 different chargers, and they were fine before.

Any ideas since the last posts?
[Nexus 4 Q&A, Help & Troubleshooting] spezi77:
In my case the battery was defect/worn out. After getting a refurbished N4, the problem is gone for me. I believe that running KitKat on N4 might be an alternative way which is worth a try. This should decrease the frequency of occurrences of SoD because it seems to be more power efficient than Android 5 or higher..

Sent from my beanstalk'd & hellspawn'd N4.
[Nexus 4 Q&A, Help & Troubleshooting] Taxidermista:
Nexus 4 with Android 5.1.1 stock and SOD once or twice a week, wiped everything and downgraded to Android 4.4.4 stock. Less than 72 hours after I've got my first kitkat SOD. :-/
[Nexus 4 Q&A, Help & Troubleshooting] dookie23:
I had the same issue with I was running stock 5.1.1 on my Nexus 4. Since then I upgraded my N4 to 6.0.1 and I am no longer seeing this issue. The ROM that I am using is the Fake Nexus ROM: http://xdaforums.com/nexus-4/development/fake-nexus-rom-nexus-4-t3230268

Give that a try!
[Nexus 4 Q&A, Help & Troubleshooting] Taxidermista:
Thanks for the tip, I'll try. How long without SODs on android 6.0.1?
[Nexus 4 Q&A, Help & Troubleshooting] dookie23:
I've been using this ROM since Oct. 2015 and it's been really stable.
[Nexus 4 Q&A, Help & Troubleshooting] Taxidermista:
Wow, after following your advice almost a month without a SOD event. Thank you very much!
[Nexus 4 Q&A, Help & Troubleshooting] jhock:
I can't seem to find it right now, but there is another thread on this topic wherein the OP suggests that there is something physically wrong with some phones. He actually has a video with a proposed fix that has worked for some people.

I am suspicious that it is a hardware problem because my unit has been fine for the past 2 1/2 months. I am running stock, unrooted and was without a case until two days ago. I've made no recent changes to apps or settings. The only change was that put a bumper on and my phone has suddenly started shutting down and remaining unresponsive for a period of time. The battery is always at least half charged (before and after the event). After it decides to come back on, it is as if nothing happened. It doesn't really strike me as a software issue, it is more like the battery suddenly disconnects.
[Nexus 4 Q&A, Help & Troubleshooting] varshil:
If phone becomes hot, theres a defense mechanism in which our kernel will make phone run at lower clocks which eventually gets our phone into sleep of death. So try one thing. If ever ur phone gets hot, dnt lock the screen and keep it on a cold surface, and once it get cold, press the lock button. See the diff!! ;)
[Nexus 4 Q&A, Help & Troubleshooting] algus:
It turns off at night while in standby mode, charger unplugged and battery has 30-70% left. With stock everything and default settings. Why should it overheat? Only if stock firmware has such bug.
[Nexus 4 Q&A, Help & Troubleshooting] varshil:
My phone does over heat at times and only after that it goes to sleep of death.. When you charge your phone, the phone gets heated too... Do you charge your phone at night before going to sleep?
[Nexus 4 Q&A, Help & Troubleshooting] MildewMan:
Just wanted to update on this. I have not had a night-time shutdown since turning my WiFi off before I go to sleep. I still don't have conclusive evidence that it is related to WiFi, but I'm going to keep turning it off at night until it shuts down again (if it shuts down again).
[Nexus 4 Q&A, Help & Troubleshooting] jlear3:
+1

No problems yet, but I have flashed a bunch of other stuff too

Nexus 4

Franco r93

PROJECT ELE