[Galaxy Y GT-S5360 Themes and Apps] MuSaddiq:
Hi Guys, I saw that evanlocked have not yet updated his guide

FlyMeOS StatusBar Mod as he is busy with his life. So I have made a guide on it.

Preview:

Requirements:

ApkTool

NotePad++

SystemUI.apk

framework-res.apk

SystemUI.zip

So let's start..

1. Decompile SystemUI.apk using ApkTool

2. Extract SystemUI.zip and copy the smali files in their respective folders

3. Navigate to SystemUI\res\layout and open status_bar.xml

with NotePad++

4. Compare your status_bar.xml with this

<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.StatusBarView android:orientation="vertical" android:background="#00000000" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="2.0dip" android:paddingRight="2.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<RelativeLayout android:orientation="horizontal" android:id="@id/clock_panel" android:layout_width="wrap_content" android:layout_height="wrap_content">
<com.b16h22.statusbar.ClockHolo android:textSize="10.0sp" android:layout_gravity="center_vertical" android:id="@id/clock" android:paddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<com.b16h22.statusbar.Day android:textSize="0.0px" android:gravity="center_vertical" android:id="@id/dayView" android:layout_width="0.0px" android:layout_height="0.0px" android:layout_marginLeft="0.0dip" android:layout_marginTop="0.0dip" android:layout_toRightOf="@id/clock" />
<com.b16h22.statusbar.Date android:textSize="1.0sp" android:gravity="center_vertical" android:id="@id/dateView" android:paddingTop="16.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_marginTop="5.0dip" android:layout_toRightOf="@id/clock" />
<LinearLayout android:orientation="vertical" android:paddingLeft="6.0dip" android:paddingRight="0.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:gravity="right" android:paddingLeft="2.0dip" android:paddingRight="2.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0">
<com.android.systemui.statusbar.IconMerger android:gravity="right" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:paddingRight="2.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0">
<LinearLayout android:gravity="right" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</RelativeLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:background="#ff000000" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="8.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
</ImageSwitcher>
<com.android.systemui.statusbar.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="7.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@*android:style/Animation.LockScreen" android:textColor="#ffffffff" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@*android:style/Animation.LockScreen" android:textColor="#ffffffff" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.TickerView>
</LinearLayout>
<com.android.systemui.statusbar.DateView android:textAppearance="@*android:style/TextAppearance.StatusBar.Icon" android:textColor="#00000000" android:gravity="left|center" android:id="@id/date" android:background="#ff000000" android:paddingLeft="0.0px" android:paddingRight="0.0px" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" />
</com.android.systemui.statusbar.StatusBarView>

5. Open SystemUI\res\values\ids.xml and add these ids

<item type="id" name="clock">false</item>
<item type="id" name="dayView">false</item>
<item type="id" name="dateView">false</item>
<item type="id" name="clock_panel">false</item>

6. Recompile SystemUI and again Decompile it.

7. Open SystemUI\res\values\public.xml

8. Note public ids of these

<public type="id" name="dayView"
<public type="id" name="dateView"

9. Open SystemUI\smali\com\b16h22\statusbar\Day.smali

Find this code

const v7, [color="red"]0x7f09002b[/color]

Replace the highlighted text with public id of dayView

10. Open SystemUI\smali\com\b16h22\statusbar\Date.smali

Find these codes

const v4, [color="red"]0x7f09002c[/color]

const v7, [color="red"]0x7f09002c[/color]

Replace the highlighted text with public id of dateView

11. Recompile SystemUI.apk

12. Decompile framework-res.apk

13. Open framework-res\res\values\dimens.xml

14. Find this code

<dimen name="status_bar_height">25.0dip</dimen>

Change it to

<dimen name="status_bar_height">40.0dip</dimen>

15. Now find this code

<dimen name="status_bar_icon_size">25.0dip</dimen>

Change it to

<dimen name="status_bar_icon_size">20.0dip</dimen>

16. Recompile framework-res.apk

17. Push SystemUI.apk to system\app and

framework-res.apk to system\framework and

set proper permissions (rw-r--r--)

Change StatusBar Color

To change statusbar color

Decompile SystemUI

open res/layout/statusbar.xml

find this line

<com.android.systemui.statusbar.StatusBarView android:orientation="vertical" android:background="[COLOR="Red"]#00000000[/COLOR]"

change the highlighted hex code with your color hex code

Recompile SystemUI

push it to system/app

set proper permissions(rw-r--r--)

Add Day over Date

Preview:

To add day over the date

Decompile SystemUI

open res/layout/statusbar.xml

find this line

<com.b16h22.statusbar.Day android:textSize="0.0px" android:gravity="center_vertical" android:id="@id/dayView" android:layout_width="0.0px" android:layout_height="0.0px" android:layout_marginLeft="0.0dip" android:layout_marginTop="0.0dip" android:layout_toRightOf="@id/clock" />

change it to

<com.b16h22.statusbar.Day android:textSize="1.0sp" android:gravity="center_vertical" android:id="@id/dayView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_toRightOf="@id/clock" />

then find this line

<com.b16h22.statusbar.Date android:textSize="1.0sp" android:gravity="center_vertical" android:id="@id/dateView" android:paddingTop="16.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_marginTop="5.0dip" android:layout_toRightOf="@id/clock" />

change it to

<com.b16h22.statusbar.Date android:textSize="1.0sp" android:gravity="center_vertical" android:id="@id/dateView" android:paddingTop="16.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_toRightOf="@id/clock" android:layout_alignParentBottom="true" />

Recompile SystemUI

Push it to system\app

set proper permissions(rw-r--r--)

Remove Date

Preview:

To remove date

Decompile SystemUI

open res/layout/statusbar.xml

find this line

<com.b16h22.statusbar.Date android:textSize="1.0sp" android:gravity="center_vertical" android:id="@id/dateView" android:paddingTop="16.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_marginTop="5.0dip" android:layout_toRightOf="@id/clock" />

change it to

<com.b16h22.statusbar.Date android:textSize="0.0px" android:gravity="center_vertical" android:id="@id/dateView" android:paddingTop="0.0dip" android:layout_width="0.0px" android:layout_height="0.0px" android:layout_marginLeft="0.0dip" android:layout_marginTop="0.0dip" />

Recompile SystemUI

Push it to system\app

set proper permissions(rw-r--r--)

24-hour format clock

(Thanks to Minions_Army)

Preview:

To use 24-hour format clock

Download 24Hours_Smali.zip

MediaFire Link

DevHost Link

Extract it

Decompile SystemUI

Navigate to smali\b16h22\statusbar\

Copy and Paste the Extracted ClockHolo.smali there

if asked to replace, click yes

Recompile SystemUI

Push it to system\app

set proper permissions(rw-r--r--)

Credits:

MatZ69

Minions_Army

evanlocked

b16h22