This guide will show you how to get small am\pm in status bar (Deodexed)
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. In that folder go to SystemUI/res/layout/tw_status_bar.xml and open with Notepad++
You will see this line:
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. In that folder go to SystemUI/res/layout/tw_status_bar.xml and open with Notepad++
You will see this line:
Code:
<com.android.systemui.statusbar.policy.Clock android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#ff33b5e5" android:gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
6. Add: systemui:ampmSmall="true" to the end just before /> so it looks like:
Code:
<com.android.systemui.statusbar.policy.Clock android:textSize="@dimen/status_bar_clock_text_size"
android:textColor="#ff33b5e5" android:gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" systemui:ampmSmall="true" />
That is it. You have small am\pm trouble is its a bit too small so lets make it bigger.
7. Go to SystemUI/smali/com/android/systemui/statusbar/policy/Clock.smali and open with Notepad++
8. Scroll down to the end of the file and near the end you will see:
Code:
invoke-direct {v4, v10}, Landroid/text/SpannableStringBuilder;-><init>(Ljava/lang/CharSequence;)V
.local v4, formatted:Landroid/text/SpannableStringBuilder;
const/high16 v7, 0x3f00
.local v7, proportion:F
invoke-virtual {v10, v1},Ljava/lang/String;->indexOf(Ljava/lang/String;)I
9. Change const/high16 v7, 0x3f00 to const/high16 v7, 0x3f33 so it looks like:
Code:
invoke-direct {v4, v10}, Landroid/text/SpannableStringBuilder;-><init>(Ljava/lang/CharSequence;)V
.local v4, formatted:Landroid/text/SpannableStringBuilder;
const/high16 v7, 0x3f33
.local v7, proportion:F
invoke-virtual {v10, v1}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I
10. Save both files and close Notepad++
11. Hold shift key and right click folder again.
12. Type apktool b SystemUI nSystemUI.apk this will make a file called nSystemUI.apk
13. Open both files with 7zip and copy META-INF and AndroidManifest.xml form original apk to new apk
14. Flash, Enjoy and hit the thanks button.
13. Open both files with 7zip and copy META-INF and AndroidManifest.xml form original apk to new apk
14. Flash, Enjoy and hit the thanks button.
Last edited: