Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,738,643 Members 39,774 Now Online
XDA Developers Android and Mobile Development Forum

[HOW TO] JB Disable increasing ringtone + Enable record feature w/o apktool

Tip us?
 
gharrington
Old
(Last edited by gharrington; 6th November 2012 at 08:44 PM.)
#1  
gharrington's Avatar
Senior Member - OP
Thanks Meter 10557
Posts: 2,261
Join Date: Apr 2012
Location: Brisbane

 
DONATE TO ME
Post [HOW TO] JB Disable increasing ringtone + Enable record feature w/o apktool

This Guide will show you how to Disable increasing ringtone and enable Record feature on Jellybean 4.1.1 without decompiling SecPhone.apk.

You will need to download the zip at the bottom of this thread and unpack folder to desktop.
Java jdk Installed and Environment Variables set correctly (if you donít know how Google it)
SecPhone.apk for you rom (Deodexed)
Notepad ++
And 7zip.

1. Place SecPhone.apk into SecPhone Diss folder downloaded previously.

2. Hold shift and right click mouse in folder to bring up menu and click: open command prompt here.

3. Type: java -Xmx512m -jar baksmali.jar SecPhone.apk and hit Enter. When this is finished you should have a new folder called out.

4. Go to: SecPhone Diss\SecPhone.apk\smali\com\android\phone and open Ringer$1.smali with Notepad ++.

5. Search for:Landroid/media/AudioManager;->setStreamVolume(III)V .There will be 2 entries. You want the first one, it should match the code below. The v1 v6 etc may be different!

6. Delete the line marked with -- .Increasing ringtone gone!
---------------------------------------------------------------------------------------------------------
iget-object v1,v1,Lcom/android/phone/Ringer;>mAudioManager:Landroid/media/AudioManager;

-- invoke-virtual{v1, v6, v4, v5}, Landroid/media/AudioManager;->setStreamVolume(III)V

.line 573

const/4 v1, 0x7

const-wide/16 v2,0x7d0

----------------------------------------------------------------------------------------------------------

Now for the Record function. If you donít want this function skip to step 10

7. Go to SecPhoneDiss\SecPhone.apk\smali\com\android\phone\ PhoneFeature .smali and open withNotepad ++

8. Search for invoke-static {}, Lcom/android/phone/PhoneFeature;->makeFeatureForUsa()V

9. Add the code marked with ++

----------------------------------------------------------------------------------------------------------
invoke-static {}, Lcom/android/phone/PhoneFeature;->makeFeatureForJapan()V

.line 796

:cond_d

invoke-static {}, Lcom/android/phone/PhoneFeature;->makeFeatureForUsa()V

.line 797

++sget-object v0, Lcom/android/phone/PhoneFeature;->mFeatureList:Ljava/util/HashMap;

++const-string v2, "voice_call_recording"

++const/4 v4, 0x1

++invoke-static {v4}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

++move-result-object v3

++invoke-virtual {v0, v2, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

return-void
-------------------------------------------------------------------------------------------------------------------

10. Now hold shift and right click mouse in folder to bring up menu and click: open command prompt here again and this time type: java -Xmx512m -jar smali.jar out -o classes.dex when complete you will have a new file called classes.dex

11. Right click SecPhone.apk and open archive with 7zip. Inside will be a file named classes.dex replace this one with the one just made by drag drop method.

Job done!

If this helps you the please click Thanks

Be sure to checkout my rom here: http://forum.xda-developers.com/show....php?t=1970440

Disclaimer: Do at your own risk. I am not responsible for any damage/data loss etc from doing this Mod. No one made you do it.
Attached Files
File Type: zip SecPhone Diss.zip - [Click for QR Code] (1.16 MB, 542 views)
The Following 19 Users Say Thank You to gharrington For This Useful Post: [ Click to Expand ]
 
Rob_Storm
Old
#2  
Rob_Storm's Avatar
Senior Member
Thanks Meter 15
Posts: 136
Join Date: Sep 2008
Thank you! Will be trying this today.

Sent from my SCH-I535 using Tapatalk 2
 
prabhjots
Old
#3  
prabhjots's Avatar
Senior Member
Thanks Meter 70
Posts: 370
Join Date: Jul 2012
Quote:
Originally Posted by gharrington View Post
This Guide will show you how to Disable increasing ringtone and enable Record feature on Jellybean 4.1.1 without decompiling SecPhone.apk.

You will need to download the zip at the bottom of this thread and unpack folder to desktop.
Java jdk Installed and Environment Variables set correctly (if you donít know how Google it)
SecPhone.apk for you rom (Deodexed)
Notepad ++
And 7zip.

1. Place SecPhone.apk into SecPhone Diss folder downloaded previously.

2. Hold shift and right click mouse in folder to bring up menu and click: open command prompt here.

3. Type: java -Xmx512m -jar baksmali.jar SecPhone.apk and hit Enter. When this is finished you should have a new folder called out.

4. Go to: SecPhone Diss\SecPhone.apk\smali\com\android\phone and open Ringer$1.smali with Notepad ++.

5. Search for:Landroid/media/AudioManager;->setStreamVolume(III)V .There will be 2 entries. You want the first one, it should match the code below. The v1 v6 etc may be different!

6. Delete the line marked with -- .Increasing ringtone gone!
---------------------------------------------------------------------------------------------------------
iget-object v1,v1,Lcom/android/phone/Ringer;>mAudioManager:Landroid/media/AudioManager;

-- invoke-virtual{v1, v6, v4, v5}, Landroid/media/AudioManager;->setStreamVolume(III)V

.line 573

const/4 v1, 0x7

const-wide/16 v2,0x7d0

----------------------------------------------------------------------------------------------------------

Now for the Record function. If you donít want this function skip to step 10

7. Go to SecPhoneDiss\SecPhone.apk\smali\com\android\phone\ PhoneFeature .smali and open withNotepad ++

8. Search for invoke-static {}, Lcom/android/phone/PhoneFeature;->makeFeatureForUsa()V

9. Add the code marked with ++

----------------------------------------------------------------------------------------------------------
invoke-static {}, Lcom/android/phone/PhoneFeature;->makeFeatureForJapan()V

.line 796

:cond_d

invoke-static {}, Lcom/android/phone/PhoneFeature;->makeFeatureForUsa()V

.line 797

++sget-object v0, Lcom/android/phone/PhoneFeature;->mFeatureList:Ljava/util/HashMap;

++const-string v2, "voice_call_recording"

++const/4 v4, 0x1

++invoke-static {v4}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

++move-result-object v3

++invoke-virtual {v0, v2, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/ObjectLjava/lang/Object;

return-void
-------------------------------------------------------------------------------------------------------------------

10. Now hold shift and right click mouse in folder to bring up menu and click: open command prompt here again and this time type: java -Xmx512m -jar smali.jar out -o classes.dex when complete you will have a new file called classes.dex

11. Right click SecPhone.apk and open archive with 7zip. Inside will be a file named classes.dex replace this one with the one just made by drag drop method.

Job done!

If this helps you the please click Thanks

Be sure to checkout my rom here: http://forum.xda-developers.com/show....php?t=1970440

Disclaimer: Do at your own risk. I am not responsible for any damage/data loss etc from doing this Mod. No one made you do it.
Thank you.
When we're on a call and receive another call via call waiting, answering a call gives up a dialog with 2 options:
"1. Putting caller 1 on hold
2. Ending call with caller 1"
This choice imo is very stupid, since it wastes time and negates the very purpose behind call waiting.
By the time I choose an option the call gets missed.
Can you show how to set default as "put caller 1 on hold".

Sent from my GT-I9300 using xda app-developers app
 
harryS2
Old
#4  
Member
Thanks Meter 25
Posts: 65
Join Date: Jul 2012
Thks..that a pretty simple n straight forward guide. Tried n working on deodexed ELK4 firmware.

Sent from my GT-I9300 using xda app-developers app
 
AtomicType
Old
#5  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: May 2011
Is there any guide for stock ODEXED JB rom? Please, guys, help me, really need this mode!
 
CorySCline
Old
#6  
Junior Member
Thanks Meter 2
Posts: 9
Join Date: May 2010
How should I alter these instructions for use on Ubuntu with an android development environment setup?
 
gharrington
Old
#7  
gharrington's Avatar
Senior Member - OP
Thanks Meter 10557
Posts: 2,261
Join Date: Apr 2012
Location: Brisbane

 
DONATE TO ME
Quote:
Originally Posted by CorySCline View Post
How should I alter these instructions for use on Ubuntu with an android development environment setup?
1. Insure java is installed.
2. Copy the two files downloaded baksmali.jar and smali.jar directly into home folder (remove them from SecPhone Diss folder) along with SecPhone.apk
3. Its pretty much same deal only you don't need 7zip just double click apks and they open as zip.
4.As long as the files are in home folder. instead of steps 2 + 10 just open terminal and type code.
5.In step 3 the folder created out will be created in home folder.

That should get you through if you get stuck just ask and ill try to help you. Also I just write this it might help you http://forum.xda-developers.com/show....php?t=2048132


Check out 3Minits quicklaunch panel here


The Following User Says Thank You to gharrington For This Useful Post: [ Click to Expand ]
 
F3nr1s
Old
#8  
F3nr1s's Avatar
Senior Member
Thanks Meter 285
Posts: 843
Join Date: Dec 2010
Location: Oa
its the same thing with 4.1.2 ?
 
gharrington
Old
#9  
gharrington's Avatar
Senior Member - OP
Thanks Meter 10557
Posts: 2,261
Join Date: Apr 2012
Location: Brisbane

 
DONATE TO ME
Default Re: [HOW TO] JB Disable increasing ringtone + Enable record feature w/o apktool

Quote:
Originally Posted by F3nr1s View Post
its the same thing with 4.1.2 ?
Yes mate will work for 4.1.2.


Check out 3Minits quicklaunch panel here


The Following 2 Users Say Thank You to gharrington For This Useful Post: [ Click to Expand ]
 
anuar.ultimate
Old
#10  
Junior Member
Thanks Meter 0
Posts: 3
Join Date: Sep 2012
Location: Kuala Lumpur
Default call recording for 4.2.1

Quote:
Originally Posted by gharrington View Post
Yes mate will work for 4.1.2.
will work for 4.2.1?

Tags
galaxy s3, record, ringtone, secphone.apk
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes