FORUMS

Index Project For XDA Device Subforums

Another ambitious project from the collaborative efforts of Recognized Contributors and Forum … more

The Atlas of XDA

A few weeks ago, we asked you “How Does Your Location Affect Your Life As A Power User?”. In the days that … more

New Snapdragons: Some Context & Contrast

It hasn’t been a good year for Qualcomm so far. Every device featuring the Snapdragon 810 … more

Google To Launch Next Gen Android One On July 14

The first gen of Android One devices to be launched in India in September 2014 were … more

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

124 posts
Thanks Meter: 166
 
Post Reply Subscribe to Thread Email Thread
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 Code:
.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:


Attached Files
File Type: zip framework-res..zip - [Click for QR Code] (2.2 KB, 53 views)
File Type: zip Smali.zip - [Click for QR Code] (7.3 KB, 51 views)
Last edited by AndroidFire; 21st July 2014 at 05:32 PM.
The Following 4 Users Say Thank You to AndroidFire For This Useful Post: [ View ]
 
 
21st July 2014, 02:29 PM |#2  
Senior Member
Flag Jakarta
Thanks Meter: 194
 
More
hey sir @AndroidFire i got error at drawable@progress_volume_adjust
21st July 2014, 02:41 PM |#3  
AndroidFire's Avatar
OP Senior Member
Flag Looking for it
Thanks Meter: 166
 
More
Quote:
Originally Posted by Mranggapo

hey sir @AndroidFire i got error at drawable@progress_volume_adjust

Give me Logs of Your Error


Edit: Follow These Guide http://forum.xda-developers.com/show....php?t=2806060
Last edited by AndroidFire; 21st July 2014 at 02:45 PM.
22nd July 2014, 10:56 AM |#4  
AbhiLP's Avatar
Senior Member
Flag Jammu
Thanks Meter: 66
 
More
@op Can i add your guide on my thread ?
The Following User Says Thank You to AbhiLP For This Useful Post: [ View ]
22nd July 2014, 11:22 AM |#5  
AndroidFire's Avatar
OP Senior Member
Flag Looking for it
Thanks Meter: 166
 
More
Sure
Quote:
Originally Posted by AbhiLP

@op Can i add your guide on my thread ?


Yeah Sure by pressing Thanks and Giving Proper Credit check my other guide maybe useful for u http://forum.xda-developers.com/show...04&postcount=2
Last edited by AndroidFire; 22nd July 2014 at 11:25 AM.
The Following User Says Thank You to AndroidFire For This Useful Post: [ View ]
22nd February 2015, 02:26 PM |#6  
danial199's Avatar
Junior Member
EsFaHaN
Thanks Meter: 9
 
More
Hi
Thanks alot
I change my volume panel
--------------
Is a way to add sound setting to volume panel??
Excuse me For MY Bad ENGLISH
The Following User Says Thank You to danial199 For This Useful Post: [ View ]
22nd February 2015, 03:06 PM |#7  
AndroidFire's Avatar
OP Senior Member
Flag Looking for it
Thanks Meter: 166
 
More
Quote:
Originally Posted by danial199

Hi
Thanks alot
I change my volume panel
--------------
Is a way to add sound setting to volume panel??
Excuse me For MY Bad ENGLISH

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
The Following User Says Thank You to AndroidFire For This Useful Post: [ View ]
22nd February 2015, 03:21 PM |#8  
danial199's Avatar
Junior Member
EsFaHaN
Thanks Meter: 9
 
More
Quote:
Originally Posted by AndroidFire

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

So there isnt any way??
You dont try again?
Do not do another one?

Excuse me for bad English
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes