[MOD] Disable low battery, battery temperature pop-ups and full battery notification

clausg

Senior Member
Jul 8, 2006
107
17
48
Singapore
InfX, you should make your thread far more popular. I think every developer should implement this in their custom roms by default.
It was so annoying, having a low battery and even get it drained more by screen on and warnings... now it is as it should be, thanks a lot!

Sent from my GT-N7000 using xda app-developers app
 

naeg1977

Member
Dec 3, 2012
26
1
0
I also tried this patch in my i 9305 but it doesnt work .
In i 9300 it works perfectly.
I transfer the new patch in my device (i 9305) as I did in my 9300 but it doesnt do nothing :(
.
 

piele20

Member
Apr 8, 2009
35
3
0
Venlo
I don't have the statusbar anymore. Don't now why because I have copied the original systemUI.apk back. I think that I have install the Rom again to get it back. Or has someone a suggestion?

Sent from my HTC Sensation XL with Beats Audio X315e using xda premium
 

naeg1977

Member
Dec 3, 2012
26
1
0
I don't have the statusbar anymore. Don't now why because I have copied the original systemUI.apk back. I think that I have install the Rom again to get it back. Or has someone a suggestion?

Sent from my HTC Sensation XL with Beats Audio X315e using xda premium
if you have put the original back ,then just reboot and your status bar will apear again.
 

piele20

Member
Apr 8, 2009
35
3
0
Venlo
if you have put the original back ,then just reboot and your status bar will apear again.
Didn't worked. I have tried many times. Even copied the original systemUi.apk from the Rom zip and rebooted and still didn't worked.

Sent from my HTC Sensation XL with Beats Audio X315e using xda premium

---------- Post added at 01:19 PM ---------- Previous post was at 01:15 PM ----------

if you have put the original back ,then just reboot and your status bar will apear again.
I can't install the .apk right? I just have to put it back in the right folder?

Sent from my HTC Sensation XL with Beats Audio X315e using xda premium
 

InfX

Senior Member
May 1, 2008
885
216
73
Guys, if the script errors out in a way piele20 describes (unable to find something that is needed for the patch) the apk is UNTOUCHED. So you've been practically pushing the same apk back. So, any permissions issues? Compare the permissions on the apk you've pushed with the other ones and make sure they are set the same way.

EDIT: I have yet to look at the attached system.apk, was the full battery notification ever there? As far as i know, that annoyance originates from Samsung's stock ROMs, not CM or ASOP. Same probably goes for the overheat prompt. That's my best guess on why the patch can't find those.
 
Last edited:

InfX

Senior Member
May 1, 2008
885
216
73
I also tried this patch in my i 9305 but it doesnt work .
In i 9300 it works perfectly.
I transfer the new patch in my device (i 9305) as I did in my 9300 but it doesnt do nothing :(
.
TBH, i have no slightest idea why/how can it possibly be. Did the patching succeed? The apk is only modified when the patch manages to find out HOW to modify it, in case of errors it remains untouched.
 

Lost.soul

Senior Member
Dec 19, 2011
125
33
28
Didn't worked. I have tried many times. Even copied the original systemUi.apk from the Rom zip and rebooted and still didn't worked.

Sent from my HTC Sensation XL with Beats Audio X315e using xda premium

---------- Post added at 01:19 PM ---------- Previous post was at 01:15 PM ----------



I can't install the .apk right? I just have to put it back in the right folder?

Sent from my HTC Sensation XL with Beats Audio X315e using xda premium
This is definitely a permission issue, just go to recovery and fix permissions
 

naeg1977

Member
Dec 3, 2012
26
1
0
TBH, i have no slightest idea why/how can it possibly be. Did the patching succeed? The apk is only modified when the patch manages to find out HOW to modify it, in case of errors it remains untouched.
hi :)
Yes the patch succeeded without any errors ..Everything worked ok
I transfered the new SystemUI back ,but it has the same behaviour .:(

I did the same thing with my i9300 and it works perfectly :)
I cant find a solution for my i9305
 

InfX

Senior Member
May 1, 2008
885
216
73
Reinstall a ROM because of some minor issue with a single file... oh well :(
BTW, i am not sure what the CWM permissions reset does, what i've meant is to set the permissions to this specific file manually.

About i9305, i really have no idea. The patch finding everything it needs to work, yet replacing the apk makes no difference? This doesn't make any sense! I am starting to think... maybe you've deodexed the apk yourself and actually forgot to delete the odex file? Again, i really don't know.
 

naeg1977

Member
Dec 3, 2012
26
1
0
Reinstall a ROM because of some minor issue with a single file... oh well :(
BTW, i am not sure what the CWM permissions reset does, what i've meant is to set the permissions to this specific file manually.

About i9305, i really have no idea. The patch finding everything it needs to work, yet replacing the apk makes no difference? This doesn't make any sense! I am starting to think... maybe you've deodexed the apk yourself and actually forgot to delete the odex file? Again, i really don't know.
unforunatelly i cant find a solution either :(
i attached my systemui from my i9305 ,if you can and have time please give it a try too .
Thanks :)
 

Attachments

InfX

Senior Member
May 1, 2008
885
216
73
unforunatelly i cant find a solution either :(
i attached my systemui from my i9305 ,if you can and have time please give it a try too .
Thanks :)
Took a look at it's showLowBatteryWarning() method, it's flow looks exactly like the one i've seen before, and it seems to be patched correctly by the auto patcher script, so i really don't know what's the deal here. Try again and make sure you don't do something wrong, something trivial, such as pushing the file to a wrong location, pushing the wrong file, stuff like that.
 

InfX

Senior Member
May 1, 2008
885
216
73
I'm on Sxl with RunElite_Sense4.1_V1.5_Beta ROM.
Your one is a little bit different compared to the ones i am used to see. I can modify the patch to just bypass the entire "showLowBatteryWarning" method to try & make it work on more ROM variations. I can't see the "battery full, please disconnect the charger" in your apk, though, nor i can see the temperature warnings, too. Wanna try, just for the low battery notifications?

EDIT: I can't see this harming anyone in any case, so, the first post has been updated now. Try it if you want.
 
Last edited:

androidfreak007

Senior Member
Nov 11, 2011
265
90
58
127.0.0.1
Finally, the annoying pop ups are gone. The popups are now finally gone as well as the alerts
My sgs3 is running with WanamLite v5.2 and Yanks Kernel v2.8eT
After pushing the patched SystemUI.apk I had to go into RecoveryMode to fix permission. Reboot. Done.
Thank you for this fantastic mod.
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone