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

InfX

Senior Member
May 1, 2008
885
216
73
Or, even better, here are my PowerUI.smali files before and after the change, so you can do a 3-way merge. In any case, the diffs are in the "notifyFullBatteryNotification" method, the "showLowBatteryWarning" method and the "showNotChargeDialog" method. Pretty obvious, isn't it ;)
 

Attachments

  • Like
Reactions: ilfavi

d8389

Senior Member
Feb 11, 2010
848
813
0
I prefer another mod, displaying first overheat message but not every minute.
in PowerUI$6.smali

# virtual methods
.method public run()V
.locals 1

return-void
.end method
 
  • Like
Reactions: InfX

ilfavi

Senior Member
Sep 23, 2012
99
9
0
Siena
Or, even better, here are my PowerUI.smali files before and after the change, so you can do a 3-way merge. In any case, the diffs are in the "notifyFullBatteryNotification" method, the "showLowBatteryWarning" method and the "showNotChargeDialog" method. Pretty obvious, isn't it ;)
Thank you very much! I'll try the merge first.
 

ilfavi

Senior Member
Sep 23, 2012
99
9
0
Siena
I decided to modify showLowBatteryWarning method only (the possibility of seeing the entire file helps a lot in the understanding of the mod). The recompiled package is oddly 400k smaller than the original one and this stopped me to put it back on the phone.
What am I doing wrong?
:confused:




:p
 

Attachments

Last edited:

InfX

Senior Member
May 1, 2008
885
216
73
Apktool did mess up on resources for me before. Not willing to deal with it, i just took the classes.dex out from the recompiled apk and placed it in the original one instead, uploading that one to the phone.

PS: ALWAYS back your ass up in any case
 

ilfavi

Senior Member
Sep 23, 2012
99
9
0
Siena
Apktool did mess up on resources for me before. Not willing to deal with it, i just took the classes.dex out from the recompiled apk and placed it in the original one instead, uploading that one to the phone.

PS: ALWAYS back your ass up in any case
Oh interesting... But where do I have to put classes.dex file? Maybe dalvik-cache?
 

InfX

Senior Member
May 1, 2008
885
216
73
can u help me im tried to decomplie my systemui.apk but its getting some errors can u mod for me
Are you sure the errors are not resources related? If thats the case, just leave the resources alone, you are only touching the code here. In any case, patched apk attached.
 

Attachments

droido123

Member
Oct 31, 2012
17
10
0
InfX - tried and failed to modify the apk file

Dear InfX -

I am a noob and trying to learn more about modifying the .apk file. I am deeply annoyed by this low battery warning pop up notification (yes, i have also already renamed the .ogg file) and would actually like to remove it entirely or set it to zero.
*
I see that other noobs have supplied you with their SystemUI.apk file and you have modified the PowerUI.smali patch. I have tried using a few different methods in each and failing. Since the OP Ed hasn't yet created a thread of i9305 models I am unsure if I am either not doing this right OR if this patch is only for i9300?
*
So, I was hoping you might kindly modify my SystemUI.apk file file so that the 15% low battery warning is either disabled or set to 2%. If you can then post the mod'd file I can then look into how the file was modded so I will know how to do it myself next time and won't need to waste experts time. I kinda of learn by comparing and contrasting file types and looking for the variances. So, if you could kindly look at mine, making sure your mod is suitable for my device (I have pasted the specs below) I would be deeply appreciative so I can crawl out of my noob hole into a little more knowledge.
*
You can PM too if you prefer it.
*
Thanks a bunch
*
Specifications:
Samsung Galaxy S3 LTE Hong Kong Version
Model number:GT-I9305
Android version: 4.1 .1
Baseband version: I9305ZHALI1
Kernel version
3.0.31-177985
Build number: JRO03C.I9305ZHALI7
 

Attachments

Last edited: