Samsung Galaxy S5 turns on when fully charged and never turns off I just 'upgraded' from the Samsung Galaxy S4 to the S5. Both use similar Android 4.4.2 Touchwiz software, but the new one has some odd behavior. I set smart screen sleep (or timeout, how it's called) to on and put it to one minute. I do have the Developer Options revealed, but the "Stay awake" is not checked. 

I'll describe some situations:


Phone unplugged, unlocked -> Sleeps after 1 minute idle.
Phone unplugged, locked -> Sleeps after 1 minute (or even less) idle, no matter if I have notifications or no.
Phone plugged in, unlocked -> Sleeps after 1 minute idle.
Phone plugged in, locked, manually woken up (pressing some button) -> Sleeps after one minute.
Phone plugged in, locked, woken up by some notification -> Rings, displays the notification, and never sleeps until I press the lock / power button.


I tried to minimize the problem by minimizing the notifications I get while it sleeps: turned off WiFi, blocked messages, etc. But there is still one problem. I charge my phone overnight. Plug it in at evening (22:00), at about 1:00 (night) it finishes charging. The "Battery full" notification appears, and also the popup saying "Close the charging cover for water protection" fires up. And after that, the phone does not timeout. And when I wake up, the phone is very hot. I bet it's not OK. And also, from my knowledge, static images burn into OLED displays. I really don't wanna break my phone by charging it at night.

What I have tried:


Restoring and leaving developer mode off.
Resetting to factory, twice.
Tried letting it on silent with and without vibrate.
Tried putting some apps to block notifications.
Tried changing all the power, timeout and sensors options.


Nothing stops it from lighting up and never lighting down at night, and overheating itself. Any ideas?
I am answering my own question, because i somehow solved it. I downloaded the Battery Doctor app (the one featured by Clean Master) and created a scheduled profile for night that has timeout set to 5. Also enabled 'charging screensaver'. It's ok now. Battery doctor takes over the TouchWiz uselsss popups and notifications, and forces it to stand by after 5 secs. It's all OK now :). 

This is the app I am using: https://play.google.com/store/apps/details?id=com.ijinshan.kbatterydoctor_en&amp;hl=en