[Android Q&A, Help & Troubleshooting] KronicSkillz:
I have found about 5 different threads that have methods to edit clock.smali to remove am/pm from status bar but none of them work on this rom, it has a different clock.smali. after a few hours of searching i've decided to start a new thread because it seems we need a different variant of the mod for this variant of clock.smali. This is taken from an LG phone running 4.0.4

i'm going to post my clock.smali and if anyone has any ideas i would love to try/test them out.

.class public Lcom/android/systemui/statusbar/policy/Clock;
.super Landroid/widget/TextView;
.source "Clock.java"

# instance fields
.field private mAttached:Z

.field private mCalendar:Ljava/util/Calendar;

.field private mClockFormat:Ljava/text/SimpleDateFormat;

.field private mClockFormatString:Ljava/lang/String;

.field private mHandler:Landroid/os/Handler;

.field private final mIntentReceiver:Landroid/content/BroadcastReceiver;

.field private mPhoneStateListener:Landroid/telephony/PhoneStateListener;

.field mServiceState:Landroid/telephony/ServiceState;

# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.locals 1
.parameter "context"

.prologue
.line 83
const/4 v0, 0x0

invoke-direct {p0, p1, v0}, Lcom/android/systemui/statusbar/policy/Clock;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

.line 84
return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.locals 1
.parameter "context"
.parameter "attrs"

.prologue
.line 87
const/4 v0, 0x0

invoke-direct {p0, p1, p2, v0}, Lcom/android/systemui/statusbar/policy/Clock;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

.line 88
return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
.locals 1
.parameter "context"
.parameter "attrs"
.parameter "defStyle"

.prologue
.line 91
invoke-direct {p0, p1, p2, p3}, Landroid/widget/TextView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

.line 170
new-instance v0, Lcom/android/systemui/statusbar/policy/Clock$3;

invoke-direct {v0, p0}, Lcom/android/systemui/statusbar/policy/Clock$3;-><init>(Lcom/android/systemui/statusbar/policy/Clock;)V

iput-object v0, p0, Lcom/android/systemui/statusbar/policy/Clock;->mIntentReceiver:Landroid/content/BroadcastReceiver;

.line 94
new-instance v0, Landroid/telephony/PhoneStateListener;

invoke-direct {v0}, Landroid/telephony/PhoneStateListener;-><init>()V

iput-object v0, p0, Lcom/android/systemui/statusbar/policy/Clock;->mPhoneStateListener:Landroid/telephony/PhoneStateListener;

.line 95
invoke-direct {p0}, Lcom/android/systemui/statusbar/policy/Clock;->getPhoneStateListener()Landroid/telephony/PhoneStateListener;

move-result-object v0

iput-object v0, p0, Lcom/android/systemui/statusbar/policy/Clock;->mPhoneStateListener:Landroid/telephony/PhoneStateListener;

.line 98
new-instance v0, Lcom/android/systemui/statusbar/policy/Clock$1;

invoke-direct {v0, p0}, Lcom/android/systemui/statusbar/policy/Clock$1;-><init>(Lcom/android/systemui/statusbar/policy/Clock;)V

iput-object v0, p0, Lcom/android/systemui/statusbar/policy/Clock;->mHandler:Landroid/os/Handler;

.line 105
return-void
.end method

.method static synthetic access$000(Lcom/android/systemui/statusbar/policy/Clock;)Ljava/util/Calendar;
.locals 1
.parameter "x0"

.prologue
.line 62
iget-object v0, p0, Lcom/android/systemui/statusbar/policy/Clock;->mCalendar:Ljava/util/Calendar;

return-object v0
.end method

.method static synthetic access$002(Lcom/android/systemui/statusbar/policy/Clock;Ljava/util/Calendar;)Ljava/util/Calendar;
.locals 0
.parameter "x0"
.parameter "x1"

.prologue
.line 62
iput-object p1, p0, Lcom/android/systemui/statusbar/policy/Clock;->mCalendar:Ljava/util/Calendar;

return-object p1
.end method

.method static synthetic access$100(Lcom/android/systemui/statusbar/policy/Clock;)Ljava/text/SimpleDateFormat;
.locals 1
.parameter "x0"

.prologue
.line 62
iget-object v0, p0, Lcom/android/systemui/statusbar/policy/Clock;->mClockFormat:Ljava/text/SimpleDateFormat;

return-object v0
.end method

.method static synthetic access$202(Lcom/android/systemui/statusbar/policy/Clock;Ljava/lang/String;)Ljava/lang/String;
.locals 0
.parameter "x0"
.parameter "x1"

.prologue
.line 62
iput-object p1, p0, Lcom/android/systemui/statusbar/policy/Clock;->mClockFormatString:Ljava/lang/String;

return-object p1
.end method

.method static synthetic access$300(Lcom/android/systemui/statusbar/policy/Clock;)Landroid/os/Handler;
.locals 1
.parameter "x0"

.prologue
.line 62
iget-object v0, p0, Lcom/android/systemui/statusbar/policy/Clock;->mHandler:Landroid/os/Handler;

return-object v0
.end method

.method static synthetic access$400(Lcom/android/systemui/statusbar/policy/Clock;)Z
.locals 1
.parameter "x0"

.prologue
.line 62
invoke-direct {p0}, Lcom/android/systemui/statusbar/policy/Clock;->hasService()Z

move-result v0

return v0
.end method

.method static synthetic access$500(Lcom/android/systemui/statusbar/policy/Clock;)Landroid/content/Context;
.locals 1
.parameter "x0"

.prologue
.line 62
iget-object v0, p0, Lcom/android/systemui/statusbar/policy/Clock;->mContext:Landroid/content/Context;

return-object v0
.end method

.method static synthetic access$600(Lcom/android/systemui/statusbar/policy/Clock;)Landroid/content/Context;
.locals 1
.parameter "x0"

.prologue
.line 62
iget-object v0, p0, Lcom/android/systemui/statusbar/policy/Clock;->mContext:Landroid/content/Context;

return-object v0
.end method

.method private getPhoneStateListener()Landroid/telephony/PhoneStateListener;
.locals 1

.prologue
.line 144
new-instance v0, Lcom/android/systemui/statusbar/policy/Clock$2;

invoke-direct {v0, p0}, Lcom/android/systemui/statusbar/policy/Clock$2;-><init>(Lcom/android/systemui/statusbar/policy/Clock;)V

.line 151
.local v0, phoneStateListener:Landroid/telephony/PhoneStateListener;
return-object v0
.end method

.method private final getSmallTime()Ljava/lang/CharSequence;
.locals 9

.prologue
.line 231
invoke-virtual {p0}, Lcom/android/systemui/statusbar/policy/Clock;->getContext()Landroid/content/Context;

move-result-object v3

.line 232
.local v3, context:Landroid/content/Context;
invoke-static {v3}, Landroid/text/format/DateFormat;->is24HourFormat(Landroid/content/Context;)Z

move-result v2

.line 235
.local v2, b24:Z
if-eqz v2, :cond_0

.line 236
const v5, 0x104007e

.line 241
.local v5, res:I
:goto_0
const v0, 0xef00

.line 242
.local v0, MAGIC1:C
const v1, 0xef01

.line 245
.local v1, MAGIC2:C
invoke-virtual {v3, v5}, Landroid/content/Context;->getString(I)Ljava/lang/String;

move-result-object v4

.line 246
.local v4, format:Ljava/lang/String;
iget-object v8, p0, Lcom/android/systemui/statusbar/policy/Clock;->mClockFormatString:Ljava/lang/String;

invoke-virtual {v4, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v8

if-nez v8, :cond_1

.line 278
new-instance v7, Ljava/text/SimpleDateFormat;

invoke-direct {v7, v4}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

.local v7, sdf:Ljava/text/SimpleDateFormat;
iput-object v7, p0, Lcom/android/systemui/statusbar/policy/Clock;->mClockFormat:Ljava/text/SimpleDateFormat;

.line 279
iput-object v4, p0, Lcom/android/systemui/statusbar/policy/Clock;->mClockFormatString:Ljava/lang/String;

.line 283
:goto_1
iget-object v8, p0, Lcom/android/systemui/statusbar/policy/Clock;->mCalendar:Ljava/util/Calendar;

invoke-virtual {v8}, Ljava/util/Calendar;->getTime()Ljava/util/Date;

move-result-object v8

invoke-virtual {v7, v8}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

move-result-object v6

.line 305
.local v6, result:Ljava/lang/String;
return-object v6

.line 238
.end local v0 #MAGIC1:C
.end local v1 #MAGIC2:C
.end local v4 #format:Ljava/lang/String;
.end local v5 #res:I
.end local v6 #result:Ljava/lang/String;
.end local v7 #sdf:Ljava/text/SimpleDateFormat;
:cond_0
const v5, 0x104007d

.restart local v5 #res:I
goto :goto_0

.line 281
.restart local v0 #MAGIC1:C
.restart local v1 #MAGIC2:C
.restart local v4 #format:Ljava/lang/String;
:cond_1
iget-object v7, p0, Lcom/android/systemui/statusbar/policy/Clock;->mClockFormat:Ljava/text/SimpleDateFormat;

.restart local v7 #sdf:Ljava/text/SimpleDateFormat;
goto :goto_1
.end method

.method private hasService()Z
.locals 3

.prologue
const/4 v1, 0x0

.line 155
iget-object v0, p0, Lcom/android/systemui/statusbar/policy/Clock;->mServiceState:Landroid/telephony/ServiceState;

.line 156
.local v0, ss:Landroid/telephony/ServiceState;
if-eqz v0, :cond_0

.line 157
invoke-virtual {v0}, Landroid/telephony/ServiceState;->getState()I

move-result v2

packed-switch v2, :pswitch_data_0

.line 162
:pswitch_0
const/4 v1, 0x1

.line 165
:cond_0
:pswitch_1
return v1

.line 157
:pswitch_data_0
.packed-switch 0x1
:pswitch_1
:pswitch_0
:pswitch_1
.end packed-switch
.end method

# virtual methods
.method protected onAttachedToWindow()V
.locals 5

.prologue
.line 109
invoke-super {p0}, Landroid/widget/TextView;->onAttachedToWindow()V

.line 111
iget-boolean v1, p0, Lcom/android/systemui/statusbar/policy/Clock;->mAttached:Z

if-nez v1, :cond_0

.line 112
const/4 v1, 0x1

iput-boolean v1, p0, Lcom/android/systemui/statusbar/policy/Clock;->mAttached:Z

.line 113
new-instance v0, Landroid/content/IntentFilter;

invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V

.line 115
.local v0, filter:Landroid/content/IntentFilter;
const-string v1, "android.intent.action.TIME_TICK"

invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

.line 116
const-string v1, "android.intent.action.TIME_SET"

invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

.line 117
const-string v1, "android.intent.action.TIMEZONE_CHANGED"

invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

.line 118
const-string v1, "android.intent.action.CONFIGURATION_CHANGED"

invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

.line 120
invoke-virtual {p0}, Lcom/android/systemui/statusbar/policy/Clock;->getContext()Landroid/content/Context;

move-result-object v1

iget-object v2, p0, Lcom/android/systemui/statusbar/policy/Clock;->mIntentReceiver:Landroid/content/BroadcastReceiver;

const/4 v3, 0x0

invoke-virtual {p0}, Lcom/android/systemui/statusbar/policy/Clock;->getHandler()Landroid/os/Handler;

move-result-object v4

invoke-virtual {v1, v2, v0, v3, v4}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;Ljava/lang/String;Landroid/os/Handler;)Landroid/content/Intent;

.line 127
.end local v0 #filter:Landroid/content/IntentFilter;
:cond_0
invoke-static {}, Ljava/util/TimeZone;->getDefault()Ljava/util/TimeZone;

move-result-object v1

invoke-static {v1}, Ljava/util/Calendar;->getInstance(Ljava/util/TimeZone;)Ljava/util/Calendar;

move-result-object v1

iput-object v1, p0, Lcom/android/systemui/statusbar/policy/Clock;->mCalendar:Ljava/util/Calendar;

.line 130
invoke-virtual {p0}, Lcom/android/systemui/statusbar/policy/Clock;->updateClock()V

.line 131
return-void
.end method

.method protected onDetachedFromWindow()V
.locals 2

.prologue
.line 135
invoke-super {p0}, Landroid/widget/TextView;->onDetachedFromWindow()V

.line 136
iget-boolean v0, p0, Lcom/android/systemui/statusbar/policy/Clock;->mAttached:Z

if-eqz v0, :cond_0

.line 137
invoke-virtual {p0}, Lcom/android/systemui/statusbar/policy/Clock;->getContext()Landroid/content/Context;

move-result-object v0

iget-object v1, p0, Lcom/android/systemui/statusbar/policy/Clock;->mIntentReceiver:Landroid/content/BroadcastReceiver;

invoke-virtual {v0, v1}, Landroid/content/Context;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

.line 138
const/4 v0, 0x0

iput-boolean v0, p0, Lcom/android/systemui/statusbar/policy/Clock;->mAttached:Z

.line 140
:cond_0
return-void
.end method

.method final updateClock()V
.locals 3

.prologue
.line 226
iget-object v0, p0, Lcom/android/systemui/statusbar/policy/Clock;->mCalendar:Ljava/util/Calendar;

invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

move-result-wide v1

invoke-virtual {v0, v1, v2}, Ljava/util/Calendar;->setTimeInMillis(J)V

.line 227
invoke-direct {p0}, Lcom/android/systemui/statusbar/policy/Clock;->getSmallTime()Ljava/lang/CharSequence;

move-result-object v0

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

.line 228
return-void
.end method

thanks in advance for any help i will report back asap on any suggestions.