Guide : How to remove am\pm from samsung 4.1.1 & 4.1.2 devices statusbar clock..??
Now, you can remove the am\pm from statusbar clock from any samsung 4.1.1 & 4.1.2 :)
Requirements:
Apktool (For decompiling & recompiling)
Notepad ++
Instructions:
1) Decompile Ur SystemUI.apk by apktool (Refer to apktool using post)
2) Open res/layout/tw_status_bar_dual.xml/tw_status_bar.xml by with notepad++ from windows PC.
3) Find this code
4) Replace it with this
5) Now copy this code
6) Paste it below the line u changed just now. After pasting, it will look like this
8) Recompile and then again decompile
9) Open smali/com/shadesk/statusbar/statusbar/clock.smali & Public.xml from res/values/public.xml
10) Find this lines in Clock.smali
12) And now for the second one
Download Smali.zip
Requirements:
Apktool (For decompiling & recompiling)
Notepad ++
Instructions:
1) Decompile Ur SystemUI.apk by apktool (Refer to apktool using post)
2) Open res/layout/tw_status_bar_dual.xml/tw_status_bar.xml by with notepad++ from windows PC.
3) Find this code
<com.android.systemui.statusbar.policy.Clock android:textSize="@dimen/status_bar_clock_text_size" android:textColor="@color/tw_staus_bar_color_color" android:ellipsize="none" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:includeFontPadding="false" />
4) Replace it with this
<com.android.systemui.statusbar.policy.Clock android:textSize="0.0dip" android:textColor="#ffffffff" android:ellipsize="none" android:gravity="left|center" android:id="@id/clock" android:layout_width="0.0dip" android:layout_height="0.0dip" android:singleLine="true" android:includeFontPadding="false" />
5) Now copy this code
<com.shadesk.statusbar.statusbar.Clock android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#ffffffff" android:ellipsize="none" android:gravity="left|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:includeFontPadding="false" systemui:ampmSmall="true" />
6) Paste it below the line u changed just now. After pasting, it will look like this
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent">7) Download the file smali folder from below & merge it into ur SystemUI/smali folder
<com.android.systemui.statusbar.policy.Clock android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#ffffffff" android:ellipsize="none" android:gravity="left|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:includeFontPadding="false" />
</LinearLayout>
<com.shadesk.statusbar.statusbar.Clock android:textSize="0.0dip" android:textColor="#ffffffff" android:ellipsize="none" android:gravity="left|center" android:id="@id/clock" android:layout_width="0.0dip" android:layout_height="0.0dip" android:singleLine="true" android:includeFontPadding="false" systemui:ampmSmall="true" />
8) Recompile and then again decompile
9) Open smali/com/shadesk/statusbar/statusbar/clock.smali & Public.xml from res/values/public.xml
10) Find this lines in Clock.smali
const v16, 0x7f0a005d
const v11, 0x7f0a005c11) Now In Public.xml find This Codes and replace It With clock.smali ids
const v16, 0x7f0a005d
and replace 0x7f0a005d to THe ID of <public type="string" name="quickpanel_twenty_four_hour_time_format"
12) And now for the second one
const v11, 0x7f0a005c
and replace 0x7f0a005c to the ID of <public type="string" name="quickpanel_ampm_position_formatter"
Done
Recompile
Sign
Push &
Reboot
Download Smali.zip
credits @Argha Das (ShadeSK) - xda