Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[TUTORIAL] [Z] [UPDATE :- 22.04.2014] Make Advanced Volume Control Mod .101 Deodexed

OP Rajeev

22nd April 2014, 08:12 AM   |  #1  
Rajeev's Avatar
OP Senior Member
Flag Chennai , I N D I A
Thanks Meter: 11,437
 
8,556 posts
Join Date:Joined: Nov 2012
Donate to Me
More
Hi Friends

Here I Am Going To Teach You How To Make Advanced Volume Control Mod For Xperia Z Stock Deodexed .101 JB 4.3 Firmwares. This Mod Will Only Work In Deodexed .101 Roms. We Are Going To Edit Framework.jar. For That You Must Know How To De Compile And Edit framework.jar ( I Mean jar files ).

If U Don't Know De Compiling jar Files Means Go To Here.

( http://forum.xda-developers.com/show....php?t=2251719 ) And Follow The Tutorial...

Ok. Lets Begin.


STEP 1


De Compile Ur framework.jar And Go To " classout\android\view\ Folder"


There U Can Find 10 Smali Files With These Names

Quote:

VolumePanel$1.smali
VolumePanel$2.smali
VolumePanel$3.smali
VolumePanel$4.smali
VolumePanel$5.smali
VolumePanel$6.smali
VolumePanel$StreamControl.smali
VolumePanel$StreamResources.smali
VolumePanel.smali

So We Are Going To Edit These Smali Files...


(A)

Open " VolumePanel$1.smali " File With Notepad ++ and Serach for This Line

Code:
invoke-virtual {p0}, Landroid/app/Dialog;->isShowing()Z
Then Replace The Above Line With This Line

Code:
invoke-virtual {p0}, Landroid/view/VolumePanel$1;->isShowing()Z
Save And Exit Notepad ++


(B)

Open " VolumePanel$2.smali " File With Notepad ++ and Serach for This Line

Code:
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
Then Replace The Above Line With This Line

Code:
invoke-direct/range {p0 .. p0}, Ljava/lang/Object;-><init>()V
Save And Exit Notepad ++


(C)

Open " VolumePanel$3.smali " File With Notepad ++ and Serach for This Line

Code:
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
Then Replace The Above Line With This Line

Code:
invoke-direct/range {p0 .. p0}, Ljava/lang/Object;-><init>()V
Save And Exit Notepad ++


(D)

Open " VolumePanel$4.smali " File With Notepad ++ and Serach for These Lines

Code:
invoke-virtual {v0, v2}, Landroid/os/Handler;->removeMessages(I)V
invoke-virtual {v1, v2}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;
invoke-virtual {v0, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
Then Replace The Above Lines With These Lines

Code:
invoke-virtual {v0, v2}, Landroid/view/VolumePanel;->removeMessages(I)V
invoke-virtual {v1, v2}, Landroid/view/VolumePanel;->obtainMessage(I)Landroid/os/Message;
invoke-virtual {v0, v1}, Landroid/view/VolumePanel;->sendMessage(Landroid/os/Message;)Z
Save And Exit Notepad ++


(E)

Open " VolumePanel$5.smali " File With Notepad ++ and Serach for These Lines

Code:
invoke-virtual {v1, v3}, Landroid/os/Handler;->removeMessages(I)V
invoke-virtual {v2, v3}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;
invoke-virtual {v1, v2}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
Then Replace The Above Lines With These Lines

Code:
invoke-virtual {v1, v3}, Landroid/view/VolumePanel;->removeMessages(I)V
invoke-virtual {v2, v3}, Landroid/view/VolumePanel;->obtainMessage(I)Landroid/os/Message;
invoke-virtual {v1, v2}, Landroid/view/VolumePanel;->sendMessage(Landroid/os/Message;)Z
Save And Exit Notepad ++


(F)

Open " VolumePanel$6.smali " File With Notepad ++ and Serach for This Line

Code:
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
Then Replace The Above Line With This Line

Code:
invoke-direct/range {p0 .. p0}, Ljava/lang/Object;-><init>()V
Save And Exit Notepad ++


(G)

Open " VolumePanel$StreamControl.smali " File With Notepad ++ and Serach for This Line

Code:
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
Then Replace The Above Line With This Line

Code:
invoke-direct/range {p0 .. p0}, Ljava/lang/Object;-><init>()V
Save And Exit Notepad ++


STEP 2

Download And Extract The Files From The Attachment. Copy The Two Extracted Files and Paste It To " classout\android\view\ Folder ". It Will Ask For Replacement. Click Yes. ( Replace It )


STEP 3

Re Compile The framework.jar and Move To system/framework with Right Permission and Reboot. Or Make A Flashable Zip and Flash It Via Recovery , Wipe Cache and Dalvik Cache and Reboot..

Enjoy...


DOWNLOADS

SmaliS.zip


CREDIT

My Brother @DaRk-L0rD For Some Tips
Last edited by Rajeev; 22nd April 2014 at 08:22 AM.
The Following 14 Users Say Thank You to Rajeev For This Useful Post: [ View ]
22nd April 2014, 08:33 AM   |  #2  
DaRk-L0rD's Avatar
Recognized Contributor / Themer
Isla de Muerte
Thanks Meter: 5,283
 
2,083 posts
Join Date:Joined: Sep 2012
Donate to Me
More
Great one bro!
The Following 2 Users Say Thank You to DaRk-L0rD For This Useful Post: [ View ]
22nd April 2014, 11:30 AM   |  #3  
dipesh1502's Avatar
Recognized Themer
Flag MUMbai
Thanks Meter: 3,758
 
2,389 posts
Join Date:Joined: Sep 2013
Donate to Me
More
Gonna try that asap
Well done bro
Proud of you
The Following User Says Thank You to dipesh1502 For This Useful Post: [ View ]
5th June 2014, 05:35 PM   |  #4  
Senior Member
Thanks Meter: 53
 
145 posts
Join Date:Joined: Mar 2014
More
Advanced Volume Control
hi there thanks for tut bro.
I tried this on Xperia C but the this files are not present in framework.jar.
But I found this files in secondary-framework.jar
only VolumePanel$1 to $5 are present.
Pls can you help in moding this files. thanks
Attached Thumbnails
Click image for larger version

Name:	VolumePanel.png
Views:	119
Size:	5.4 KB
ID:	2782152  
5th June 2014, 05:55 PM   |  #5  
Rajeev's Avatar
OP Senior Member
Flag Chennai , I N D I A
Thanks Meter: 11,437
 
8,556 posts
Join Date:Joined: Nov 2012
Donate to Me
More
Quote:
Originally Posted by Xenon1978

hi there thanks for tut bro.
I tried this on Xperia C but the this files are not present in framework.jar.
But I found this files in secondary-framework.jar
only VolumePanel$1 to $5 are present.
Pls can you help in moding this files. thanks


Is Xperia C got Android 4.4.2 ?
5th June 2014, 05:58 PM   |  #6  
Senior Member
Thanks Meter: 53
 
145 posts
Join Date:Joined: Mar 2014
More
Quote:
Originally Posted by Rajeev

Is Xperia C got Android 4.4.2 ?

no xperia c is only jb 4.2.2
5th June 2014, 06:02 PM   |  #7  
Rajeev's Avatar
OP Senior Member
Flag Chennai , I N D I A
Thanks Meter: 11,437
 
8,556 posts
Join Date:Joined: Nov 2012
Donate to Me
More
Quote:
Originally Posted by Xenon1978

no xperia c is only jb 4.2.2

Will take a look at tomorrow bro. Now in home and no PC
5th June 2014, 06:12 PM   |  #8  
Senior Member
Thanks Meter: 53
 
145 posts
Join Date:Joined: Mar 2014
More
Quote:
Originally Posted by Rajeev

Will take a look at tomorrow bro. Now in home and no PC

ok thanks bro if you need the secondary-framework.jar let me know I will upload it here
7th June 2014, 07:51 PM   |  #9  
Hamidreza2010's Avatar
Senior Member
Thanks Meter: 197
 
606 posts
Join Date:Joined: Jan 2013
More
hi bro
thanks for good tut

but 2 thing:

1- in the first post you said we should edit to:

VolumePanel$1.smali
VolumePanel$2.smali
VolumePanel$3.smali
VolumePanel$4.smali
VolumePanel$5.smali
VolumePanel$6.smali
VolumePanel$StreamControl.smali
VolumePanel$StreamResources.smali
VolumePanel.smali

but dont say any thing about VolumePanel$StreamResources.smali?


2- im try on sp , but not work, im work on and find out the problem , the problem is the attachment file.attachment file special for z and should be change for work on sp

now please tell about VolumePanel$StreamResources.smali and if can please change the attachment file for sp

special thanks bro
Last edited by Hamidreza2010; 7th June 2014 at 07:55 PM.
7th June 2014, 08:03 PM   |  #10  
Rajeev's Avatar
OP Senior Member
Flag Chennai , I N D I A
Thanks Meter: 11,437
 
8,556 posts
Join Date:Joined: Nov 2012
Donate to Me
More
Quote:
Originally Posted by hamidreza2010

hi bro
thanks for good tut

but 2 thing:

1- in the first post you said we should edit to:

VolumePanel$1.smali
VolumePanel$2.smali
VolumePanel$3.smali
VolumePanel$4.smali
VolumePanel$5.smali
VolumePanel$6.smali
VolumePanel$StreamControl.smali
VolumePanel$StreamResources.smali
VolumePanel.smali

but dont say any thing about VolumePanel$StreamResources.smali?


2- im try on sp , but not work, im work on and find out the problem , the problem is the attachment file.attachment file special for z and should be change for work on sp

now please tell about VolumePanel$StreamResources.smali and if can please change the attachment file for sp

special thanks bro

Hi

VolumePanel$StreamResources.smali and volumepanel.smali is for specialy edited for XZ. It won't work in Other Phones. I don't hav time to edit that smalis for other phones.. Sorry

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes