[MOD][GUIDE][TUTORIAL] Remove Annoying Battery Full Notification

Status
Not open for further replies.

JoshBeach

Inactive Recognized Developer
Dec 19, 2007
4,692
31,810
0
Upstate NY
First of All... Credit Goes to @digiblur - I used his guide to make this work for the Note3. Original Thread is Here!

Please give thanks/credit if you use this in your ROM - Donations are also appreciated!


This mod will remove the full battery notification. I wanted to start this thread for a discussion with a few of the other dev's input on how they did this one as well. When I implemented this a while back users stated it made the background go black and the system status bar was missing after a factory reset. I found this odd due to this change being almost impossible to cause the issue but I backed the change out temporarily. I haven't had time to investigate further. What have your results been?

Decompile SystemUI.apk

Edit SystemUI/smali/com/android/systemui/power/PowerUI$1.smali

Search for notifyFullBatteryNotification
Code:
    iget-object v0, v0, Lcom/android/systemui/power/PowerUI$1;->this$0:Lcom/android/systemui/power/PowerUI;

    move-object/from16 v22, v0

[COLOR="Red"]    --invoke-virtual/range {v22 .. v22}, Lcom/android/systemui/power/PowerUI;->notifyFullBatteryNotification()V
[/COLOR]
    .line 462
    :cond_39e
    :goto_39e
    const/16 v22, 0x4
Search for notifyFullBatteryNotification - I don't believe this one is fully necessary as it only fires with the Locale has changed.

Code:
    .line 611
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/android/systemui/power/PowerUI$1;->this$0:Lcom/android/systemui/power/PowerUI;

    move-object/from16 v22, v0

[COLOR="red"]    --invoke-virtual/range {v22 .. v22}, Lcom/android/systemui/power/PowerUI;->notifyFullBatteryNotification()V
[/COLOR]
    .line 614
    :cond_824
    move-object/from16 v0, p0
I DONT PROVIDE FLASHABLES, AS MMY STUFF IS HEAVILY THEMED JELLYBOMB... THIS IS SIMPLY A GUIDE FOR DEVS, HENCE IN THE DEVELOPMENT SECTION! :)
 
Last edited:
Status
Not open for further replies.