Post Reply

[GUiDE][CM9][MODS]Transparent StatusBar, Center Clock, Carrier Logo..

OP mastershefis

15th July 2012, 08:30 AM   |  #1  
mastershefis's Avatar
OP Senior Member
Flag Brno
Thanks Meter: 898
 
716 posts
Join Date:Joined: Mar 2011
Donate to Me
More
Transparent - SemiTransparent Statusbar

1. Get SystemUI.apk, framework-res.apk from your phone
2. Install with apktool your pulled framework-res.apk [apktool if framework-res.apk]
3. Decompile your SystemUI.apk: apktool d -f SystemUI.apk
4. Navigate to your decompiled folder and go to
Quote:

/SystemUI/smali/com/android/systemui/statusbar/StatusBar.smali

5. Search this line:

Code:
invoke-direct/range {v11 .. v16}, Landroid/view/WindowManager$LayoutParams;-><init>(IIIII)V
6. Above this line, change :
Code:
const/16 v16, 0x4
To:
Code:
const/16 v16, -0x3
7. Save the file
8. Navigate to your decompiled folder and go to
Quote:

SystemUI/res/values/drawables.xml

9. Search this line:

Code:
<item type="drawable" name="status_bar_background">#ff000000</item>
10. Change the value of status_bar_background

Completely transparent:
Code:
<item type="drawable" name="status_bar_background">#00FFFFFF</item>
50% transparent:
Code:
<item type="drawable" name="status_bar_background">#7f000000</item>
11. Save the file
12. Recompile SystemUI.apk : apktool.jar b -f SystemUI SystemUI2.apk
13. Sign the new apk and rename back to: SystemUI.apk
14. Push the new SystemUI.apk to your phone
15. Enjoy



Custom carrier logo in status bar


How to add as a feature to CM9/AOKP like MIUI:
1. Get SystemUI.apk, framework-res.apk from your phone
2. Install with apktool your pulled framework-res.apk [apktool if framework-res.apk]
3. Decompile your SystemUI.apk: apktool d -f SystemUI.apk
4. Navigate to your decompiled folder and go to

Quote:

SystemUI/res/layouts/status_bar.xml

5. Find the line that starts with this:
Code:
<LinearLayout android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
6. Replace the new line with this line:
Code:
<LinearLayout android:paddingRight="6.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
            <com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textColor="@android:color/transparent" android:gravity="left|center" android:orientation="horizontal" android:background="@drawable/carrier_logo" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_alignParentLeft="true" />
Now you can just add any .png's what you want, name it carrier_logo.png and place it in the /res/drawable-mdpi folder. But be carreful about size of image maximum size is around 60x40 pixels)

7. Save the file
8. Recompile SystemUI.apk : apktool.jar b -f SystemUI SystemUI2.apk
9. Sign the new apk and rename back to: SystemUI.apk
10. Push the new SystemUI.apk to your phone
11. Enjoy


Center Clock:

1. Get SystemUI.apk, framework-res.apk from your phone
2. Install with apktool your pulled framework-res.apk [apktool if framework-res.apk]
3. Decompile your SystemUI.apk: apktool d -f SystemUI.apk
4. Navigate to your decompiled folder and go to

Quote:

SystemUI/res/layouts/status_bar.xml

5. Find the line that starts with this:
Code:
<com.android.systemui.statusbar.policy.Clock
5. Delete the whole line but only between brackets
6. Next go to the top of your status_bar.xml and place your cursor at the end of this line:
Code:
  xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
7. Press Enter to create an empty line
8. Place cursor at the beginning of that empty space and paste this line:
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:paddingTop="2.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
    </LinearLayout>
9. The next thing is to find this line:
Code:
 <LinearLayout android:orientation="horizontal" android:id="@id/ticker"
10. After "@id/ticker" yiuo have to add this drawable (is not neccesary to create image is already exist):
Code:
android:background="@drawable/status_bar_bg_tile"
7. Save the file
8. Recompile SystemUI.apk : apktool.jar b -f SystemUI SystemUI2.apk
9. Sign the new apk and rename back to: SystemUI.apk
10. Push the new SystemUI.apk to your phone
11. Enjoy


Center Date:

1. Get SystemUI.apk, framework-res.apk from your phone
2. Install with apktool your pulled framework-res.apk [apktool if framework-res.apk]
3. Decompile your SystemUI.apk: apktool d -f SystemUI.apk
4. Navigate to your decompiled folder and go to

Quote:

SystemUI/res/layouts/status_bar_expanded.xml

5. Find the line that starts with this:
Code:
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="16.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_alignParentLeft="true" />
5. Replace whole line by this one
Code:
  <LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
                <com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="center" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
            </LinearLayout>
6. Save the file
7. Recompile SystemUI.apk : apktool.jar b -f SystemUI SystemUI2.apk
8. Sign the new apk and rename back to: SystemUI.apk
9. Push the new SystemUI.apk to your phone
10. Enjoy


Fix for small space between WiFI and Signal icon:

1. Get SystemUI.apk, framework-res.apk from your phone
2. Install with apktool your pulled framework-res.apk [apktool if framework-res.apk]
3. Decompile your SystemUI.apk: apktool d -f SystemUI.apk

4. Navigate to the
Quote:

SystemUI/res/layout/signal_cluster_view.xml

5. Find the line started
Code:
<FrameLayout android:id="@id/wifi_combo"
6. Replace whole line by this one:

Code:
<FrameLayout android:id="@id/wifi_combo" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="1.0dip">
7. Save the file
8. Recompile SystemUI.apk : apktool.jar b -f SystemUI SystemUI2.apk
9. Sign the new apk and rename back to: SystemUI.apk
10. Push the new SystemUI.apk to your phone
11. Enjoy


Whole this MOD's looks like in status_bar.xml:

Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:background="@drawable/status_bar_background" android:focusable="true" android:descendantFocusability="afterDescendants" android:layout_width="fill_parent" android:layout_height="fill_parent"
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
    <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:paddingTop="2.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
    </LinearLayout>
    <LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
        <LinearLayout android:paddingRight="6.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
            <com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textColor="@android:color/transparent" android:gravity="left|center" android:orientation="horizontal" android:background="@drawable/carrier_logo" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_alignParentLeft="true" />
            <com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
            <com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
        </LinearLayout>
        <LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
        <LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
            <include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" layout="@layout/signal_cluster_view" />
            <include android:id="@id/signal_cluster_text" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_text_view" />
            <TextView android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:id="@id/battery_text" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="-3.0dip" android:singleLine="true" />
            <ImageView android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
        </LinearLayout>
    </LinearLayout>
    <LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:background="@drawable/status_bar_bg_tile" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
        <ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginRight="4.0dip">
            <com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
            <com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
        </ImageSwitcher>
        <com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
            <TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
            <TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
        </com.android.systemui.statusbar.phone.TickerView>
    </LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
Last edited by mastershefis; 16th July 2012 at 07:51 PM.
The Following 40 Users Say Thank You to mastershefis For This Useful Post: [ View ]
15th July 2012, 08:30 AM   |  #2  
mastershefis's Avatar
OP Senior Member
Flag Brno
Thanks Meter: 898
 
716 posts
Join Date:Joined: Mar 2011
Donate to Me
More
Download Section:

Center Clock & Center Date - cm-9.0.0-rc1-tinystream-hephappy-p500
SystemUI - P500 - CM9

Center Clock & Center Date - FULL TRANSPARENT - cm-9.0.0-rc1-tinystream-hephappy-p500
SystemUI - P500 - CM9

Center Clock & Center Date - SEMI TRANSPAREMT - cm-9.0.0-rc1-tinystream-hephappy-p500
SystemUI - P500 - CM9
Last edited by mastershefis; 15th July 2012 at 03:50 PM.
The Following 16 Users Say Thank You to mastershefis For This Useful Post: [ View ]
15th July 2012, 08:31 AM   |  #3  
mastershefis's Avatar
OP Senior Member
Flag Brno
Thanks Meter: 898
 
716 posts
Join Date:Joined: Mar 2011
Donate to Me
More
**reserved**
The Following 4 Users Say Thank You to mastershefis For This Useful Post: [ View ]
dhruv.always
15th July 2012, 09:26 AM   |  #4  
Guest
Thanks Meter: 0
 
n/a posts
Hey master, can you attach the systemui with center date and center clock ONLY from tinystream?
15th July 2012, 10:21 AM   |  #5  
mastershefis's Avatar
OP Senior Member
Flag Brno
Thanks Meter: 898
 
716 posts
Join Date:Joined: Mar 2011
Donate to Me
More
Quote:
Originally Posted by dhruv.always

Hey master, can you attach the systemui with center date and center clock ONLY from tinystream?

See Download section
The Following 4 Users Say Thank You to mastershefis For This Useful Post: [ View ]
15th July 2012, 12:12 PM   |  #6  
jeetBLswami's Avatar
Senior Member
Thanks Meter: 329
 
243 posts
Join Date:Joined: Jan 2012
More
Thumbs up
Quote:
Originally Posted by mastershefis

Transparent - SemiTransparent Statusbar

1. Get SystemUI.apk, framework-res.apk from your phone
2. Install with apktool your pulled framework-res.apk [apktool if framework-res.apk]
3. Decompile your SystemUI.apk: apktool d -f SystemUI.apk
4. Navigate to your decompiled folder and go to
5. Search this line:

Code:
invoke-direct/range {v11 .. v16}, Landroid/view/WindowManager$LayoutParams;-><init>(IIIII)V
6. Above this line, change :
Code:
const/16 v16, 0x4
To:
Code:
const/16 v16, -0x3
7. Save the file
8. Navigate to your decompiled folder and go to
9. Search this line:

Code:
<item type="drawable" name="status_bar_background">#ff000000</item>
10. Change the value of status_bar_background

Completely transparent:
Code:
<item type="drawable" name="status_bar_background">#00FFFFFF</item>
50% transparent:
Code:
<item type="drawable" name="status_bar_background">#7f000000</item>
11. Save the file
12. Recompile SystemUI.apk : apktool.jar b -f SystemUI SystemUI2.apk
13. Sign the new apk and rename back to: SystemUI.apk
14. Push the new SystemUI.apk to your phone
15. Enjoy



Custom carrier logo in status bar


How to add as a feature to CM9/AOKP like MIUI:
1. Get SystemUI.apk, framework-res.apk from your phone
2. Install with apktool your pulled framework-res.apk [apktool if framework-res.apk]
3. Decompile your SystemUI.apk: apktool d -f SystemUI.apk
4. Navigate to your decompiled folder and go to



5. Find the line that starts with this:
Code:
<LinearLayout android:paddingRight="6.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
            <com.android.systemui.statusbar.phone.CarrierLabel
6. Add a new line above that line and insert this:
Code:
<LinearLayout android:paddingRight="6.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
            <com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textColor="@android:color/transparent" android:gravity="left|center" android:orientation="horizontal" android:background="@drawable/carrier_logo" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_alignParentLeft="true" />
Now you can just add any .png's what you want, name it carrier_logo.png and place it in the /res/drawable-mdpi folder. But be carreful about size of image maximum size is around 60x40 pixels)

7. Save the file
8. Recompile SystemUI.apk : apktool.jar b -f SystemUI SystemUI2.apk
9. Sign the new apk and rename back to: SystemUI.apk
10. Push the new SystemUI.apk to your phone
11. Enjoy


Center Clock:

1. Get SystemUI.apk, framework-res.apk from your phone
2. Install with apktool your pulled framework-res.apk [apktool if framework-res.apk]
3. Decompile your SystemUI.apk: apktool d -f SystemUI.apk
4. Navigate to your decompiled folder and go to


5. Find the line that starts with this:
Code:
<com.android.systemui.statusbar.policy.Clock
5. Delete the whole line but only between brackets
6. Next go to the top of your status_bar.xml and place your cursor at the end of this line:
Code:
  xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
7. Press Enter to create an empty line
8. Place cursor at the beginning of that empty space and paste this line:
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:paddingTop="2.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
    </LinearLayout>
9. The next thing is to find this line:
Code:
 <LinearLayout android:orientation="horizontal" android:id="@id/ticker"
10. After "@id/ticker" yiuo have to add this drawable (is not neccesary to create image is already exist):
Code:
android:background="@drawable/status_bar_bg_tile"
7. Save the file
8. Recompile SystemUI.apk : apktool.jar b -f SystemUI SystemUI2.apk
9. Sign the new apk and rename back to: SystemUI.apk
10. Push the new SystemUI.apk to your phone
11. Enjoy


Center Date:

1. Get SystemUI.apk, framework-res.apk from your phone
2. Install with apktool your pulled framework-res.apk [apktool if framework-res.apk]
3. Decompile your SystemUI.apk: apktool d -f SystemUI.apk
4. Navigate to your decompiled folder and go to


5. Find the line that starts with this:
Code:
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="16.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_alignParentLeft="true" />
5. Replace whole line by this one
Code:
  <LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
                <com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="center" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
            </LinearLayout>
6. Save the file
7. Recompile SystemUI.apk : apktool.jar b -f SystemUI SystemUI2.apk
8. Sign the new apk and rename back to: SystemUI.apk
9. Push the new SystemUI.apk to your phone
10. Enjoy


Fix for small space between WiFI and Signal icon:

1. Get SystemUI.apk, framework-res.apk from your phone
2. Install with apktool your pulled framework-res.apk [apktool if framework-res.apk]
3. Decompile your SystemUI.apk: apktool d -f SystemUI.apk

4. Navigate to the

5. Find the line started
Code:
<FrameLayout android:id="@id/wifi_combo"
6. Replace whole line by this one:

Code:
<FrameLayout android:id="@id/wifi_combo" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="1.0dip">
7. Save the file
8. Recompile SystemUI.apk : apktool.jar b -f SystemUI SystemUI2.apk
9. Sign the new apk and rename back to: SystemUI.apk
10. Push the new SystemUI.apk to your phone
11. Enjoy

great work...thnx for sharing some knowledge...with some of us newbies...
The Following User Says Thank You to jeetBLswami For This Useful Post: [ View ]
dhruv.always
15th July 2012, 12:33 PM   |  #7  
Guest
Thanks Meter: 0
 
n/a posts
@master.. works excellent. thanks!
15th July 2012, 12:36 PM   |  #8  
Senior Member
Flag Mumbai
Thanks Meter: 76
 
812 posts
Join Date:Joined: Jun 2011
More
Can u also add semi transparent status bar with your center clock mod

Sent from my WT19i using xda premium
15th July 2012, 12:42 PM   |  #9  
mastershefis's Avatar
OP Senior Member
Flag Brno
Thanks Meter: 898
 
716 posts
Join Date:Joined: Mar 2011
Donate to Me
More
Quote:
Originally Posted by Somyab

Can u also add semi transparent status bar with your center clock mod

Sent from my WT19i using xda premium

What ROM?

Please GUYS if you want some request post your ROM and version, or post SystemUI.apk with framework-res.apk
Last edited by mastershefis; 15th July 2012 at 12:46 PM.
The Following User Says Thank You to mastershefis For This Useful Post: [ View ]
15th July 2012, 04:37 PM   |  #10  
Senior Member
Flag Mumbai
Thanks Meter: 76
 
812 posts
Join Date:Joined: Jun 2011
More
Quote:
Originally Posted by mastershefis

What ROM?

Please GUYS if you want some request post your ROM and version, or post SystemUI.apk with framework-res.apk

Latest release by hephappy

Sent from my WT19i using xda premium

The Following User Says Thank You to Somyab For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes