yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Q&A, Help & Troubleshooting] boy_jeenyus:
SOD differences

Hey all

I'm experiencing the same issues with my phone shutting down randomly. However, when my phone shuts down it forgets all of the wifi networks that I stay connected to. Also my phones been doing it while I'm using the phone not just when it's a sleep. A lot of people are suggesting that it has something to do with the WiFi. For me both the times it happened while I was using the phone I wasn't connected to WiFi. My phone also always goes from whatever charge it has, sometimes up to 80%, to completely dead. It is never a drop of 10-20% like some others have reported.

Like many of the others on here, I also replaced my screen on my own and I believe I also deformed my battery when I did it because my phone never closed back up properly in the corner the battery sits in. I did this way back in march and but I didn't start seeing the SOD issue till just the last week or so. Specifically I noticed the problem after I went to charge my phone at a friends house and the charger made a huge spark as I pugged it in. Could a questionable plug have messed my battery up (with a power surge or something) and is it likely that replacing the battery would fix this problem?

I'm looking into getting the nexus 5 anyway since my headphone jack is kinda screwed and the charger connection doesn't hold very well any more. Has anyone heard of this issue with the nexus 5 yet?
[Nexus 4 Q&A, Help & Troubleshooting] LuCiPh33R:
Looks like the new battery has fixed things! Haven't gotten round to cutting open the battery yet though.
[Nexus 4 Q&A, Help & Troubleshooting] LuCiPh33R:
I cut the battery open today (see pictures). Cutting open the foil side and peeling it off shows a stack of (presumably) cells, mounted on a white material that looks a bit like PTFE tape. The cells are mounted on the white tape (sometimes on both sides), and are each composed of three layers, which I guess are cathode, electrolyte and anode. I'm pretty sure the battery was well-discharged when I took it to pieces, but I've left the parts sitting in the back of my fumehood to oxidise themselves to be sure.

Without having a new battery to compare it to, its hard to say exactly why the battery is swelling. It could be one or more of the cells, or it might be say, the electrolyte layer in all of the cells. Perhaps if I measured the thickness of each of the different bits of cell as a before and after, it might be more obvious which part is failing. At the time I didn't have any vernier calipers handy, and I'm not going to dismantle a new battery just to find out myself. Unless someone wants to mail me one of course.
[Nexus 4 Q&A, Help & Troubleshooting] igguk1:
ART behavior

More on this,

I have an N4 for about a 1 year now, all stock KK.

The problem I get is random shutdowns/SOD's while on battery no charging and wifi on, and away from the phone - I have never got a SOD while interacting with the phone. Pretty much what some of the people have described here.

Now the interesting bits, on Dalvik I would get like a shutdown just about once or twice in a month only that, but switching to ART worsen this behavior to having one every few hours... there is a chance then the problem could be software related... even though I believe the best thing to do in this case if you have this behavior with an annoying frequency after a factory reset and Dalvik is just to RMA it.
[Nexus 4 Q&A, Help & Troubleshooting] impulse5:
Hi LuCiPh33R, have you got the error again? or the battery replace is still working?

Thanks!
[Nexus 4 Q&A, Help & Troubleshooting] Igrikys:
A year after the purchase, the battery died.
[Nexus 4 Q&A, Help & Troubleshooting] LuCiPh33R:
Apologies if I didn't make it clearer in my earlier post - yes it fixed my problems and it hasn't randomly crashed for quite a while now. Easiest way to tell for me was to run the battery down to a point just above where it'd normally crash, then switch it off and back on. If the battery % is way lower on reboot (mine dropped by about 50%) then you're likely to have a problem. Peculiar battery charging cycles also seem to be diagnostic - when charging my battery level looks like a sharks fin!
[Nexus 4 Q&A, Help & Troubleshooting] DupleX01:
Would you mind sharing your source for the replacement battery?
[Nexus 4 Q&A, Help & Troubleshooting] impulse5:
Thanks LuCiPh33R, I just wanted to confirm that you have not the problem again. I already have ordered a new battery because the problem is starting to be worrying.
[Nexus 4 Q&A, Help & Troubleshooting] LuCiPh33R:
Here's where I got it from:

http://www.ebay.com/itm/151193536436?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649

I went through this whole thread and I think its important say that replacing the battery is *not* guaranteed to fix your phone, because to me it looks are at least a few different causes for this problem. The "phone spinning on its back" trick is definitely a quick way to tell if your battery is swollen or not without opening it up.
[Nexus 4 Q&A, Help & Troubleshooting] orangeyes:
Indeed i think battery problems do not necessarily have to do with the main problem of this topic which is the sleep of death.

This is because another user had to replace a motherboard to solve it.

But thabks for that info. I might get a spare bettery while they are available at normal prices.
[Nexus 4 Q&A, Help & Troubleshooting] crabilld:
Solution Found

I was having this problem with an unrooted Nexus 4, and I have discovered and fixed the issue. Specifically, the phone would shut off randomly and it would take a while to reset, even when holding down the power and volume buttons. When the phone did restart, the battery had drained significantly. Sometimes this would happen multiple times in a day.

When I setup the phone, I disabled some of the default apps that I wouldn't use (I thought), like Email and Calendar Storage, since I use Gmail and Google Calendar. I left Exchange Services on just in case an app needed it. My guess is that Exchange Services tried to find those apps (at random times), and then hit an infinite loop or something, which would explain why the battery drained.

After a number of tests, here's what I found:

Gmail does not need Exchange Services to work properly

Google Calendar needs Calendar Storage to work properly

All three apps (Exchange Services, Email, Calendar Storage) need to be either off or on

I now have all three enabled and the phone is running well with normal battery life. If I didn't use Google Calendar, I could disable all three and it would still work well. Again, my phone is unrooted, and I notice that most people that have this problem are root users. I don't know if the above solution is related to the problems experienced with a rooted phone.
[Nexus 4 Q&A, Help & Troubleshooting] GAmorim:
Hmm, that's interesting. I'll try this.

The thing is that I think we all have the same problem but not whit the same cause.
[Nexus 4 Q&A, Help & Troubleshooting] throw183:
Is this thread left out?

I am having SODs on 4.4.2 for almost 2 months now. It drives me crazy.

Its unrooted.
[Nexus 4 Q&A, Help & Troubleshooting] dsbnz:
Ive had the issue since i first got the phone in september last year. When i first got the phone it was on 4.2.2, and it updated to 4.3 on first use (so i cant comment on 4.2.2 stability), but its happened on every android update from 4.3

Ive spent endless hours in past 4 months trying to find solution online in forums, but nothing works.

Its really frustrating as i use the phone as an alarm at night, and its important the phone is functioning during the day incase i get a call from the kids schools, or something else important. Apart from being a quick, and great looking phone, its been a real disappointing one for me.

Personally i think its just a hardware/design flaw that's never been identified. My partner has exactly same model nexus 4, we purchased at the same time, and run almost all the same apps. Her phone has never had SOD, mine does it at least weekly.

So on that theory im considering contacting google for return / refund, as its still well less that year old, and in all frankness, its not a reliable phone, my old htc desire was more reliable.

Edit : RMA'd , new one should arrive within the week, so will see what happens with a new one. Must say the customer service at google was excellent.
[Nexus 4 Q&A, Help & Troubleshooting] //RF:
Yeah, it definitely is a hardware problem.

Lähetetty minun Nexus 5 laitteesta Tapatalkilla
[Nexus 4 Q&A, Help & Troubleshooting] Podmantastic:
I'm not so sure. I went through a few weeks where my 6 month old N4 would shut down and not respond to the power button for a while, now it's been a few weeks since it happened, leads me to suspect software.
[Nexus 4 Q&A, Help & Troubleshooting] crabilld:
Sorry, I spoke a little too soon. The phone still has the issue when all 3 default apps are enabled, but it appears to not have the problem when they are disabled. When they are disabled, the phone has a sync error and I'm not sure if it's the syncing or the apps that cause the problem.
[Nexus 4 Q&A, Help & Troubleshooting] GAmorim:
I tried them disabled still gives me SOD.
[Nexus 4 Q&A, Help & Troubleshooting] throw183:
NO SOD for now

I returned the phone, they reinstaled 4.4 (without the updates) and then returned it back. They said that it is a app that caused the crash. 1 and a half weeks, and no SOD whatsoever.

I installed only a few apps like facebook messenger. Now i'll just have to wait..
[Nexus 4 Q&A, Help & Troubleshooting] bennebiest:
It's not an app issue (at least in my case).

I had the SOD running in safe mode.

Also without any apps installed.

My experience is that after a factory reset the phone is fine for some weeks. But as soon as the first SOD happens, the second SOD will appear soon.
[Nexus 4 Q&A, Help & Troubleshooting] theclaytons:
I too have this problem. I did not have it for a long time and realised I recently turned on 3G in a below average reception area. Does anyone else have SOD on 3G where the reception is not brilliant. I have gone back to 2g for now to see if problem exists.
[Nexus 4 Q&A, Help & Troubleshooting] theclaytons:
I have Ben using Purity ROM and Llama to automatically switch to 2g when screen off or connected to wifi and have not had SOD since. This pretty much confirms to me that 3G in low reception areas causes SOD.
[Nexus 4 Q&A, Help & Troubleshooting] scr1k:
Hi guys,

Seems like I have the same problem - I go to sleep with my phone on with full charge, and wake up to find it shut down. Have to do a hard reboot to get it working again and to see 75-85% of the battery drained overnight.

Battery stats just reveal a massive drop in charge, no wakelocks or anything.
[Nexus 4 Q&A, Help & Troubleshooting] dsbnz:
I had a very similar experience with mine. It would usually occur during the night, on average once a week, sometimes more. On a few occasions it happened during the day. I tried everything that i could find, searching extensively for solutions, but nothing fixed it. You name it, i tried it, over a period of 6 months since i first purchased it.

I contacted Google (i was still under warranty) and they RMA'd mine and send a new one. I've had the new one for 3 weeks now, and runs perfectly. The customer service at Google was excellent, received the new one within 48hrs.

I'm convinced it was a hardware problem, as I'm running the same apps, same setup and configuration on my new one, as i was on the original one.
[Nexus 4 Q&A, Help & Troubleshooting] scr1k:
I've been through the RMA process before for the earpiece buzz issue, and yeah, it's pretty damn good.

So this is a H/W problem and not a software one? I'm running the latest PA build and Gapps if it makes any differencee at all. I did see a suggestion that weak 3G signal was the cause but I have 4-5 bars in my bedroom where it dies overnight.
[Nexus 4 Q&A, Help & Troubleshooting] dsbnz:
Well, I'm just speculating its h/w related, more so as I'm running the same apps, and configuration I had on first N4, and I'm not experiencing the problem on the new replacement. It was also freezing during the night, and I get about 2-3 bars on 3G.

The freeze occurred on full stock, rooted stock with custom kernel, and custom ROMs, so it swayed my thinking towards hardware issue which prompted me to RMA.
[Nexus 4 Q&A, Help & Troubleshooting] Hank3:
Joining the fray...

Purchased my N4 from Google September 2013. I experienced the SOD for the first time this morning. Glad I found this thread. My N4 has not been rooted. It's pretty stock. I did notice something weird last night that I hadn't seen before. While at home, it wouldn't connect to my home WIFI. It had some weird message that I can't recall - but then it worked shortly thereafter. Anyways, go to work this morning after it had been charging all night, it wouldn't turn on when I got to work. Had to press the on button for a while. Worked fine for the rest of the morning and then it happened again mid-afternoon and then I found this thread. I'll keep an eye on this thread, but it doesn't seem like there has been one known fix so I guess I won't tweak any settings or add/delete apps quite yet. If there's anything you seasoned veterans of this problem would like me to try since it's my first experience with this issue to help you all troubleshoot/eliminate possibilities, LMK.
[Nexus 4 Q&A, Help & Troubleshooting] GAmorim:
The app wake my droid was the best fix for me.

Now I get like 3 times in a month.
[Nexus 4 Q&A, Help & Troubleshooting] gecko316:
so what to do? bought my n4 in dec-2012

dropped it about 6 months ago, replaced the broken glass back myself. no problems...

then about a week or 2 ago, the back of my phone cracked, i thought i sat on it or something. i suspect it's the fat battery issue.

a few days ago, my problems started... phone is at 80% then battery dies, needing a charge

i take it returning it to google is not an option because it only had a 1 year warranty?

turned off wifi optimization, but i suspect i will need a new battery and glass back... is this what i should do?
[Nexus 4 Q&A, Help & Troubleshooting] vukaleksic:
OK, I found out what causes (at least in my case) SoD.. it's definitely the wifi turned on while the screen is off, maybe that's because of the bad driver, maybe not.. I don't know.. if someone have some other modified wifi driver for nexus 4 please let me know to flash and try it to see if the problem persists

my workaround: make sure to uncheck "scanning always available" 'cause that's the only way to totaly turn off wifi, then I downloaded this application: https://play.google.com/store/apps/details?id=com.ajas.screenoffwifioff and set the wifi to turn off immediately (0 sec) when screen turns off and back on when the screen is on.. no SoD's for 20 days and when I tried again to let wifi stay on in sleep mode BAM here's the SoD after 2 hours

hope this helps someone, I was trying to find cause for this for more than 6 months and finally found what was the problem :)

cheers!
[Nexus 4 Q&A, Help & Troubleshooting] dookie23:
Guys, it sounds like this is a similar issue with the one listed in the following thread. The fix that I found has solved the problem and the phone has been working for almost 2 weeks now without turning off. Try it and see if that works for you.

http://xdaforums.com/nexus-4/help/wake-problem-t2744899
[Nexus 4 Q&A, Help & Troubleshooting] FormerSlacker:
EDIT: nevermind, completely wrong.
[Nexus 4 Q&A, Help & Troubleshooting] FormerSlacker:
EDIT: Dupe
[Nexus 4 Q&A, Help & Troubleshooting] FormerSlacker:
On the Google forum people are suggesting forbes.com causes the black screen of death too, I need to test that out... and they also have videos on that page.

https://productforums.google.com/forum/#!topic/nexus/kXfxdEwYSMQ/discussion

Interesting thing about forbes.com, like the sites I've suspected are causing this, contain videos that Firefox will not play but Chrome will, only audio is heard in Firefox with these videos, these are the pages causing SOD.

I'm convinced it's Chromes video player exposing a GPU bug. I've yet to experience this issue again after switching to Firefox exclusively and avoiding programs that use the embedded webview like Play Newsstand, You need to avoid the webview because they've switched it Chromium as well and if it tries to play one of these problematic videos it will cause the same issue.

Tried Opera and had the same issues, but it's been two weeks and no issues at all with Firefox.
[Nexus 4 Q&A, Help & Troubleshooting] dsbnz:
I'm more convinced its just faulty hardware. I've had my new one for 5 full months now (google replaced it via RMA), and it's run perfectly.
[Nexus 4 Q&A, Help & Troubleshooting] FormerSlacker:
I've been able to reproduce the bug on my wife's N4 as well, not to mention some have had a logic board replacement and still experience it.
[Nexus 4 Q&A, Help & Troubleshooting] dsbnz:
Write the steps you used to reproduce it, and will try on mine, im curious to see what happens :)
[Nexus 4 Q&A, Help & Troubleshooting] FormerSlacker:
Well, not sure if it affects all revisions but I used the method here:

https://code.google.com/p/android/issues/detail?id=52926#c55

On Google product forums others have metioned forbes.com and I'm guessing their videos cause the same, but I've been testing Firefox and avoiding Chrome/webview for the last couple of weeks so I can't confirm that.

EDIT: The Chrome Beta version I was using was 37.0.2062.39
[Nexus 4 Q&A, Help & Troubleshooting] dsbnz:
Doesn't do it on mine, waited 15 minutes (the article mentioned 5).

Followed the procedure to the letter, even let the video run longer after the ads.

???
[Nexus 4 Q&A, Help & Troubleshooting] FormerSlacker:
Not sure, must be some variation not accounted for. Are you on stock? Are you using a live wallpaper? Are you on WifI? Do you have a pattern lock set? Do you have your WiFi set to sleep? What launcher? There are so many variables.

I can only say on mine it reproduced it consistently with the said Chrome version, and the phone is rock solid, uptime in months, otherwise so I doubt it's hardware related.

Mine only gets SOD when viewing certain rare videos in Chrome, it never happened otherwise or just out of the blue. Maybe the latest revisions fixed it and it is hardware fault, who knows.

For sure there are more causes for the phone not waking from sleep, but this may be just one of them.
[Nexus 4 Q&A, Help & Troubleshooting] dsbnz:
All i know is im using same setup and configuration and apps as my original n4, at the best i can account for its the same as my original, except the bug.

On my original N4 I tried literally dozens of theories with no success. Even tried a handful of custom ROMs, same result, just wouldn't wake , happened up to 4/5 times a week, mostly at night.

I think a fair statement is this, if a device isn't functioning as it should, its not meeting the expectations of the consumer. No one would buy a new car and accept that it sometimes starts and sometimes doesn't, you just wouldn't live with it, nor would you invest a lot your own time to diagnose it. Point being, the consumer shouldn't have to jump through hoops and spend countless time to try and get their device to work as it should. This was more or less my question/statement to Google, they fully agreed, and responded with replacement, very quickly too.

I sincerely hope everyone finds a working solution, it would be interesting to find out exactly what the problem is, and has been for quite some time.
[Nexus 4 Q&A, Help & Troubleshooting] FormerSlacker:
Agreed.

Are you on stock?

For me it's never happened at night, it always happened after futzing with Chrome, and it rarely happened which is why I could never pinpoint what caused it.

Between this and the camera reboot bug I've been somewhat disappointed with the QA on the N4.
[Nexus 4 Q&A, Help & Troubleshooting] dsbnz:
Entirely stock, no modifications or unlocked bootloader.
[Nexus 4 Q&A, Help & Troubleshooting] gogYCH:
I have problem with my nexus 4. After ota upgrade to 4.4.4. freezing and reboots,reboot 4-5 timees and stuck on google logo. I unlock bootloader,rooted and instaled cwm recovery 6.0.4.7 an d hen instal Nexus 5 Experience - CM11 Based R8.6.1 ROM.

But,He continues to repeat the same errors. When stuck in boot i shutdown with power 1 min (red light on and red light of),then power on normal. And again same error,after 4-5 restart stuck in boot. I tryed instal factory 4,2 - 4.4.4. ,same error again.

I have log of kernel but i do not understand what's wrong and ask for help! Here is last log kernel,copy last_kmsg.http://textuploader.com/kbgv

Developers please help,I do not know is hardware fault or not?
[Nexus 4 Q&A, Help & Troubleshooting] FormerSlacker:
Interesting. I've been catching up on the Google bug thread and many people have subsequently confirmed the SOD by repeating those steps. I wonder what the missing link is.

Perhaps it only affects certain revisions.
[Nexus 4 Q&A, Help & Troubleshooting] rzvrazvan:
This is the way for me. My problem and my solution is in this thread.

Hopefully I'll with work for you to!
[Nexus 4 Q&A, Help & Troubleshooting] igguk1:
I had also Scanning off and having still the same problem, at the end I got tired of it and I RMA my old Nexus 4, the new one has been going strong without any ramdon shutdonws from the day it came more than 4 months by now. In my case I am convinced it was mostly a hardware problem.
[Nexus 4 Q&A, Help & Troubleshooting] rzvrazvan:
Yes I think there's a hardware problem.

Still having the issue, don't know what to do! To bad.
[Nexus 4 Q&A, Help & Troubleshooting] orangeyes:
Hello,

As other people mentioned this is definetely related with Wifi either hardware or software.

I hade my Nexus 4 for a year now and it suffers from this problem from the first day. I tried every solution that I could find online.

The problem occurs when Wifi is on and connected and the phone enters sleep mode.

The only workaround is to go to Wifi settings/Advanced and choose to keep wifi on only when plugged in. If you have data you can keep it on to take over when wifi is disconnected when the phone sleeps.

I have used this methos for 3 months and I did not have a single SOD. The previous week I decided to revert back to old setting and keep wifi always on. Guess what, after a day SOD again!
[Nexus 4 Q&A, Help & Troubleshooting] hiohokaybye:
Just started to have this problem today after installing 4.2.2... It's super annoying... Can't fix it.
[Nexus 4 Q&A, Help & Troubleshooting] ghalfacree:
Same experience here, with a Nexus 4 running Android 4.2.2 (installed via OTA update) from Google Play UK. Slept in this morning 'cos the alarm never went off!

My experience: got in at about half-midnight last night, plugged the Nexus 4 on to charge (third-party 1.5A 5V USB charger and Samsung micro-USB cable) and went to sleep. Woke up 45 minutes after the alarm was supposed to go off, tried to turn the Nexus 4 on: nothing. Pressed and held the power button for a bit, sprang back into life.

Interestingly, it had done something similar a while back - but during the day. Took a good few minutes of fiddling with the power button to switch it back on then, too.

Stock Android 4.2.2 install, handset unlocked and rooted with stock recovery.

The only other thing I've noticed: since upgrading to Android 4.2.2, BetterBatteryStats lists nothing in the 'Alarms' section - despite having full root permissions. Previously, the Alarms section of BBS worked absolutely fine.

It's a pretty serious flaw: I use my phone as my daily alarm, and if I can't trust it I may have to send it back and switch to another handset - something I'm already considering thanks to the terrible camera module.
[Nexus 4 Q&A, Help & Troubleshooting] algus:
Turned off again this time running latest paranoidandroid rom with 4.2.2 radio and bootloader. Will try to play with wifi settings, but if it is not the case (as posted somewhere above), then will revert back co clean stock state and see. By the way my nexus revision is 11 (latest?) as seen in bootloader. If it is a hardware issue then maybe it is related to specific revision.