[MOD] Hide AM/PM in the status bar (FF02/ICS)

Search This thread

datajosh

Inactive Recognized Contributor
Nov 13, 2009
1,273
784
Greenville, SC
Thanks to theHOTNESS for the original mod on the AT&T Skyrocket; agat63 & ssconceptz for putting up with my PMs while I tested smali edits and sextape & sfhub for the awesome leaks!

After digging through the smali files from Samsung, they seem to have changed between 4.0.3 and 4.0.4 and there doesn't seem to be a quick edit to remove AM/PM. However, luckily for us the 4.0.3 modded smali works just fine on 4.0.4!

For devs:
Here's the Clock.smali you need:
http://d-h.st/iew

Drop it in com/android/systemui/statusbar/policy in the SystemUI.apk (or the classes.dex from System UI) and go!

For everyone else:
Here is a modified SystemUI.apk for stock, deodexed FF02 including this mod and nivron's 1X/3G mod:
http://d-h.st/LSv

Rename to SystemUI.apk and push to /system/app. I'll try to make a flashable ZIP later on, just not at my home PC to do it right now.

 

thefsfempire

Senior Member
Apr 26, 2010
515
87
Massachusetts
Thanks for this mod! Do you know if there is a way to remove the battery percentage? I tried using other battery icons but the percentage is not part of the icon it makes using other icons useless.
 

_dan

Senior Member
Nov 6, 2011
604
1,066
NJ
Thanks for this mod! Do you know if there is a way to remove the battery percentage? I tried using other battery icons but the percentage is not part of the icon it makes using other icons useless.

Settings-Display-Display Bat. Percent :p

I'm trying to move the battery percent. If anyone can point me in the right direction please hit me up!
 

tdunham

Inactive Recognized Contributor
Jun 21, 2008
13,686
36,465
TampaBay
You need to replace the Clock.smali file with the one in the OP... still works on FF18 and I can upload a modified SystemUI.apk for that one if needed.
I'm not liking all the changes the programmers made to the ICS xml and smali files either. I'm glad this workaround works too. ;)
 

MrDowntown12

Senior Member
May 22, 2010
516
187
OnePlus 7 Pro
Sony Xperia 1 III
So if I wanted to remove it without losing my themed status bar what where and what lines would I edit?

Because if I'm not mistaken, what you have in the op simply replaces what's already there so I would lose theming.
Sent from my SPH-D710 using XDA
 
Last edited:

tdunham

Inactive Recognized Contributor
Jun 21, 2008
13,686
36,465
TampaBay

Top Liked Posts

  • There are no posts matching your filters.
  • 7
    Thanks to theHOTNESS for the original mod on the AT&T Skyrocket; agat63 & ssconceptz for putting up with my PMs while I tested smali edits and sextape & sfhub for the awesome leaks!

    After digging through the smali files from Samsung, they seem to have changed between 4.0.3 and 4.0.4 and there doesn't seem to be a quick edit to remove AM/PM. However, luckily for us the 4.0.3 modded smali works just fine on 4.0.4!

    For devs:
    Here's the Clock.smali you need:
    http://d-h.st/iew

    Drop it in com/android/systemui/statusbar/policy in the SystemUI.apk (or the classes.dex from System UI) and go!

    For everyone else:
    Here is a modified SystemUI.apk for stock, deodexed FF02 including this mod and nivron's 1X/3G mod:
    http://d-h.st/LSv

    Rename to SystemUI.apk and push to /system/app. I'll try to make a flashable ZIP later on, just not at my home PC to do it right now.

    1
    Settings-Display-Display Bat. Percent :p

    I'm trying to move the battery percent. If anyone can point me in the right direction please hit me up!
    I imagine it's in SystemUI, maybe in /com/android/systemui/statusbar/policy/BatteryController.smali but I can't tell where exactly.
    1
    Can you tell us what lines of code were changed please?
    You need to replace the Clock.smali file with the one in the OP... still works on FF18 and I can upload a modified SystemUI.apk for that one if needed.