New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
theHOTNESS
Old
(Last edited by theHOTNESS; 10th April 2012 at 02:02 AM.)
#1  
Member - OP
Thanks Meter 98
Posts: 66
Join Date: Feb 2012
Location: Philadelphia

 
DONATE TO ME
Default [MOD] no am/pm on ics status bar for the devs

The rom devs will know what this is ....

did this for skyrocket devs but works for your ics ports as well.
made this thread over here so i can stop getting pms from this side on howtos...

info http://forum.xda-developers.com/show....php?t=1591030

Remove AM/PM

1. Decompile SystemUI.apk
2. Goto: /systemui.apk /smali/com/android/systemui/statusbar/policy
3. edit Clock.smali
4. the line you want is typically 36 (its the static constructor)
5. change "const/4 v0, 0x0" to "const/4 v0, 0x2"
6. yup thats right, 1 character edit!
7. save and recompile

Color for Clock (if you havnt already)
1. Decompile SystemUI.apk
2. Goto: /res/values/
3. edit styles.xml
4. the style you want is "<style name="TextAppearance.StatusBar.Clock" parent="@android:style/TextAppearance.StatusBar.Icon">"
5. change "<item name="android:textColor">#ff33b5e5</item>" under this style (this is android blue, change at will)
6. save and recompile


enjoy!!
The Following 9 Users Say Thank You to theHOTNESS For This Useful Post: [ Click to Expand ]
 
yaldak
Old
#2  
yaldak's Avatar
Senior Member
Thanks Meter 1440
Posts: 319
Join Date: Oct 2006
Location: Chicago, IL

 
DONATE TO ME
Will be put to use. Thanks.
 
agat63
Old
#3  
agat63's Avatar
Recognized Contributor
Thanks Meter 7334
Posts: 3,685
Join Date: Sep 2010
Location: Las Vegas, NV

 
DONATE TO ME
Quote:
Originally Posted by theHOTNESS View Post
The rom devs will know what this is ....

did this for skyrocket devs but works for your ics ports as well.
made this thread over here so i can stop getting pms from this side on howtos...

info http://forum.xda-developers.com/show....php?t=1591030

Remove AM/PM

1. Decompile SystemUI.apk
2. Goto: /systemui.apk /smali/com/android/systemui/statusbar/policy
3. edit Clock.smali
4. the line you want is typically 36 (its the static constructor)
5. change "const/4 v0, 0x0" to "const/4 v0, 0x2"
6. yup thats right, 1 character edit!
7. save and recompile

Color for Clock (if you havnt already)
1. Decompile SystemUI.apk
2. Goto: /res/values/
3. edit styles.xml
4. the style you want is "<style name="TextAppearance.StatusBar.Clock" parent="@android:style/TextAppearance.StatusBar.Icon">"
5. change "<item name="android:textColor">#ff33b5e5</item>" under this style (this is android blue, change at will)
6. save and recompile


enjoy!!
Tried it on stock FD10 ICS4.0.3 build for E4GT.
Didn't work unfortunately.
I found 3 instances of const/4 v0, 0x0 and changing any of them or any combination of 2 of them didn't remove AM/PM from status bar clock.
Any ideas or suggestions?
My work can be found here:

http://d-h.st/users/agat/?fld_id=0#files

If you like my work and want to help
Donate Here
 
playya
Old
#4  
playya's Avatar
Senior Member
Thanks Meter 1301
Posts: 4,294
Join Date: Jan 2007
Location: Florida

 
DONATE TO ME
I also am trying this mod and would like to know what are the lines before or after the mod. Just to make sure I am making the changes to the right one since I also see 3 of them... Thanks in Advance
DeBloat your AOKP/CM10 fast and pain free click here
---------------------------------------------------
"Hey if you can type it you can search it" - Google is your friend - Let me Google that for you
--------------------------------------------------
Proud owner of a Nexus 4 on LiquidSmooth 2.5/Samsung Galaxy S2(AT&T)and Wifi Only Xoom
 
`SBR`
Old
#5  
Senior Member
Thanks Meter 118
Posts: 392
Join Date: Apr 2010
Location: Chennai
Quote:
Originally Posted by agat63 View Post
Tried it on stock FD10 ICS4.0.3 build for E4GT.
Didn't work unfortunately.
I found 3 instances of const/4 v0, 0x0 and changing any of them or any combination of 2 of them didn't remove AM/PM from status bar clock.
Any ideas or suggestions?
Use notepad++ and go to line 36 and change the value

Sent from my SGH-T989 using Tapatalk 2
 
playya
Old
#6  
playya's Avatar
Senior Member
Thanks Meter 1301
Posts: 4,294
Join Date: Jan 2007
Location: Florida

 
DONATE TO ME
Quote:
Originally Posted by `SBR` View Post
Use notepad++ and go to line 36 and change the value

Sent from my SGH-T989 using Tapatalk 2
actually I do not see static constructor but public constructor and lines 34-41 show this
Code:
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1
    .parameter "context"

    .prologue
    .line 72
    const/4 v0, 0x0
DeBloat your AOKP/CM10 fast and pain free click here
---------------------------------------------------
"Hey if you can type it you can search it" - Google is your friend - Let me Google that for you
--------------------------------------------------
Proud owner of a Nexus 4 on LiquidSmooth 2.5/Samsung Galaxy S2(AT&T)and Wifi Only Xoom
 
agat63
Old
#7  
agat63's Avatar
Recognized Contributor
Thanks Meter 7334
Posts: 3,685
Join Date: Sep 2010
Location: Las Vegas, NV

 
DONATE TO ME
Quote:
Originally Posted by `SBR` View Post
Use notepad++ and go to line 36 and change the value

Sent from my SGH-T989 using Tapatalk 2
I'm using notepad++.
There is no instance/value on line 36 in ICS file for E4GT.
First instance is on line 39.
Did try it. No dice.
And as mentioned above did try any combination of 3 instances of that value thru the file. No go.
May be ICS for E4GT is different and we should look somewhere else.
My work can be found here:

http://d-h.st/users/agat/?fld_id=0#files

If you like my work and want to help
Donate Here
 
`SBR`
Old
#8  
Senior Member
Thanks Meter 118
Posts: 392
Join Date: Apr 2010
Location: Chennai
Quote:
Originally Posted by playya View Post
actually I do not see static constructor but public constructor and lines 34-41 show this
Code:
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1
    .parameter "context"

    .prologue
    .line 72
    const/4 v0, 0x0
Quote:
Originally Posted by agat63 View Post
I'm using notepad++.
There is no instance/value on line 36 in ICS file for E4GT.
First instance is on line 39.
Did try it. No dice.
And as mentioned above did try any combination of 3 instances of that value thru the file. No go.
May be ICS for E4GT is different and we should look somewhere else.
Hope you're looking into the file in the below path.

SystemUI\smali\com\android\systemui\statusbar\poli cy\Clock.smali

and search for the below line

Code:
sput v0, Lcom/android/systemui/statusbar/policy/Clock;->AM_PM_STYLE:I
above the line

Code:
const/4 v0, 0x0
change the 0 to 2 like below, it will be like this .

Code:
const/4 v0, 0x2
Save it and decompile the systemui.apk
 
playya
Old
#9  
playya's Avatar
Senior Member
Thanks Meter 1301
Posts: 4,294
Join Date: Jan 2007
Location: Florida

 
DONATE TO ME
Quote:
Originally Posted by `SBR` View Post
Hope you're looking into the file in the below path.

SystemUI\smali\com\android\systemui\statusbar\poli cy\Clock.smali

and search for the below line

Code:
sput v0, Lcom/android/systemui/statusbar/policy/Clock;->AM_PM_STYLE:I
above the line

Code:
const/4 v0, 0x0
change the 0 to 2 like below, it will be like this .

Code:
const/4 v0, 0x2
Save it and decompile the systemui.apk
yea been there and its a no go apparently my Clock.smali is dfferent
DeBloat your AOKP/CM10 fast and pain free click here
---------------------------------------------------
"Hey if you can type it you can search it" - Google is your friend - Let me Google that for you
--------------------------------------------------
Proud owner of a Nexus 4 on LiquidSmooth 2.5/Samsung Galaxy S2(AT&T)and Wifi Only Xoom
 
agat63
Old
#10  
agat63's Avatar
Recognized Contributor
Thanks Meter 7334
Posts: 3,685
Join Date: Sep 2010
Location: Las Vegas, NV

 
DONATE TO ME
Quote:
Originally Posted by playya View Post
yea been there and its a no go apparently my Clock.smali is dfferent
I confirm that.
There is no such line in Clock.smali in E4GT ICS SystemUI.apk smali file.
There has been a lot of changes in apk, dex and jar files from GB to ICS.
My work can be found here:

http://d-h.st/users/agat/?fld_id=0#files

If you like my work and want to help
Donate Here


XDA PORTAL POSTS

What’s Possible with CASUAL & How to Make Your Own CASUAL – XDA Developer TV

XDA Elite Recognized Developer AdamOutler is known … more

Pearl Chen to Talk NFC Development at XDA:DevCon 2013

From HTML to LEDs or Android to Arduino, Hardware Hacking is a pastime of many people … more

Avoid Framework Bootloops on Xperias Running Jelly Bean

If you’re a Sony device owner running a stock Android Jelly Bean firmware and … more

Forum Added for the Samsung Galaxy Mega

What do you do when the Galaxy Note line is simply not big enough? You get theSamsung Galaxy Mega. … more