[Samsung Galaxy W I8150] adikasgw:
Make Button Toggle

Screenshot: http://s23.postimg.org/woufjtqx7/attachment_php.jpg

To be prepared:

Apktool/Apkmanger

SystemUI.apk deodex only

Notepad ++

1, Decompile SystemUI open folder smali\com\android\systemui\statusbar

and search file StatusBarService.smali open with Notepad++ press Ctrl F search by keyword “quickpanel”

Before:

.local v3, qsv:Lcom/lidroid/systemui/quickpanel/PowerWidget; const/4 v8, 0x1

invoke-virtual {v3}, Lcom/lidroid/systemui/quickpanel/PowerWidget;->setupWidget()V

iget-object v7, p0, Lcom/android/systemui/statusbar/StatusBarService;->mExpandedVie w:Lcom/android/systemui/statusbar/ExpandedView;

invoke-virtual {v7, v3, v8}, Lcom/android/systemui/statusbar/ExpandedView;->addVie w(Landroid/view/View;I)V

And change

.local v3, qsv:Lcom/lidroid/systemui/quickpanel/PowerWidget; const/4 v8, 0x1

invoke-virtual {v3}, Lcom/lidroid/systemui/quickpanel/PowerWidget;->setupWidget()V

iget-object v7, p0, Lcom/android/systemui/statusbar/StatusBarService;->mCloseView:L com/android/systemui/statusbar/CloseDragHa ndle;

invoke-virtual {v7, v3, v8}, Lcom/android/systemui/statusbar/CloseDragHandle;->add View(Landroid/view/View;I)V

2. Save and compile SystemUI

3. Change pemission to rw,r,r and move to system/app/

4. Reboot

Include Settings

Screnshot: http://s1.postimg.org/akfyigmbj/SC20130509_214615_copy.png

1. Make 2 .png image, and rename to

- ic_notify_quicksettings_normal.png

- ic_notify_quicksettings_pressed.png

2. Decompile SystemUI.apk an search status_bar_expanded.xml open with NotePad++

<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" />

And paste code below

<ImageView android:layout_gravity="center_vertical" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_quicksettings" android:onClick="settingsButton" />

Open file StatusBarService.smali

pate code below

# virtual methods

.method public settingsButton(Landroid/view/View;)V
.locals 3
.parameter "v"

.prologue
.line 1717
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;

move-result-object v0

new-instance v1, Landroid/content/Intent;

const-string v2, "android.settings.SETTINGS"

invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

const/high16 v2, 0x1000

invoke-virtual {v1, v2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

move-result-object v1

invoke-virtual {v0, v1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

invoke-virtual {p0}, Lcom/android/systemui/statusbar/StatusBarService;->animateCollapse()V

.line 1720
return-void
.end method

3. Make new file ic_notify_quicksettings.xml move to drawable

copy paste code below

<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@drawable/ic_notify_quicksettings_pressed" />
<item android:drawable="@drawable/ic_notify_quicksettings_normal" />
</selector>

4. Save and compile SystemUI

5. Change pemission to rw,r,r and move to system/app/

6. Reboot

Add Analog Clock

Screenshot: http://s21.postimg.org/4i6pk4mlz/image.png

1. Decompile SystemUI.apk

2. Open res/layout/status_bar_expanded.xml

paste code below

<LinearLayout android:orientation="horizontal"

<AnalogClock android:layout_width="wrap_content" android:layout_height="wrap_content" android:dial="@drawable/samurai_x" android:hand_hour="@drawable/samurai_x_hour" android:hand_minute="@drawable/samurai_x_minute" android:layout_alignParentRight="true" />

3. Download Analog clock.rar extract and move to res/drawable-ldpi

4. Save and compile SystemUI

5. Change pemission to rw,r,r and move to system/app/

6. Reboot

Add Toggle Music

Screenshot: http://s17.postimg.org/uerj1iewf/image.png

1. Decompile SystemUI.apk

2. Open file res/layout/status_bar_expanded.xml

3. Add code bellow

<LinearLayout android : orientation="horizontal"

<com.android.systemui.statusbar.TogelMusrik android:gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" />

4. Open file res/values/ids.xml

Add this code above </resources>

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

5. Donwload assets toggle music

6. Copy folder assets to /SystemUI/ here

7. Copy folder smali to /SystemUI/smali/com/android/systemui/statusbar/ here

8. Save and compile SystemUI

9. Change pemission to rw,r,r and move to system/app/

10. Reboot

Cridit: Jmkl Six

RESERVED :)