[TUTORIAL] [MOD] How to add AF Volume Panel

Search This thread

LittlEvil

Senior Member
Jul 3, 2014
254
369
Looking for it
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:

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 :-
Code:
                        <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
Code:
<?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

Code:
<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

HTML:
.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:

attachment.php

 

Attachments

  • framework-res..zip
    2.2 KB · Views: 77
  • Smali.zip
    7.3 KB · Views: 75
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 4
    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:

    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 :-
    Code:
                            <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
    Code:
    <?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

    Code:
    <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

    HTML:
    .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:

    attachment.php

    1
    @op Can i add your guide on my thread ?
    1
    Sure



    :good: Yeah Sure by pressing Thanks and Giving Proper Credit check my other guide maybe useful for u http://xdaforums.com/showpost.php?p=53960404&postcount=2
    1
    Hi
    Thanks alot
    I change my volume panel :eek:
    --------------
    Is a way to add sound setting to volume panel??
    Excuse me For MY Bad ENGLISH:D
    1
    Hi
    Thanks alot
    I change my volume panel :eek:
    --------------
    Is a way to add sound setting to volume panel??
    Excuse me For MY Bad ENGLISH:D

    Thx

    I have already try I have make it when I implemented to the system it is exception and so I drop this project


    Sent from my SM-G530H using XDA Free mobile app