[DEV] [Testers Needed] Prevent Full Charge Notification (Stops 3am wake-up call =D)

Search This thread

pulser_g2

Admin Emeritus / Senior Recognized Developer
Nov 27, 2009
19,537
11,597
Update. This has been tested and found to work by people with the phone to test with...


So , as many of you found out, when you get a Galaxy S phone, you get this...

5FSRw.jpg


Alas, I have something to test. I'm not about much today, and I don't have a GS II, so it comes untested, and unwarranted. If this causes a large explosion near you, not my problem. Likewise (and somewhat more likely), if this causes it to wake you up constantly, or to not boot, then just push the old file back via ADB, or re-ODIN back to stock.

This should remove the annoying "OMFG OMFG guess what?", that your phone presents to you at approximately 3am each morning. It should then remain quiet, merely content that it is fully charged, without having to alert the universe to that fact.

So, if you wanna try it, fire away. Rename /system/app/SystemUI.apk and /system/app/SystemUI.odex to have the ".old" extension added on the end, and then copy in this new APK to that same folder. Then reboot your phone, and cross your fingers for good luck :) And if it all boots up OK, then you can try popping it back on the charger and see if the neighbourhood gets woken up now... :p

If it works, please post. If it doesn't, please post that too :) I don't usually release things without testing on my own phone first, but o2 seem to want to infuriate you guys with this noise while my order sits around somewhere in a pile.

Tl;dr?

Pop this into /system/app, rename the old ones, so you have backup. Reboot, see what happens and if the alert disappears. If not, use ADB shell to remove the new file and rename the old ones. I would suggest using adb to push the apk like so...

<remount filesystem etc>
adb shell
cd /system/app
mv SystemUI.apk SystemUI.apk.old
mv SystemUI.odex SystemUI.odex.old
exit
<back to the windows prompt now>
adb push SystemUI.apk /system/app/SystemUI.apk
<remount it read only, and reboot with fingers crossed>

Reverse the rename, and delete this NEW apk to undo.

The file is at this page so that if it causes trouble, someone else can pull the download while I'm not around
 
Last edited:

soraxd

Senior Member
Jun 23, 2010
1,407
746
cleveland
as soon as I renamed systemui.apk to the .old extension I started getting crazy FC popups, had to play with it a while just to rename it back to systemui.apk.. so I wasn't able to get far enough to install the modded version

note this was with root explorer, don't have access to a comp atm

Sent from my GT-I9100 using XDA App
 

pulser_g2

Admin Emeritus / Senior Recognized Developer
Nov 27, 2009
19,537
11,597
as soon as I renamed systemui.apk to the .old extension I started getting crazy FC popups, had to play with it a while just to rename it back to systemui.apk.. so I wasn't able to get far enough to install the modded version

note this was with root explorer, don't have access to a comp atm

Sent from my GT-I9100 using XDA App

Yeah, you will need to use ADB to push the file in I'm afraid. Forgot to mention that. SystemUI.apk is constantly called.
 

nickbarbs

Senior Member
Jul 20, 2010
334
37
London
haha just wanted to post appreciation for the awesome comic strip you put up there LOL

Although to be honest - it doesnt bother me at all both the vibration and the light, so meh.

But I can see how it would get annoying to some and I definitely appreciate the comic, because when it lights up during the day I always think i'm getting a phone call.
 

pulser_g2

Admin Emeritus / Senior Recognized Developer
Nov 27, 2009
19,537
11,597
haha just wanted to post appreciation for the awesome comic strip you put up there LOL

Although to be honest - it doesnt bother me at all both the vibration and the light, so meh.

But I can see how it would get annoying to some and I definitely appreciate the comic, because when it lights up during the day I always think i'm getting a phone call.

Haha not sure where it's from - someone sent me the link at some point.
 

pulser_g2

Admin Emeritus / Senior Recognized Developer
Nov 27, 2009
19,537
11,597
Does anyone know if it works then? :p

Yes it's a lovely comic strip, whoever made it, but given o2's fail quotient right now is in triple figures, I'm stuck relying on people testing these tweaks. I'm aiming to fix one of the failings of stock software each day though... But pretty hard without a phone to test on :(
 

AllGamer

Retired Forum Moderator
May 24, 2008
11,915
1,652
SGH-T989
AT&T Samsung Galaxy Note I717
:p LOL welcome to the SGS world

this issue is a well known issue since the old SGS i9000, this was like the very first [REQ] from people to turn off that infernal alert "i'm fully chaged" in middle of the night :D
 

otester

Senior Member
Jan 25, 2010
517
30
Really is! :p

I would test it, but I'm using the 'CRT Off' SystemUI.apk atm :/

Same position here except I am using one that makes signal icons go green on Google connect.

Tempted to delve into the code myself and get a more universal method of modifying different systemui apks.


Sent from my GT-I9100 using XDA Premium App
 

Uvaavu

Senior Member
Sep 13, 2006
139
32
Second circle of Hell
Tried this - appears to work - there was no audible notification that it reached 100% charge, no notification dropdown message and no popup either.

Going back to previous UI modified version of SystemUI.apk when I get home, but haven't had any problems with this one.
 

pulser_g2

Admin Emeritus / Senior Recognized Developer
Nov 27, 2009
19,537
11,597
Tried this - appears to work - there was no audible notification that it reached 100% charge, no notification dropdown message and no popup either.

Going back to previous UI modified version of SystemUI.apk when I get home, but haven't had any problems with this one.

Excellent thanks :) Seems it worked.
 

pulser_g2

Admin Emeritus / Senior Recognized Developer
Nov 27, 2009
19,537
11,597
Keep em coming, we'll get em tested! ;)

I was about to say I didn't feel like much more just now due to O2 UK, but I've changed my mind. As of tomorrow evening, I aim to start the "one fix per day" to fix something Samsung broke, regardless of their FAIL quotient...

But there is only one rule... And that's that nobody in this thread mentions O2 :p

I'm going to just forget about the idiots until the phone appears, and focus on fixing the niggles that Samsung did...

Also, to whoever PMd me for the details of this fix - I've not forgotten you, but I don't have the stuff handy for a day or so :( Sorry. I'll try and get the details to you at some point.
 
  • Like
Reactions: Ght10

Top Liked Posts

  • There are no posts matching your filters.
  • 15
    Update. This has been tested and found to work by people with the phone to test with...


    So , as many of you found out, when you get a Galaxy S phone, you get this...

    5FSRw.jpg


    Alas, I have something to test. I'm not about much today, and I don't have a GS II, so it comes untested, and unwarranted. If this causes a large explosion near you, not my problem. Likewise (and somewhat more likely), if this causes it to wake you up constantly, or to not boot, then just push the old file back via ADB, or re-ODIN back to stock.

    This should remove the annoying "OMFG OMFG guess what?", that your phone presents to you at approximately 3am each morning. It should then remain quiet, merely content that it is fully charged, without having to alert the universe to that fact.

    So, if you wanna try it, fire away. Rename /system/app/SystemUI.apk and /system/app/SystemUI.odex to have the ".old" extension added on the end, and then copy in this new APK to that same folder. Then reboot your phone, and cross your fingers for good luck :) And if it all boots up OK, then you can try popping it back on the charger and see if the neighbourhood gets woken up now... :p

    If it works, please post. If it doesn't, please post that too :) I don't usually release things without testing on my own phone first, but o2 seem to want to infuriate you guys with this noise while my order sits around somewhere in a pile.

    Tl;dr?

    Pop this into /system/app, rename the old ones, so you have backup. Reboot, see what happens and if the alert disappears. If not, use ADB shell to remove the new file and rename the old ones. I would suggest using adb to push the apk like so...

    <remount filesystem etc>
    adb shell
    cd /system/app
    mv SystemUI.apk SystemUI.apk.old
    mv SystemUI.odex SystemUI.odex.old
    exit
    <back to the windows prompt now>
    adb push SystemUI.apk /system/app/SystemUI.apk
    <remount it read only, and reboot with fingers crossed>

    Reverse the rename, and delete this NEW apk to undo.

    The file is at this page so that if it causes trouble, someone else can pull the download while I'm not around
    4
    Wrote a small tutorial on how to do the edit!

    1. Download Auto-Deodexer, http://forum.xda-developers.com/showthread.php?t=598026
    2. Extract Auto-Deodexer to a place without spaces in its path
    3. Copy /system/app/SystemUI.apk and system/app/SystemUI.odex to your sdcard using Root Explorer
    4. Copy /system/framework/ to your sdcard using Root Explorer
    5. Copy the framework folder from sdcard to the framework folder of Auto-Deodexer
    6. Copy SystemUI.apk and SystemUI.odex to the app folder of Auto-Deodexer
    7. Run deoall.bat (be sure that there are no spaces in the path to Deodexer)
    8. Extract classes.dex from deodexed_APK using 7-Zip
    9. Open a command prompt and navigate to the folder where you have extracted Auto-Deodexer
    10. Use the following command: java -jar baksmali-1.2.6.jar -o dexout/ classes.dex
    11. Open dexout/com/android/systemui/statusbar/policy/StatusBarPolicy.smali in your favorite editor
    12. Remove this line: "invoke-virtual {v0, v1, v2}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification; )V"
    13. Remove this line: "invoke-direct {p0, v0}, Lcom/android/systemui/statusbar/policy/StatusBarPolicy;->playTone(Landroid/net/Uri; )V"
    14. Remove this line: "invoke-direct {p0}, Lcom/android/systemui/statusbar/policy/StatusBarPolicy;->turnOnScreenWithForce()V"
    15. Use the following command: java -Xmx512M -jar smali-1.2.6.jar dexout/
    16. Rename out.dex to classes.dex
    17. Replace the classes.dex in the deodexed SystemUI.apk with the one you just created using 7-Zip
    18. Push the new deodexed SystemUI.apk to your phone (adb is preferred)
    19. Be sure that the permissions for the file are 644
    20. Delete SystemUI.odex using Root Explorer
    3
    Northern-Loop said:
    Thank you kind sir, last night was the 1st time it woke me up :(

    I have finished version 1 of the standalone app, but I think I am going to hold off releasing until version 2, which is in the works. It allows access to all the tweaks from one application, without the need to update the app...

    App needs root obviously.

    App tested on my hero today, and the device specific bits tested on an SGS2 in irc...

    Next fix is camera 15% battery issue :) Along with getting this application out :)
    3
    why not just delete the appropriate sound file in /system/media/audio/ui ?

    thats the way i did it. i get the notification but of course no sound. (btw thats the place where you can delete the cam sounds too..)
    2
    Some of these lines occur more than once, should all instances be removed or just certain line numbers?

    Only the instances in the addFullChargeNotification method. Method name is of the top of my head so may not be exactly the same ;)