[Galaxy Y GT-S5360 General] LittlEvil:
Hello today I am Bring My first thread how to ad AF Volume Panel to Android Mobile Its Very Easy Methods to Do it. I have waste many time to do make some smali codes so don't kang this smali .ok Lets Start

Requirement:

Apktool http://xdaforums.com/showthread.php?t=1755243

Framework.jar from ur phone

Framework-res.apk from ur phone

Nice Brain to Understand

Instructions:

Step 1 :- Decompile Framework-res.apk

Step 2 :- Open decompiled folder / values / ids.xml and Merged down the Framework-res.zip with ur Decompiled Folder

Step 3 :-

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

before </resources>

Step 4 :- Open layout/volume_adjust.xml Remove All lines

Step 5 :- Add This

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_horizontal" android:orientation="vertical" android:background="@drawable/panel_background" android:layout_width="300.0dip" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<TextView android:textAppearance="?textAppearanceMedium" android:id="@id/message" android:layout_width="0.0dip" android:layout_height="0.0dip" />
<TextView android:textAppearance="?textAppearanceSmall" android:id="@id/additional_message" android:layout_width="0.0dip" android:layout_height="0.0dip" />
<LinearLayout android:gravity="left|center" android:orientation="horizontal" android:layout_width="280.0dip" android:layout_height="45.0dip" android:layout_marginTop="6.0dip" android:layout_marginBottom="6.0dip">
<ImageView android:id="@id/other_stream_icon" android:padding="0.0dip" android:layout_width="42.0dip" android:layout_height="32.0dip" />
<ImageView android:id="@id/ringer_stream_icon" android:padding="0.0dip" android:layout_width="42.0dip" android:layout_height="32.0dip" />
<ProgressBar android:id="@id/level" android:layout_width="215.0dip" android:layout_height="32.0dip" android:layout_marginRight="16.0dip" android:progressDrawable="@drawable/progress_volume_adjust" style="?android:attr/progressBarStyleHorizontal" />
<TextView android:textAppearance="?textAppearanceSmall" android:id="@id/warning_message_af" android:layout_width="195.0dip" android:layout_height="wrap_content" android:layout_marginLeft="15.0dip" android:layout_marginTop="3.0dip" android:layout_marginRight="15.0dip" android:layout_marginBottom="5.0dip" />
</LinearLayout>
</LinearLayout>

Step 6 :- Recompile the framework-res.apk

Step 7 :- Decompile The Output framework-res.apk one

Step 8 :- Open values/public.xml

Step 9 :- Search for

<public type="id" name="warning_message"

Step 10 :- Note Down public id we need

Step 11 :- Decompile framework.jar

Step 12 :- Downloads The Attachment and merged with ur Decompiled folder

Step 13 :- Open smali / android / view

Step 14 :- Open VolumePanel

Step 15 :- Search for 0x1020263

Step 16 :- You will See

.line 148
const v4, 0x1020263

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

move-result-object v4

check-cast v4, Landroid/widget/TextView;

iput-object v4, p0, Landroid/view/VolumePanel;->mWarningMessage:Landroid/widget/TextView;

Step 17 :- Change smali codes first list five digit like if my warning_message_af is 0x01020265] Volume Panel ids is 0x1020263

then we have replace waring public codes id to volume panel ids only last five digit

Step 18 :- Recompile The Framework.jar

Step 19 :- Sign The The Two apps

Step 20:- Push to ur phone

Step 21 :- Happy Modding

Result: