[Android Themes] akash akya:
PART 3 : ADD VOLUME SLIDER TO QUICK PANEL :

This doesn't depend on Lidroid, any one with quick panel working may try it.... :highfive:

If your smali don't have some lines i mentioned... post your smali

SS :

lets proceed,

step 1

: Open res/values/ids.xml

add these below :

<item type="id" name="quickpanel_slider_ringer_volume">false</item>
<item type="id" name="quickpanel_slider_notification_volume">false</item>
<item type="id" name="quickpanel_slider_voice_call_volume">false</item>
<item type="id" name="quickpanel_slider_media_volume">false</item>
<item type="id" name="quickpanel_slider_alarm_volume">false</item>

step 2 :

Open res/values/strings.xml

add these below :

<string name="quickpanel_slider_ringer_volume_text">Ringtone & notifications</string>
<string name="quickpanel_slider_notification_volume_text">Notifications</string>
<string name="quickpanel_slider_voice_call_volume_text">Voice calls</string>
<string name="quickpanel_slider_media_volume_text">Music, video, games, & other media</string>
<string name="quickpanel_slider_alarm_volume_text">Alarms</string>

Open styles.xml add these below :

<style name="TextAppearance" />
<style name="TextAppearance.QuickPanel" parent="@style/TextAppearance" />
<style name="TextAppearance.QuickPanel.TextStyle" parent="@style/TextAppearance.QuickPanel">
<item name="android:textSize">12.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffcccccc</item>
<item name="android:ellipsize">marquee</item>
<item name="android:paddingLeft">6.0dip</item>
<item name="android:paddingRight">6.0dip</item>
<item name="android:fadingEdge">horizontal</item>
<item name="android:maxLines">2</item>
<item name="android:singleLine">false</item>
<item name="android:drawablePadding">12.0dip</item>
<item name="android:textAllCaps">true</item>
</style>

step 3 :

Open res/layout/quickpanel_quick_settings_space.xml

compare your code with mine to get layout as in screenshot...

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.lidroid.systemui.quickpanel.PowerWidget android:id="@id/adi_widget" android:paddingTop="0.0dip" android:paddingBottom="0.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="50.0dip" />
<TextView android:textSize="14.0dip" android:textStyle="bold" android:gravity="center" android:layout_gravity="top|center" android:background="#60000000" android:layout_width="fill_parent" android:layout_height="25.0dip" android:layout_marginTop="10.0dip" android:layout_marginBottom="10.0dip" android:text="Volume Panel" android:singleLine="true" style="@style/TextAppearance.QuickPanel.TextStyle" />
<ScrollView android:id="@id/scroll" android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="0.0dip" android:layout_marginBottom="30.0dip" android:overScrollMode="never">
<LinearLayout android:gravity="left" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="10.0dip">
<FrameLayout android:background="#00ffffff" android:padding="3.0dip" android:layout_width="fill_parent" android:layout_height="65.0dip">
<TextView android:gravity="left" android:layout_gravity="top|left|center" android:layout_width="wrap_content" android:layout_height="15.0dip" android:layout_marginTop="0.0dip" android:layout_marginBottom="10.0dip" android:text="@string/quickpanel_slider_media_volume_text" android:singleLine="true" style="@style/TextAppearance.QuickPanel.TextStyle" />
<LinearLayout android:layout_gravity="bottom|center" android:orientation="horizontal" android:padding="10.0dip" android:focusable="true" android:clickable="true" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="2.0dip">
<ImageView android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@*android:drawable/ic_media_ff" android:scaleType="center" />
<SeekBar android:id="@id/quickpanel_slider_media_volume" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="0.0dip" android:layout_centerVertical="true" />
</LinearLayout>
</FrameLayout>
<FrameLayout android:background="#00ffffff" android:padding="3.0dip" android:layout_width="fill_parent" android:layout_height="65.0dip">
<TextView android:gravity="left" android:layout_gravity="top|left|center" android:layout_width="wrap_content" android:layout_height="15.0dip" android:layout_marginTop="0.0dip" android:layout_marginBottom="10.0dip" android:text="@string/quickpanel_slider_ringer_volume_text" android:singleLine="true" style="@style/TextAppearance.QuickPanel.TextStyle" />
<LinearLayout android:layout_gravity="bottom|center" android:orientation="horizontal" android:padding="10.0dip" android:focusable="true" android:clickable="true" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="2.0dip">
<ImageView android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@*android:drawable/ic_audio_phone" android:scaleType="center" />
<SeekBar android:id="@id/quickpanel_slider_ringer_volume" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="0.0dip" android:layout_centerVertical="true" />
</LinearLayout>
</FrameLayout>
<FrameLayout android:background="#00ffffff" android:padding="3.0dip" android:layout_width="fill_parent" android:layout_height="65.0dip">
<TextView android:gravity="left" android:layout_gravity="top|left|center" android:layout_width="wrap_content" android:layout_height="15.0dip" android:layout_marginTop="0.0dip" android:layout_marginBottom="10.0dip" android:text="@string/quickpanel_slider_alarm_volume_text" android:singleLine="true" style="@style/TextAppearance.QuickPanel.TextStyle" />
<LinearLayout android:layout_gravity="bottom|center" android:orientation="horizontal" android:padding="10.0dip" android:focusable="true" android:clickable="true" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="2.0dip">
<ImageView android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@*android:drawable/ic_audio_alarm" android:scaleType="center" />
<SeekBar android:id="@id/quickpanel_slider_alarm_volume" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="0.0dip" android:layout_centerVertical="true" />
</LinearLayout>
</FrameLayout>
<FrameLayout android:background="#00ffffff" android:padding="3.0dip" android:layout_width="fill_parent" android:layout_height="65.0dip">
<TextView android:gravity="left" android:layout_gravity="top|left|center" android:layout_width="wrap_content" android:layout_height="15.0dip" android:layout_marginTop="0.0dip" android:layout_marginBottom="10.0dip" android:text="@string/quickpanel_slider_voice_call_volume_text" android:singleLine="true" style="@style/TextAppearance.QuickPanel.TextStyle" />
<LinearLayout android:layout_gravity="bottom|center" android:orientation="horizontal" android:padding="10.0dip" android:focusable="true" android:clickable="true" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="2.0dip">
<ImageView android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@*android:drawable/ic_audio_ring_notif" android:scaleType="center" />
<SeekBar android:id="@id/quickpanel_slider_voice_call_volume" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="0.0dip" android:layout_centerVertical="true" />
</LinearLayout>
</FrameLayout>
<FrameLayout android:background="#00ffffff" android:padding="3.0dip" android:layout_width="fill_parent" android:layout_height="65.0dip">
<TextView android:gravity="left" android:layout_gravity="top|left|center" android:layout_width="wrap_content" android:layout_height="15.0dip" android:layout_marginTop="0.0dip" android:layout_marginBottom="10.0dip" android:text="@string/quickpanel_slider_notification_volume_text" android:singleLine="true" style="@style/TextAppearance.QuickPanel.TextStyle" />
<LinearLayout android:layout_gravity="bottom|center" android:orientation="horizontal" android:padding="10.0dip" android:focusable="true" android:clickable="true" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="2.0dip">
<ImageView android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@*android:drawable/ic_audio_notification" android:scaleType="center" />
<SeekBar android:id="@id/quickpanel_slider_notification_volume" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="0.0dip" android:layout_centerVertical="true" />
</LinearLayout>
</FrameLayout>
</LinearLayout>
</ScrollView>
</LinearLayout>
</LinearLayout>

step 4 :

save, compile and decompile

goto com\android\systemui\statusbar\phone\PhoneStatusBar.smali

find :

.field private mAnimationRuning:Z

add this below :

.field private mAudioManager:Landroid/media/AudioManager;

find : ( red code may be different in your case ignore it)

.method static synthetic access$[COLOR="Red"]200[/COLOR](Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)F
.locals 1
.parameter "x0"

.prologue
.line 118
iget v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mSelfExpandVelocityPx:F

return v0
.end method

add this below :

.method static synthetic access$1101(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)Landroid/media/AudioManager;
.locals 1
.parameter

.prologue
.line 23
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mAudioManager:Landroid/media/AudioManager;

return-object v0
.end method

.method static synthetic access$1200(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)Z
.locals 1
.parameter "x0"

.prologue
.line 97
iget-boolean v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mExpandedVisible:Z

return v0
.end method

step 5 :

Find

.method private setStatusBarLowProfile(Z)V

and this code above it :

.method private setQuickPanelVolumeSliders()V
.locals 12

.prologue
const/4 v11, 0x3

const/4 v10, 0x2

const/4 v9, 0x0

const/4 v7, 0x1

.line 54
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mContext:Landroid/content/Context;

const-string v6, "audio"

invoke-virtual {v5, v6}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

move-result-object v5

check-cast v5, Landroid/media/AudioManager;

iput-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mAudioManager:Landroid/media/AudioManager;

.line 57
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;

const v8, 0x7f0c00ec

invoke-virtual {v5, v8}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->findViewById(I)Landroid/view/View;

move-result-object v3

check-cast v3, Landroid/widget/SeekBar;

.line 58
.local v3, ringSlider:Landroid/widget/SeekBar;
invoke-virtual {v3, v7}, Landroid/widget/SeekBar;->setKeyProgressIncrement(I)V

.line 59
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mAudioManager:Landroid/media/AudioManager;

invoke-virtual {v5, v10}, Landroid/media/AudioManager;->getStreamMaxVolume(I)I

move-result v5

invoke-virtual {v3, v5}, Landroid/widget/SeekBar;->setMax(I)V

.line 60
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mAudioManager:Landroid/media/AudioManager;

invoke-virtual {v5, v10}, Landroid/media/AudioManager;->getStreamVolume(I)I

move-result v5

invoke-virtual {v3, v5}, Landroid/widget/SeekBar;->setProgress(I)V

.line 61
new-instance v5, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$AkashE;

invoke-direct {v5, p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$AkashE;-><init>(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)V

invoke-virtual {v3, v5}, Landroid/widget/SeekBar;->setOnSeekBarChangeListener(Landroid/widget/SeekBar$OnSeekBarChangeListener;)V

.line 80
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;

const v8, 0x7f0c00ed

invoke-virtual {v5, v8}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->findViewById(I)Landroid/view/View;

move-result-object v2

check-cast v2, Landroid/widget/SeekBar;

.line 81
.local v2, notificationSlider:Landroid/widget/SeekBar;
invoke-virtual {v2, v7}, Landroid/widget/SeekBar;->setKeyProgressIncrement(I)V

.line 82
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mAudioManager:Landroid/media/AudioManager;

const/4 v6, 0x5

invoke-virtual {v5, v6}, Landroid/media/AudioManager;->getStreamMaxVolume(I)I

move-result v5

invoke-virtual {v2, v5}, Landroid/widget/SeekBar;->setMax(I)V

.line 83
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mAudioManager:Landroid/media/AudioManager;

const/4 v6, 0x5

invoke-virtual {v5, v6}, Landroid/media/AudioManager;->getStreamVolume(I)I

move-result v5

invoke-virtual {v2, v5}, Landroid/widget/SeekBar;->setProgress(I)V

.line 84
new-instance v5, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$AkashD;

invoke-direct {v5, p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$AkashD;-><init>(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)V

invoke-virtual {v2, v5}, Landroid/widget/SeekBar;->setOnSeekBarChangeListener(Landroid/widget/SeekBar$OnSeekBarChangeListener;)V

.line 103
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;

const v8, 0x7f0c00ee

invoke-virtual {v5, v8}, Landroid/view/View;->findViewById(I)Landroid/view/View;

move-result-object v4

check-cast v4, Landroid/widget/SeekBar;

.line 104
.local v4, voiceCallSlider:Landroid/widget/SeekBar;
invoke-virtual {v4, v7}, Landroid/widget/SeekBar;->setKeyProgressIncrement(I)V

.line 105
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mAudioManager:Landroid/media/AudioManager;

invoke-virtual {v5, v9}, Landroid/media/AudioManager;->getStreamMaxVolume(I)I

move-result v5

invoke-virtual {v4, v5}, Landroid/widget/SeekBar;->setMax(I)V

.line 106
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mAudioManager:Landroid/media/AudioManager;

invoke-virtual {v5, v9}, Landroid/media/AudioManager;->getStreamVolume(I)I

move-result v5

invoke-virtual {v4, v5}, Landroid/widget/SeekBar;->setProgress(I)V

.line 107
new-instance v5, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$AkashC;

invoke-direct {v5, p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$AkashC;-><init>(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)V

invoke-virtual {v4, v5}, Landroid/widget/SeekBar;->setOnSeekBarChangeListener(Landroid/widget/SeekBar$OnSeekBarChangeListener;)V

.line 126
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;

const v8, 0x7f0c00ef

invoke-virtual {v5, v8}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->findViewById(I)Landroid/view/View;

move-result-object v1

check-cast v1, Landroid/widget/SeekBar;

.line 127
.local v1, mediaSlider:Landroid/widget/SeekBar;
invoke-virtual {v1, v7}, Landroid/widget/SeekBar;->setKeyProgressIncrement(I)V

.line 128
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mAudioManager:Landroid/media/AudioManager;

invoke-virtual {v5, v11}, Landroid/media/AudioManager;->getStreamMaxVolume(I)I

move-result v5

invoke-virtual {v1, v5}, Landroid/widget/SeekBar;->setMax(I)V

.line 129
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mAudioManager:Landroid/media/AudioManager;

invoke-virtual {v5, v11}, Landroid/media/AudioManager;->getStreamVolume(I)I

move-result v5

invoke-virtual {v1, v5}, Landroid/widget/SeekBar;->setProgress(I)V

.line 130
new-instance v5, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$AkashB;

invoke-direct {v5, p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$AkashB;-><init>(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)V

invoke-virtual {v1, v5}, Landroid/widget/SeekBar;->setOnSeekBarChangeListener(Landroid/widget/SeekBar$OnSeekBarChangeListener;)V

.line 149
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;

const v8, 0x7f0c00f0

invoke-virtual {v5, v8}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->findViewById(I)Landroid/view/View;

move-result-object v0

check-cast v0, Landroid/widget/SeekBar;

.line 150
.local v0, alarmSlider:Landroid/widget/SeekBar;
invoke-virtual {v0, v7}, Landroid/widget/SeekBar;->setKeyProgressIncrement(I)V

.line 151
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mAudioManager:Landroid/media/AudioManager;

const/4 v6, 0x4

invoke-virtual {v5, v6}, Landroid/media/AudioManager;->getStreamMaxVolume(I)I

move-result v5

invoke-virtual {v0, v5}, Landroid/widget/SeekBar;->setMax(I)V

.line 152
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mAudioManager:Landroid/media/AudioManager;

const/4 v6, 0x4

invoke-virtual {v5, v6}, Landroid/media/AudioManager;->getStreamVolume(I)I

move-result v5

invoke-virtual {v0, v5}, Landroid/widget/SeekBar;->setProgress(I)V

.line 153
new-instance v5, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$AkashA;

invoke-direct {v5, p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$AkashA;-><init>(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)V

invoke-virtual {v0, v5}, Landroid/widget/SeekBar;->setOnSeekBarChangeListener(Landroid/widget/SeekBar$OnSeekBarChangeListener;)V

.line 170
return-void
.end method

Step 6 :

Find these lines : (Red lines may be different)

new-instance [COLOR="Red"]v11[/COLOR], Lcom/android/systemui/statusbar/phone/PhoneStatusBar$MyTicker;

iget-object [COLOR="red"]v12[/COLOR], p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarView:Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;

invoke-direct {[COLOR="red"]v11, p0, v2, v12[/COLOR]}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$MyTicker;-><init>(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;Landroid/content/Context;Landroid/view/View;)V

iput-object [COLOR="red"]v11[/COLOR], p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mTicker:Lcom/android/systemui/statusbar/phone/Ticker;

add this above it :

invoke-direct {p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->setQuickPanelVolumeSliders()V

Step 7 :

Find this line

.method protected updateRecentsPanel()V

add this above :

.method public updateQuickPanelVolumeSliders()V
.locals 8

.prologue
.line 176
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;

const v7, 0x7f0c00ec

invoke-virtual {v5, v7}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->findViewById(I)Landroid/view/View;

move-result-object v3

check-cast v3, Landroid/widget/SeekBar;

.line 177
.local v3, ringSlider:Landroid/widget/SeekBar;
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mAudioManager:Landroid/media/AudioManager;

const/4 v6, 0x2

invoke-virtual {v5, v6}, Landroid/media/AudioManager;->getStreamVolume(I)I

move-result v5

invoke-virtual {v3, v5}, Landroid/widget/SeekBar;->setProgress(I)V

.line 180
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;

const v7, 0x7f0c00ed

invoke-virtual {v5, v7}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->findViewById(I)Landroid/view/View;

move-result-object v2

check-cast v2, Landroid/widget/SeekBar;

.line 181
.local v2, notificationSlider:Landroid/widget/SeekBar;
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mAudioManager:Landroid/media/AudioManager;

const/4 v6, 0x5

invoke-virtual {v5, v6}, Landroid/media/AudioManager;->getStreamVolume(I)I

move-result v5

invoke-virtual {v2, v5}, Landroid/widget/SeekBar;->setProgress(I)V

.line 184
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;

const v7, 0x7f0c00ee

invoke-virtual {v5, v7}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->findViewById(I)Landroid/view/View;

move-result-object v4

check-cast v4, Landroid/widget/SeekBar;

.line 185
.local v4, voiceCallSlider:Landroid/widget/SeekBar;
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mAudioManager:Landroid/media/AudioManager;

const/4 v6, 0x0

invoke-virtual {v5, v6}, Landroid/media/AudioManager;->getStreamVolume(I)I

move-result v5

invoke-virtual {v4, v5}, Landroid/widget/SeekBar;->setProgress(I)V

.line 188
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;

const v7, 0x7f0c00ef

invoke-virtual {v5, v7}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->findViewById(I)Landroid/view/View;

move-result-object v1

check-cast v1, Landroid/widget/SeekBar;

.line 189
.local v1, mediaSlider:Landroid/widget/SeekBar;
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mAudioManager:Landroid/media/AudioManager;

const/4 v6, 0x3

invoke-virtual {v5, v6}, Landroid/media/AudioManager;->getStreamVolume(I)I

move-result v5

invoke-virtual {v1, v5}, Landroid/widget/SeekBar;->setProgress(I)V

.line 192
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;

const v7, 0x7f0c00f0

invoke-virtual {v5, v7}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->findViewById(I)Landroid/view/View;

move-result-object v0

check-cast v0, Landroid/widget/SeekBar;

.line 193
.local v0, alarmSlider:Landroid/widget/SeekBar;
iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mAudioManager:Landroid/media/AudioManager;

const/4 v6, 0x4

invoke-virtual {v5, v6}, Landroid/media/AudioManager;->getStreamVolume(I)I

move-result v5

invoke-virtual {v0, v5}, Landroid/widget/SeekBar;->setProgress(I)V

.line 195
return-void
.end method

Step 8 :

Find

# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {

add this below value = {

Lcom/android/systemui/statusbar/phone/PhoneStatusBar$AkashA;,
Lcom/android/systemui/statusbar/phone/PhoneStatusBar$AkashB;,
Lcom/android/systemui/statusbar/phone/PhoneStatusBar$AkashC;,
Lcom/android/systemui/statusbar/phone/PhoneStatusBar$AkashD;,
Lcom/android/systemui/statusbar/phone/PhoneStatusBar$AkashE;,

Step 9 :

Last step : search left code in your public.xml , search right text in your PhoneStatusBar.smali replace id with your value...

quickpanel_slider_ringer_volume ----- 0x7f0c00ec
quickpanel_slider_notification_volume ------ 0x7f0c00ed
quickpanel_slider_voice_call_volume ------ 0x7f0c00ee
quickpanel_slider_media_volume ------ 0x7f0c00ef
quickpanel_slider_alarm_volume ------ 0x7f0c00f0

Note :

dont confuse with string type ie

wrong

<public type="string" name="quickpanel_slider_ringer_volume_text" id="0x7f0900d5" />

right

<public type="id" name="quickpanel_slider_ringer_volume" id="0x7f0c00ec" />

Step 10 :

Actual last step, Compile push/flash/whateva :p