yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Themes and Apps] tkolev:
Hi all, there is a small app I wrote that will solve the problem with the Nexus 4 dying while connected to the charger overnight. It's completely free (no ads also) and can be downloaded from Google's Play Store. No ROOT required, works on completely stock phones. I tried it on my phone and haven't had a SoD for 5 nights (I used to have it almost every night). Also a colleague of mine used to suffer from this and the app solved his problem too.

The app basically puts a wakelock on the phone that will allow for the backlight to go off, so the screen doesn't age, but will prevent the CPU from sleeping while charging. Once external power is disconnected, the wakelock is released and so the app does NOT consume any battery (while in automatic mode).

So if you happen to have the same issue, feel free to try the app and save yourself the troubles of returning otherwise a perfectly good phone.

P.S. I have just uploaded the app, so if it's not yet visible for your country, please try again in a few hours.

Update: Now the application checks if the power is connected when the device is powered on, because otherwise the wakelock was not acquired when powering on with charger connected. Unfortunately this requires a new permission ("RECEIVE_BOOT_COMPLETED") and the application to be opened after updating for the receiver to be registered by the system. Also I added a notification in the status bar while the application is running. You have to enable it in the settings if you want it displayed.
[Nexus 4 Themes and Apps] gatebil:
will test it an report back
[Nexus 4 Themes and Apps] FormerSlacker:
I don't understand why anybody suffering this wouldn't just RMA their phones?
[Nexus 4 Themes and Apps] wilsonlam97:
+1. It's a hardware issue.

---------- Post added at 06:25 PM ---------- Previous post was at 06:23 PM ----------

Regardless your are AWESOME. Thanks for doing something about it rather than whining and complaining for a resolution from fellow members.
[Nexus 4 Themes and Apps] simms22:
its NOT a hardware issue, software related. was VERY common on android 4.1.2, especially on the galaxy nexus. it happened to all the different nexus, nut the gnex suffered the most. 4.2.2 fixed the issue, and google did say it was a real issue. it still happens, but much rarer than before. btw, there are a few apps that bring it on for the nexus 4, one known app to bring on sod is ezekeels experience app. chew on that.
[Nexus 4 Themes and Apps] tkolev:
Because some of us that live in countries where Google doesn't sell devices and because it's easier to solve it rather than returning the device.
[Nexus 4 Themes and Apps] Underground_XI:
So how does this app prevent sod?
[Nexus 4 Themes and Apps] simms22:
it creates a wakelock preventing the device from (deep)sleeping. its not really a solution, is just a work around for the problem.
[Nexus 4 Themes and Apps] tkolev:
Exactly. But it listens for charger connected / disconnected to acquire / release the wakelock and thus consumes energy only while the device is connected to an external power source (you can see it starting and stopping in the manage applications settings menu). True, that's not a "solution" (that's Google's job), but it doesn't interfere with the normal device operation and does not require any user interaction other than enabling it on install, so until there is a real solution it's the best I can come up with :).
[Nexus 4 Themes and Apps] Underground_XI:
That's what i thought. Fine then, as long as the wakelocks do not continue when phone is not being charged.
[Nexus 4 Themes and Apps] ImWarped:
Way to show your technical prowess :laugh: Anyone that RMA's a phone for this issue ought to be shot in the knees, and given a Galaxy S1 to replace their Nexus, as they don't deserve to own one.

It's a software issue... on a DEVELOPER PHONE... or did everyone miss the fact that the Nexus line of products is supposed to be for devs' to buy and use to test new software/hardware configurations on.

edit---> Oh, and +1 to OP, good job creating a workaround!
[Nexus 4 Themes and Apps] mav.erik:
I have the same problem.... I test this app and hope functionally .... I

Inviato dal mio Nexus 4 con Tapatalk 2
[Nexus 4 Themes and Apps] billydroid:
Definitely software. My problems started happening after 4.2.2 updates. I wish I paid attention to what kernel version it began on.

Anyway, I haven't had an issue since using this app. So about two days.

Thanks a million tkolev! I can use this as my alarm again.
[Nexus 4 Themes and Apps] tkolev:
I'm glad it helps you too!

May I ask anyone that tries it to go back to the Play Store in a few days and rate the app to increase it's visibility and possibly help others to stumble upon it while searching for a solution. Thanks!
[Nexus 4 Themes and Apps] billydroid:
Sure thing, its the least one could do .

Also could you explain, to the best of your knowledge, why the sod's occur when in sleep mode?
[Nexus 4 Themes and Apps] tkolev:
I have no idea. My first thought was to create a Daydream as those seemed to help too, but I could not turn the display off (you can only control the brightness but that would still keep the backlight on). The strange thing is that while "dead" something in the system is still working because an application that shows the battery percentage by changing the color of the notification LED was still working. Even after I had unplugged the phone. I know that it might sound like a heresy here, but I don't want to use custom ROMs (I use my Nexus for development and keeping it stock for compatibility is a must), so trying different kernels and ROMs was a no-go.
[Nexus 4 Themes and Apps] billydroid:
So this was happening to you while completely stock, minus root?

Does this always happen you? Even while on 4.2 .1?
[Nexus 4 Themes and Apps] tkolev:
I only recently got my hands on the Nexus 4. I live in Bulgaria and Google does not sell devices here, so I had to either wait for any of my colleagues to go to the US on a business trip while the device was in stock or pay more than 150% to buy one from a local reseller. I've been on 4.2.2 since day one. No custom ROMs, no root, not even unlocked boot loader.
[Nexus 4 Themes and Apps] billydroid:
I see. The reason I'm asking is it didn't start happening to me until 4.2.2, but not sure what kernel revision it started on.

Just trying to establish a timeline.

Still the app is a life saver
[Nexus 4 Themes and Apps] Geronimo51:
With all due respect (honestly) and not sarcastically- if this was the case wouldn't the phone come rooted already and in developer mode? I am pretty sure it is being marketed as the flagship "pure google" phone and not only for developers. That said it is easily understandable as to why this is a frustrating issue.

To the OP: :D:D:D:D A million thanks! I hope this app does the trick- regardless thanks for your efforts and making this community what it is.
[Nexus 4 Themes and Apps] eronfaure:
You are a godsend. This has been a major issue for me because I rely on my phone as an alarm and was so close to returning it.

Does your app keep the phone from going into deep sleep when unplugged?
[Nexus 4 Themes and Apps] zedbg:
Its in the OP
[Nexus 4 Themes and Apps] eronfaure:
Sorry for being an idiot and not being clear.

I'm just concerned that if the phone doesn't go into deep sleep then we'd be burning through battery quicker, which would make an already poor battery even poorer.

Does this app burn through the battery?
[Nexus 4 Themes and Apps] simms22:
does it matter that the phone isnt going to deep sleep while on the charger?
[Nexus 4 Themes and Apps] tkolev:
No it does not (provided if you don't switch the manual mode on). You can see it working in Settings -> Apps and go to running. There you can see the app appearing when the charger is plugged in and disappearing when unplugged.

You can also install current widget and check the battery drain when unplugged and sleeping.
[Nexus 4 Themes and Apps] eronfaure:
Thanks so much for this app! Now I can finally use the alarm without being petrified.
[Nexus 4 Themes and Apps] tkolev:
Application updated. Please check the OP.
[Nexus 4 Themes and Apps] ImWarped:
Well said,

But no, an inexpensive full-featured handset for testing is exactly what it was made for. Most software testing is done on a root-free system, if your app doesn't require root, your user base is the entire Android community, not just the tweaking masses like us.

Also, they make no effort to hide how to unlock your bootloader and allow root, and the simple fact that it only takes 1 keyboard command, and zero "exploits". The Nexus line doesn't require "hacking" to get to the nitty gritty, it simply requires a want to do it. I love the whole Nexus line, and applaud people that find fixes to common problems and post them in threads like this, I break things far more than I fix them hehe!:good:
[Nexus 4 Themes and Apps] mav.erik:
When i sue battery safe resolve completly death while charging :D:D:D

Inviato dal mio Nexus 4 con Tapatalk 2
[Nexus 4 Themes and Apps] Linsanity:
This problem only happened to me after flashing pacman ROM.is it the ROMs fault or software on the phone? I woke up late today because of this problem lol
[Nexus 4 Themes and Apps] tkolev:
It happens on stock ROM with me. Someone here said that it started happening on the GNex too after update so I guess it has to do with software and hardware, because it does not happen with everyone's phone.
[Nexus 4 Themes and Apps] Dungeon47:
You can also enable daydream clock and let that run if you want. At least that works for me.
[Nexus 4 Themes and Apps] tkolev:
Daydreams keep the back light of the display turned on, which will make it age faster.
[Nexus 4 Themes and Apps] Linsanity:
Should I rma this? Or no?
[Nexus 4 Themes and Apps] MildewMan:
Sorry if I missed this, but does the app start itself up after rebooting, or will I need to remember to start it up each time?
[Nexus 4 Themes and Apps] noodles2224:
I RMA it already before.. In January and I still get the same shut off. Sucks, while weekend I've been getting it while charging and I just installed this app last night but when I got home from work this morning. My phone shut off with out it being plugged in.. :/ piss me off and then I decided to get the new nexus when it comes out. :( was going to keep it for a long time since it does everything I need but this is getting annoying.. I only had this problem with g2x and yeah, it's by LG too :/

Sent from my Nexus 4
[Nexus 4 Themes and Apps] tkolev:
All you need to do is start it once after installing and check the 'enable' checkbox. The update fixed a case when the phone was booted with the charger plugged in and the app failed to start. You can see it running in the notification bar while charging.
[Nexus 4 Themes and Apps] wy007:
Thanks for the fix OP. I'm having the same problem. Btw, there is a stay awake option in developer options. Does this do the same trick as your app?

Also, my phone sometimes freezes (black screen, won't turn on, notification light still works) while NOT charging. Is there a known fix for that? Thanks!
[Nexus 4 Themes and Apps] alfonzo1955:
This also happens to me, it freezes occationally even when not charging. Not nearly as often as when it is charging though.
[Nexus 4 Themes and Apps] tkolev:
Stay awake in Dev options will prevent your screen from turning off. It should prevent sleep of death but will wear the screen out.

As for the second part I don't know if there is a solution. The one that I'm using is not appropriate because it will deplete your battery. You can check manual control in the app settings and see if it will use that much battery and if it will prevent the sleep of death at all - it might be caused by a third party app.
[Nexus 4 Themes and Apps] rosends:
I'm not so smart

So I have had my Galaxy for about a year. I haven't rooted it. Honestly, I'm not even fully sure what that means or why I would want to do it. I plug my phone in before bed and I wake up and unplug it and start checking messages. That's what I do. I also make phone calls on it and sometimes play solitaire or browse work websites. I'm not a very exciting person.

This morning, the little white indicator light was flashing but when I pushed the button on the right side, nothing. I held it down. Nothing. I freaked out. Strangely, that also had no effect on my phone (though I think I heard my computer laugh). I pulled the battery. Nothing. Plugged it in to a different outlet. Nothing. Tried connecting the USB to the computer to see if the computer would register the phone. Nothing. More freak out. I looked online and found 2 facts. One is that maybe (just maybe) I should pull the battery and leave it out for a few minutes. Two, there is this thing called "SOD". I thought I was done with xSOD acronyms when I stopped using Windows 98.

The extended battery pull worked but now I'm worried. So I looked more online and found this thread. I am running 4.2.2, kernel 3.0.31-g9f818de and there are more numbers and letters that I don't have a clue about. Its a phone.

Should I, as the run of the mill idiot, just install the app linked from the OP and assume I can go back to blissful ignorance. Because that's what I crave: blissful, blissful ignorance.

TIA
[Nexus 4 Themes and Apps] Daiskei:
Hey guys,

I've got a N4 coming in a few days and I was just wondering... Does this happen on all devices? I use my phone as an alarm too and am now getting kind of frightened. XD
[Nexus 4 Themes and Apps] randomnoob83:
No
[Nexus 4 Themes and Apps] tkolev:
Well, if it's really sleep of death it should help.
[Nexus 4 Themes and Apps] mharis05:
Thank God there is someone who understands the problems of people in third world countries :(
[Nexus 4 Themes and Apps] frankfurts:
Hi, I get the sleep of death on my nexus and was thinking about using this app instead of waiting weeks for a replacement. Would it bee bad to leave the CPU buzzing at 300mhz while charging though?
[Nexus 4 Themes and Apps] tkolev:
It doesn't matter what frequency you set for the CPU while charging. The app only puts a wake lock on it.
[Nexus 4 Themes and Apps] 1slow4G:
Now im terrified, should of seen these threads before ordering. I wonder if all new devices from certain date till now have all these issues???
[Nexus 4 Themes and Apps] buru898:
I've never gotten a sleep of death with my nexus.
[Nexus 4 Themes and Apps] 1slow4G:
nice to know. Hope and pray mine doesnt arrive as a lemon. Ive read so much negative problems with it. Thinking about dodging the bullet and returning when it arrives, but i really love the look of it!
[Nexus 4 Themes and Apps] buru898:
You'll love it, this device is amazing. Hopefully yours will be OK, I think you're more likely to get a fully working one ;p
[Nexus 4 Themes and Apps] 1slow4G:
thanks! lol... we'll findout in a few days.
[Nexus 4 Themes and Apps] rcampbellnc:
Power Down and no power up

Thanks for this app - I've loaded and will test on my next battery cycle (I run the phone until auto-shutdown due to battery low). I just did my second (in about 2 weeks) complete drain on my phone - letting it run until it shutsdown due to low battery. Very strange problem, it would not charge! Tried multiple cables and charging sources (all known to work, all with outputs 1.2A or greater), not charging. Then, just by chance, I held the power button down, got a red flash of the LED and it started charging again. I'm hoping this app will make that issue go away -- somehow, it seems the phone was still in some sort of "running" state and perhaps my holding the power button caused it to really power off? Don't know - I'll do this again next week and report my results.
[Nexus 4 Themes and Apps] dmagician:
Wonder if...

I'm having this same issue on my other device (as seen in my signature) too...

Maybe it'll help this on device too...

Going to check it out. :fingers-crossed:

Thanks!
[Nexus 4 Themes and Apps] matus201:
Too bad I haven't seen this. I started a new thread about the same issue here, basically I have these problems only when I have a Pattern Screen Lock. When I have the classic "slide to unlock", problems disappear. In addition, I get these SODs even when phone is not charging.

Can people with the problem report their lock screen security?
[Nexus 4 Themes and Apps] jspitzer221:
I have noticed that while on a wireless charger, this app runs for a minute or so, then the notification icon disappears and I assume the app stops running. Is there some fix for this, or do I just have to activate it manually?
[Nexus 4 Themes and Apps] tkolev:
I have published an update which should solve this issue. Please test it once it's available in the Play Store (should be version 1.5.2) and report if the problem still persist. I don't have the wireless charger, so I can't test it myself.
[Nexus 4 Themes and Apps] jspitzer221:
I put my phone on the charger about 20 minutes ago and the app is still running. Thanks a lot for updating it and building the app. I used it in manual mode last night and this morning was the first time in almost a week where I didn't wake up to a dead phone.
[Nexus 4 Themes and Apps] jspitzer221:
Something is still causing my phone to go into this sleep of death mode every now and then. It isn't consistent like it used to be, just seemingly random.
[Nexus 4 Themes and Apps] tkolev:
Most likely the application is getting killed. Are you using task killers or battery life "optimizers"?
[Nexus 4 Themes and Apps] richport29:
Is there any apps known to cause SOD?
[Nexus 4 Themes and Apps] WHOARETHROLL:
Hello! I use custom Chroma 6.0.1 in my Nexus 4. Sleep of death tormented by phone since the time of 4.4.4, after upgrading to 5.0, he began to pursue the device very often, and I downloaded the app SOD KILLER, which helped and gave the phone to stay awake. which helped and gave the phone to stay awake.

Now was the killer and even sodas do not help in the transition to a marshmallow sodas. the phone is switched off. I overslept several times because of this work.
[Sony Xperia S, Acro S, Ion] Rokus:
So i soft bricked my xperia s today and decided to flash stock ics. All went good and after flash i updated it to .55. Now i can't connect to 3g and no data transfer. It just doesn't work. Any 1 got suggestions or ideas?

EDIT: i also have the slide tab n grid installed? Maybe that's the cause of the problem?
[Sony Xperia S, Acro S, Ion] SaZh047:
3g

Hi! I think you have to go in your settings then in mobile data and have to enter information from your carrier or something like that...

Sorry i'm not very accurate but, i'm running a custom ROM !

Hope it helps!
[MDA, XDA, 1010 Software Upgrading] newcastlecolin:
:?:how do i unlock my xda 1,rom version is 3.12.07 eng

radio version is 4.06 ?
[MDA, XDA, 1010 Software Upgrading] Peter Poelman:
See the brand-new unlocking wizard
[AT&T Samsung Galaxy Note I717] rjanw01:
Have the Samsung Note i717 for about a month now. Previously tethering worked great and I could actually access the option. Now that I have updated my phone to 4.0.4 last week I can't do anything with tethering. Once I click on the menu, it hangs up on the screen for 5-10 seconds before going to an all black screen for 10 more seconds. then I get the error message "unfortunately settings has stopped working". AT&T could do nothing but tell me to revert back to the previous software version. I have drained the battery numerous times, removed, restored from previous backup....nothing has worked

Any and all help is welcomed.
[Android Q&A, Help & Troubleshooting] aphextwin:
So I have learned that as of recently it is illegal to unlock my Verizon Galaxy S3. Well, too late. I followed this tutorial and installed the AxisM ROM.

Well about the same time I found this out I decided I was going to sell my phone on craigslist. I don't want to do anything illegal so I would like to restore it back to factory default before I sell it. Personally I never had any use for an unlock, I only wanted root. I looked around for information about how to un-unlock a phone and couldn't find anything on xda or google. Please don't just redirect me to some thread about how to flash to stock JellyBean 4.1.1 or something without explaining how / why your suggested method will remove unlock-carrier function. I am not very experienced with the details of all these modifications. Modding phones isn't really my hobby, I just blindly / drunkenly followed a tutorial. That is why I ask for an explanation - but if it turns out that merely flashing back to a stock JellyBean would remove the illegal function, that's great. Also, please don't bother trolling me with your legal advice / opinions, just keep it to yourself, I won't even read it.

tl;dr

How can I un-unlock my phone?
[Samsung Epic 4G Touch] mewikime:
I'm trying to update my old phone which is now my sister in law's. It's stock unrooted ICS FL24.

When I try to use Kies to update, it gets through the first step of dowlnoading firmware upgrade components, but when it reaches 100% the window hangs for 30 seconds or so and then disappears and Kies closes.

It's the most recent version of Kies, I even uninstalled and reinstalled it, but it's still doing it. Has anyone come across this and a way to fix it? My sister in law wants the update but I can't seem to do it for her.
[Samsung Epic 4G Touch] SASQUATCH:
Well for it to work you need to be on stock fl24 your phone can't be rooted. So dl a stock fl24 one click then try the update.

Sent from my SPH-D710 using Xparent Skyblue Tapatalk 2
[Samsung Epic 4G Touch] mewikime:
Oops, my fault, I did mean unrooted. I've edited the OP to reflect that. Anyway, I'm going to try it on a different computer
[Samsung Epic 4G Touch] Luda305:
I'm having the same problem on my girlfriends stock unrooted phone
[Samsung Epic 4G Touch] SASQUATCH:
The only thing I can think of is going to the forum I posted and somebody should be able to help.

http://xdaforums.com/showthread.php?p=39692230

Sent from my SPH-D710 using Xparent Skyblue Tapatalk 2
[Samsung Epic 4G Touch] Kherr:
Use that link to download an Odin One-Click tool that will make your life easy. Whether you're looking to root her phone or keep it un-rooted, there is a tool for you on that page. Download whichever one of the tools you need whether or not you need to root her phone or keep it un-rooted. RESTORE versions will WIPE all user data from the phone. NODATA versions will NOT wipe user data from the phone. After downloading the one-click tool you need, simply turn off her phone and once it's fully powered down, press and hold volume down and the power key at the same time until you see the Samsung Galaxy S2 logo. You can let go now. It will boot into something called "Download mode" and that's what we need.

I'm going to assume you've already installed the samsung drivers since you're using KIES. If not, get them from here and install.

Make sure the phone is FULLY CHARGED at this point.

After the drivers are installed, launch the Odin One-Click program and wait for it to appear. Once it's loaded go ahead and connect your phone to the computer. Make sure your phone is still in download mode before you connect to the computer! The top left box in that Odin window should light up with a yellow box with "0:COM#" in it, once that's lighted up, go ahead and click start at the bottom.

If you do not see a yellow "0:COM#" light up in the top left set of boxes, you may need to run the ODIN One-Click as an administrator.

DO NOT DISCONNECT YOUR PHONE AND DO NOT TURN IT OFF WHILE ODIN IS WORKING! Once it's done, it will change the bigger box on the left of the "0:COM#" to a green box with the word "PASS!" in it. Once this happens, the phone will reboot on its own. Once the phone reboots, it's safe to disconnect from the computer.

And that's it. You've skipped trying to use the crappy KIES software and you've successfully installed GB27 (JB 4.1.2)! I'd say it's time to celebrate! :D

Hope this helps you. Cheers! :beer:

(alternatively you could just follow the instructions from the page where you download your ODIN tool from... Thanks to "Admin" from that website for the post, garwynn from here for leading me there, and QBKing77 for instructions that taught me how to do this back when ICS just released for this phone. :p)