[MOD] No waking on charger connection

Mentalmuso

Recognized Developer
Mar 20, 2012
7,564
8,499
263
Austin
This is a quick little zip to flash in TWRP or Flashfire if you do not want your phone to wake when plugged into a charger. It also removes the system sound for charger connection. Download 1 is the mod, Download 1 1/2 is the same mod but with the charger sound still active, and Download 2 will reverse it back to stock.

Most of the work was already done by @tdunham with his smali edits, found here http://forum.xda-developers.com/showthread.php?t=2799050 . I just packaged it into a flashable zip.

Flash at your own risk, this was made and tested for SM-G920F but should work on all variants on 5.1.1


DOWNLOAD 1: No Wake on Charge Tool
DOWNLOAD 1 1/2: No Wake on Charge, Sound still active
DOWNLOAD 2: No Wake Reversal, back to stock
 
Last edited:

beanbean50

Senior Member
Jul 9, 2008
3,131
1,494
253
London
YES!
this has to be my all time favourite mod, used it 5 or 6 years ago (htc desire) but forgot about it ever since..

100% working on my G925f 5.1.1 carHDrom v.5.3

Many Thanks!

(I really can't understand the logic behind having your phone switch on when connecting to a charger and when disconnecting?)
 

cjensen25

Senior Member
Aug 18, 2007
123
14
0
I've found a little bug / annoyance with the edit. If you have any notifications, such as text messages etc. The phone will continue to wake (at least appears to be on wireless charging notifications).
@tdunham, I originally followed your smali edits for USB wake -( http://forum.xda-developers.com/show....php?t=2799050) any other edits you can suggest? Android L - Thanks

Just so you're both aware @daffie and @hans_olo
 
Last edited:

daffie

Senior Member
Sep 9, 2005
3,246
618
0
50
The Hague
I've found a little bug / annoyance with the edit. If you have any notifications, such as text messages etc. The phone will continue to wake (at least appears to be on wireless charging notifications).
@tdunham, I originally followed your smali edits for USB wake -( http://forum.xda-developers.com/show....php?t=2799050) any other edits you can suggest? Android L - Thanks

Just so you're both aware @daffie and @hans_olo
Cheers for the heads-up. I haven't encountered this (yet) though and I have had a lot of notifications today...seems fine?
 

daffie

Senior Member
Sep 9, 2005
3,246
618
0
50
The Hague
Are you charging wireless? Doesn't seem to happen when charging via USB
Yeah I do...did last night. Will have to check again maybe...so you're saying whenever your wirelessly charging and a notification is received, then the phone/screen will wake up and stay awake, screen doesn't turn off?
 

tdunham

Recognized Contributor
Jun 21, 2008
13,686
36,462
0
TampaBay
I've found a little bug / annoyance with the edit. If you have any notifications, such as text messages etc. The phone will continue to wake (at least appears to be on wireless charging notifications).
@tdunham, I originally followed your smali edits for USB wake -( http://forum.xda-developers.com/show....php?t=2799050) any other edits you can suggest? Android L - Thanks

Just so you're both aware @daffie and @hans_olo
Notifications waking the phone are completely different I think and not really sure if you want to disable them. People would be pretty upset if they missed a text msg or email notification that they really needed. ;)
We use blocking mode to prevent notifications from waking the phone. I have mine set for 10:00pm to 6:00am and is great for after hours if you keep the phone bedside.

I'm not sure if there is a global edit to prevent wakes on notifications. Technically, an incoming phone call could be considered a notification so if they were all disabled, I think that would be too.
I'm not sure the best way to go about it but I know you can disable notifications per app in the app manager, just uncheck the notifications checkbox.

---------- Post added at 01:21 PM ---------- Previous post was at 01:21 PM ----------

will this prevent screen waking once charge reaches 100%?
That is a different modification than this one.
 

cjensen25

Senior Member
Aug 18, 2007
123
14
0
Notifications waking the phone are completely different I think and not really sure if you want to disable them. People would be pretty upset if they missed a text msg or email notification that they really needed. ;)
We use blocking mode to prevent notifications from waking the phone. I have mine set for 10:00pm to 6:00am and is great for after hours if you keep the phone bedside.

I'm not sure if there is a global edit to prevent wakes on notifications. Technically, an incoming phone call could be considered a notification so if they were all disabled, I think that would be too.
I'm not sure the best way to go about it but I know you can disable notifications per app in the app manager, just uncheck the notifications checkbox.

---------- Post added at 01:21 PM ---------- Previous post was at 01:21 PM ----------



That is a different modification than this one.
Thanks for the reply @tdunham, the issue appears to be as follows.
No notifications
No notifications regarding the wireless charging / charging (doesn't wake screen). Notifications for apps still come through (does wake screen) (this is expected and want to keep)

When notifications are on lockscreen
If there are notifications waiting to be reviewed, for some reason the wake up on wireless charging is activated again - I.E "wireless charging paused", "wireless charging" wakes the screen (not desired)

My phone is currently at 96% on wireless charging (I know there is not really any point in charging past 90% as it takes so long, but it just sits in the cradle)
 

tdunham

Recognized Contributor
Jun 21, 2008
13,686
36,462
0
TampaBay
Thanks for the reply @tdunham, the issue appears to be as follows.
No notifications
No notifications regarding the wireless charging / charging (doesn't wake screen). Notifications for apps still come through (does wake screen) (this is expected and want to keep)

When notifications are on lockscreen
If there are notifications waiting to be reviewed, for some reason the wake up on wireless charging is activated again - I.E "wireless charging paused", "wireless charging" wakes the screen (not desired)

My phone is currently at 96% on wireless charging (I know there is not really any point in charging past 90% as it takes so long, but it just sits in the cradle)
I do have a wireless charger for my S5 so I'll see if it does the same for us. I don't use it that often so maybe I never noticed.
 

Mentalmuso

Recognized Developer
Mar 20, 2012
7,564
8,499
263
Austin
I just tested the waking on wireless charger while notifications are active, the screen doesn't wake for me while on the charger, but does wake when you take it off the charger. This is with a notification waiting.

It also has this behavior on a wireless charger even without a notification active.

Sent from my SM-G920F using Tapatalk
 

cjensen25

Senior Member
Aug 18, 2007
123
14
0
I just tested the waking on wireless charger while notifications are active, the screen doesn't wake for me while on the charger, but does wake when you take it off the charger. This is with a notification waiting.

It also has this behavior on a wireless charger even without a notification active.

Sent from my SM-G920F using Tapatalk
Just tested it again this end, exactly the same here.

Problem seems to be with the wireless charging, not sure about your charger but sometimes the dam thing stops and starts randomly (this in turn wakes the screen).
 

Mentalmuso

Recognized Developer
Mar 20, 2012
7,564
8,499
263
Austin
Just tested it again this end, exactly the same here.

Problem seems to be with the wireless charging, not sure about your charger but sometimes the dam thing stops and starts randomly (this in turn wakes the screen).
I have two wireless chargers, one I bought and one I made, both don't turn on and off like yours but I have experienced it when it's not quite positioned right on charger, you can see it alternate from charging to charging paused. This would wake it continually

Sent from my SM-G920F using Tapatalk