[Galaxy S III General] gharrington:
[GUIDE][4.1.1][4.1.2] Remove am/pm

Ok guys heres how to remove ampm from statusbar. I decided to re write the whole method to get rid of unwanted code and make it more efficient. You can still use both 12hr and 24hr.​

Things Needed:

Notepad ++

Tools

7zip​

How to:

1. Unzip Tools folder to Desktop

2. Place Deodexed SystemUI.apk into folder

3. Hold shift key and Right click in folder. Then click `open command window here`

4. Type apktool d SystemUI.apk and hit enter. This will make a new folder called SystemUI

5. Go to SystemUI/smali/com/android/systemui/statusbar/policy/Clock.smali and open with Notepad++

6. Scroll down to the end of the file and near the end you will see:​

[CENTER].method final updateClock()V[/CENTER]

[CENTER](CODE)[/CENTER]

[CENTER].end method[/CENTER]

Replace whole thing with:​

[LEFT].method final updateClock()V[/LEFT]

[LEFT] .locals 7[/LEFT]

[LEFT] invoke-virtual {p0}, Lcom/android/systemui/statusbar/policy/Clock;->getContext()Landroid/content/Context;[/LEFT]

[LEFT] move-result-object v3[/LEFT]

[LEFT] .line 201[/LEFT]

[LEFT] .local v3, context:Landroid/content/Context;[/LEFT]

[LEFT] invoke-static {v3}, Landroid/text/format/DateFormat;->is24HourFormat(Landroid/content/Context;)Z[/LEFT]

[LEFT] move-result v2[/LEFT]

[LEFT] invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;[/LEFT]

[LEFT] move-result-object v0[/LEFT]

[LEFT] .line 37[/LEFT]

[LEFT] .local v0, cal:Ljava/util/Calendar;[/LEFT]

[LEFT] .line 38[/LEFT]

[LEFT] .local v2, h:Z[/LEFT]

[LEFT] const/4 v3, 0x0[/LEFT]

[LEFT] .line 40[/LEFT]

[LEFT] .local v3, sdf:Ljava/text/SimpleDateFormat;[/LEFT]

[LEFT] if-nez v2, :cond_0[/LEFT]

[LEFT] .line 41[/LEFT]

[LEFT] new-instance v3, Ljava/text/SimpleDateFormat;[/LEFT]

[LEFT] .end local v3 #sdf:Ljava/text/SimpleDateFormat;[/LEFT]

[LEFT] const-string v5, "h:mm"[/LEFT]

[LEFT] invoke-direct {v3, v5}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V[/LEFT]

[LEFT] .line 46[/LEFT]

[LEFT] .restart local v3 #sdf:Ljava/text/SimpleDateFormat;[/LEFT]

[LEFT] :goto_0[/LEFT]

[LEFT] invoke-virtual {v0}, Ljava/util/Calendar;->getTime()Ljava/util/Date;[/LEFT]

[LEFT] move-result-object v5[/LEFT]

[LEFT] invoke-virtual {v3, v5}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;[/LEFT]

[LEFT] move-result-object v1[/LEFT]

[LEFT] .line 47[/LEFT]

[LEFT] .local v1, dte:Ljava/lang/String;[/LEFT]

[LEFT] invoke-virtual {p0, v1}, Lcom/android/systemui/statusbar/policy/Clock;->setText(Ljava/lang/CharSequence;)V[/LEFT]

[LEFT] return-void[/LEFT]

[LEFT] .line 43[/LEFT]

[LEFT] .end local v1 #dte:Ljava/lang/String;[/LEFT]

[LEFT] :cond_0[/LEFT]

[LEFT] new-instance v3, Ljava/text/SimpleDateFormat;[/LEFT]

[LEFT] .end local v3 #sdf:Ljava/text/SimpleDateFormat;[/LEFT]

[LEFT] const-string v5, "HH:mm"[/LEFT]

[LEFT] invoke-direct {v3, v5}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V[/LEFT]

[LEFT] .restart local v3 #sdf:Ljava/text/SimpleDateFormat;[/LEFT]

[LEFT] goto :goto_0[/LEFT]

[LEFT].end method[/LEFT]

7. Save both files and close Notepad++

8. Hold shift key and right click folder again.

9. Type apktool b SystemUI nSystemUI.apk this will make a file called nSystemUI.apk

10. Open both files with 7zip and copy META-INF and AndroidManifest.xml form original apk to new apk

11. Flash, Enjoy and hit the thanks button.​

Sorry for messy code. It changes the formatting when i post on here. Its good practice to keep code tidy:)​

The attached apk is finished and is based on XXELL5. It has the theming show in screenshot.​