[Galaxy Y GT-S5360 Android Development] deathnotice01:
​

IF YOU DON'T KNOW WHAT YOU ARE DOING,

BETTER NOT MESS WITH YOUR SYSTEM OR ELSE IT WILL CAUSE UNDESIRED OPERATION,

[Moving Clock to status bar notifications]​

1. Decompile SYSTEMUI.apk

2. Navigate to res/layout/status_bar.xml

3. Search for this line and remove it from the xml

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

4. Go to res/values/ids,xml

add this below the last item type before </resources>

<item type="id" name="clock">false</item>

5. Now, Go to res/layout/status_bar_expanded.xml

Search for this code

<LinearLayout android:orientation="horizontal" android:background="@drawable/quickpanel_plmn_background" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">

then paste this code below the code above

<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textSize="20.0sp" android:gravity="center" android:id="@id/clock" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />

6. Recompile the apk

Additional Instructions if Modified from a custom rom:

7. Extract inside classes.dex from the unmodified systemui.apk

8. Delete classes.dex from the new systemui.apk

9. Paste classes.dex from the unmodified systemui.apk to the new systemui.apk

[Moving Carrier Logo to bottom of status bar]​

1. Decompile SYSTEMUI.apk

2. Navigate to res/layout/status_bar_expanded.xml

3. Search for this line and remove it from the xml

<com.android.systemui.statusbar.CarrierLabel android:textSize="17.659973dip" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:orientation="vertical" android:paddingBottom="1.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="1.0dip" android:layout_weight="1.0" />

4. Create a PNG with dimensions of 240x26px (240 width 26 height by pixels) save it as deathnotice_shade.png save to res/drawable-ldpi

5. Go to res/values/ids,xml

add this below the last item type before </resources>

<item type="id" name="carrier_label_background">false</item>

6. Go to res/layout/status_bar_tracking.xml

7. Search for this line

<com.android.systemui.statusbar.TrackingView android:orientation="vertical" android:paddingLeft="0.0px" android:paddingRight="0.0px" android:paddingBottom="0.0px" android:focusable="true" android:visibility="gone" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">

then paste this code below the line above

<com.android.systemui.statusbar.CarrierLabel android:textSize="18.659973dip" android:textColor="#ffffffff" android:gravity="center" android:paddingBottom="0.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="@drawable/deathnotice_shade" android:layout_marginTop="0.0dip" />

8. Recompile the APK

Additional Instructions if Modified from a custom rom:

9. Extract inside classes.dex from the unmodified systemui.apk

10. Delete classes.dex from the new systemui.apk

11. Paste classes.dex from the unmodified systemui.apk to the new systemui.apk

[Adding your own custom background to the statusbar]​

1. Decompile SYSTEMUI.apk

2. Navigate to res/layout/status_bar_tracking.xml

3. Create a PNG with dimensions of 240x301px (240 width 301 height by pixels) save it as status_bar_background.png save to res/drawable-ldpi

4. Search for this line

<com.android.systemui.statusbar.TrackingView android:orientation="vertical" android:paddingLeft="0.0px" android:paddingRight="0.0px" android:paddingBottom="0.0px" android:focusable="true" android:visibility="gone" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">

then paste this code below the line above

<View android:background="@drawable/status_bar_background" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />

5. Recompile APK

Additional Instructions if Modified from a custom rom:

6. Extract inside classes.dex from the unmodified systemui.apk

7. Delete classes.dex from the new systemui.apk

8. Paste classes.dex from the unmodified systemui.apk to the new systemui.apk

[Adding your own custom background to all the overall android UI]​

1. Decompile FRAMEWORK-RES.apk

2. Navigate to res/values/styles.xml

search for this

<style name="Theme">

3. Again from res/values/styles.xml

search for this

<item name="colorBackground">@color/colorBackground</item>

delete the line and replace it with this

<item name="colorBackground">@color/transparent</item>

4. Create a PNG with dimensions of 240x301px (240 width 301 height by pixels) save it as deathnotice_bg.png save to res/drawable-ldpi

5. Again from res/values/styles.xml

search for this

<item name="windowBackground">@drawable/screen_background_dark</item>

6. Delete the entire line then replace with this

<item name="windowBackground">@drawable/deathnotice_bg</item>

7. Recompile APK

[Adding you own clear button to statusbar]​

1. Decompile SYSTEMUI.apk

2. Navigate to res/drawable/

3. Create a xml named deathnoticeclear.xml

4. Add this code to the deathnoticeclear.xml

<?xml version="1.0" encoding="utf-8"?>

<selector

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

<item android:state_window_focused="false" android:state_enabled="true" android:drawable="@drawable/deathnotice_normal" />

<item android:state_window_focused="false" android:state_enabled="false" android:drawable="@drawable/deathnotice_disable" />

<item android:state_pressed="true" android:drawable="@drawable/deathnotice_pressed" />

<item android:state_focused="true" android:state_enabled="true" android:drawable="@drawable/deathnotice_normal" />

<item android:state_enabled="true" android:drawable="@drawable/deathnotice_normal" />

<item android:state_focused="true" android:drawable="@drawable/deathnotice_normal" />

<item android:drawable="@drawable/deathnotice_normal" />

</selector>

5. 4. Create 3 PNGs with dimensions of 24x24px (24 width 24 height by pixels) save it as

-deathnotice_normal.9.png

-deathnotice_pressed.9.png

-deathnotice_disable.9.png

save to res/drawable-ldpi

6. Navigate to res/values/styles.xml

search for

</resources>

then add this code above </resources>

<style name="Awesome.Button" parent="@android:style/Widget.Button">

<item name="android:textAppearance">?android:textAppeara nceSmallInverse</item>

<item name="android:textColor">#ffffffff</item>

<item name="android:gravity">center</item>

<item name="android:background">@drawable/deathnotice</item>

<item name="android:focusable">true</item>

<item name="android:clickable">true</item>

</style>

7. Navigate to res/layout/status_bar_expanded.xml

find this code

<Button android:textSize="13.0sp" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:layout_width="85.0dip" android:layout_height="wrap_content" android:layout_marginTop="5.0dip" android:layout_marginRight="6.0dip" android:layout_marginBottom="3.0dip" android:text="@string/status_bar_clear_all_button" style="?android:attr/buttonStyleSmall" />

delete the line above

then replace it with this code

<Button android:textSize="13.0sp" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="5.0dip" android:layout_marginRight="6.0dip" android:layout_marginBottom="3.0dip" android:text="@string/status_bar_clear_all_button" style="@style/Awesome.Button" />

8. Navigate to res/values/strings.xml

find this code

<string name="status_bar_clear_all_button">Clear</string>

delete the code above

replace it with this

<string name="status_bar_clear_all_button"></string>

9. Recompile APK

Additional Instructions if Modified from a custom rom:

10. Extract inside classes.dex from the unmodified systemui.apk

11. Delete classes.dex from the new systemui.apk

12. Paste classes.dex from the unmodified systemui.apk to the new systemui.apk

WILL ADD MOARE SOOOOON!

HIT THAT THANKS BUTTON YOU UNGRATEFUL PERSON!

[/right]