[Sony Xperia P, U, Sola, Go] SonyFan23:
We need:

ApkTools200b9m,Download:http://d-h.st/iRt

Notepad++,Download:http://d-h.st/i69

Just Another Tool for APK:http://d-h.st/bqP

Files: "framework-res.apk" and "SystemUl.apk"

Before decompiling status bar need:

Unpack the archive to the root ApkTools.rar C: \ drive and open the folder ApkTools

Copy into this folder the file framework-res.apk of its firmware

Now we need to establish a framework for its firmware to be able to parse all the system apk

(This operation should be done once for each firmware)

Drag the file framework-res.apk file apktool-if.cmd

Get a window:

View attachment 2717304​

GUIDE for ICS/JB

Decompile the status bar

Open the file "SystemUI/res/layout/status_bar.xml" via NotePad++

Remove

<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />

After rows

xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">

Add

<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:paddingLeft="0.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>

Instead

<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">

Insert

<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:background="#ff000000" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">

Click on apktool.iml ank and file is compiled

GUIDE for CM 11

Decompile the status bar

Open the file "SystemUI/res/layout/status_bar.xml" via NotePad++

Instead

<ImageView android:id="@id/notification_lights_out" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:paddingStart="6.0dip" />

Insert

<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">

After these lines

<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">

Insert

<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:paddingLeft="0.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>

Remove

<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="6.0dip" />

Click on apktool.iml ank and file is compiled