Make Your Own Heat Sink for the LG Optimus 4X HD

Its not a rare occurrence that performing a resource heavy task on your Android device (e.g. … more

Learn How to Create an Old School Dialer

XDA is not only a great source for custom ROMs, kernels, and various modifications for numerous … more

USB Desktop Charger Roundup – XDA TV

Sometimes you learn one way to do something, and that’s the way you do it forever. You never … more

Samsung Galaxy Grand Duos Receives Early CM12 Port

Samsung Galaxy Grand is a dual-SIM phone with a 5 screen that was announced two years ago. … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[GUIDE][ICS/JB/CM 11]Move the clocks in the center

OP SonyFan23

30th April 2014, 12:48 PM   |  #1  
SonyFan23's Avatar
OP Senior Member
Flag Nikolaevsk
Thanks Meter: 100
 
185 posts
Join Date:Joined: Feb 2014
More
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:
Click image for larger version

Name:	apktools02.png
Views:	168
Size:	7.7 KB
ID:	2717304
GUIDE for ICS/JB
Decompile the status bar
Open the file "SystemUI/res/layout/status_bar.xml" via NotePad++
Remove
Code:
<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
Code:
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
Add
Code:
<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
Code:
<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
Code:
<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
Code:
<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
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
After these lines
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
Insert
Code:
<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
Code:
<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
Last edited by SonyFan23; 30th April 2014 at 01:00 PM.
The Following 2 Users Say Thank You to SonyFan23 For This Useful Post: [ View ]
1st May 2014, 08:45 AM   |  #2  
Senior Member
Flag Mumbai
Thanks Meter: 11
 
115 posts
Join Date:Joined: Apr 2013
More
Quote:
Originally Posted by 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:
Attachment 2717304
GUIDE for ICS/JB
Decompile the status bar
Open the file "SystemUI/res/layout/status_bar.xml" via NotePad++
Remove
Code:
<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
Code:
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
Add
Code:
<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
Code:
<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
Code:
<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
Code:
<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
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
After these lines
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
Insert
Code:
<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
Code:
<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

bro No disrespect towards our hardwork. ,but gravity box with xposed would also do the trick for JB right, ics i dunno??
Last edited by Joker.; 1st May 2014 at 08:47 AM.
1st May 2014, 04:47 PM   |  #3  
SonyFan23's Avatar
OP Senior Member
Flag Nikolaevsk
Thanks Meter: 100
 
185 posts
Join Date:Joined: Feb 2014
More
Quote:
Originally Posted by Joker.

bro No disrespect towards our hardwork. ,but gravity box with xposed would also do the trick for JB right, ics i dunno??

For JB yes, for no ICS
The Following User Says Thank You to SonyFan23 For This Useful Post: [ View ]
1st May 2014, 06:43 PM   |  #4  
Senior Member
Flag Mumbai
Thanks Meter: 11
 
115 posts
Join Date:Joined: Apr 2013
More
Quote:
Originally Posted by SonyFan23

For JB yes, for no ICS


very nice keep up the good work
The Following User Says Thank You to Joker. For This Useful Post: [ View ]
1st May 2014, 10:18 PM   |  #5  
BR4KUS's Avatar
Senior Member
Flag Gorzyczki, Śląskie
Thanks Meter: 42
 
264 posts
Join Date:Joined: Dec 2013
More
Yyy, not better install Xposed Famework and GravityBox? I think if this is easiest

Sent from my Xperia Sola using XDA Premium 4 mobile app
2nd May 2014, 05:17 AM   |  #6  
SonyFan23's Avatar
OP Senior Member
Flag Nikolaevsk
Thanks Meter: 100
 
185 posts
Join Date:Joined: Feb 2014
More
Quote:
Originally Posted by BR4KUS

Yyy, not better install Xposed Famework and GravityBox? I think if this is easiest

Sent from my Xperia Sola using XDA Premium 4 mobile app

Yes, prosche.Ya wrote this manual for users to be able to learn (if desired) to edit the status bar

Sent from my Xperia Go using XDA Premium 4 mobile app
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes