[MOD][01-26-2013] Enable Call Recording (Deodexed OTA I605 JB)

ryun33

Senior Member
Jun 19, 2010
59
37
0
Reason:
There have been a lot of mods out that enable call recording for your phone, but none that I have found enable all of the "voice_call_recording*" features.

Screen Shots:
start_record.jpg stop_record.jpg recording.jpg
Start recording, Stop recording, While recording

Flashing:
1. Make a backup of "/system/app/SecPhone.apk" (or do a full backup its up to you)
2. Boot into TWRP and Flash. (I have only tested on TWRP, but I don't see why it wouldn't work with CWM)
3. Reboot

Github Repo
Call Recording Repo

Download:
Mod_CallRecording_v1.5_1-25-2013.zip - 5.87 MB

Technical:

I have enabled the following Phone Features:
* voice_call_recording
* voice_call_recording_menu
* voice_call_recording_second_call_ongoing
* feature_ctc (contact name used for file name)

Modding process:
1. Grab "/system/app/SecPhone.apk" (my rom is deodexed)
2. Now open up the apk with 7zip or something comparable and grab the file classes.dex and store it in a folder to work with.
3. decompile with baksmali
4. Find and open the file PhoneFeatures.smali
5. Find the string "invoke-static {}, Lcom/android/phone/PhoneFeature;->makeFeatureForUsa()V"
6. Then make the following edits:
Code:
    invoke-static {}, Lcom/android/phone/PhoneFeature;->makeFeatureForUsa()V

    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;

    sget-object v0, Lcom/android/phone/PhoneFeature;->mFeatureList:Ljava/util/HashMap;
    const-string v2, "voice_call_recording_menu"
    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;

    sget-object v0, Lcom/android/phone/PhoneFeature;->mFeatureList:Ljava/util/HashMap;
    const-string v2, "voice_call_recording_second_call_ongoing"
    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;

    sget-object v0, Lcom/android/phone/PhoneFeature;->mFeatureList:Ljava/util/HashMap;
    const-string v2, "feature_ctc"
    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;
7. Save the file
8. Reassemble the dex with smali
9. Drop it back in the zip, and your good to go!

Note: I Used baksmali-1.4.1.jar and smali-1.4.1.jar to disassemble and reassemble classes.dex
 
Last edited:

techgov8

Senior Member
Jul 10, 2012
886
156
0
Re: [MOD] Enable Call Recording (Deodexed OTA I605VRALJB)

Just flashed and tested and works great. Thanks!

Doin' big thangs from my Note Deuce
 

eikast

Senior Member
Feb 22, 2012
250
54
0
Re: [MOD] Enable Call Recording (Deodexed OTA I605VRALJB)

Thanks. This is amazing.

Sent from my SCH-I605 using Tapatalk 2
 

GTvert90

Senior Member
Oct 17, 2010
528
47
0
Re: [MOD] Enable Call Recording (Deodexed OTA I605VRALJB)

Works great on beans 6 thanks

Sent from my SCH-I605 using Tapatalk 2
 

dieseldane

Member
Jul 12, 2006
46
2
0
Ok..little help..exactly where can I find the recordings afterwords?
It records great... (I think) just dont know where they are stored...

Sent from my SCH-I605 using xda app-developers app
 

JeramyEggs

Senior Member
Jan 4, 2011
1,107
420
0
Charleston Il
If you look in the voice recorder app, you should find it there. Unfortunately, it wipes out network mode in settings/more/mobile networks. After I run this on my stock deodex rom, I lose the ability to change network modes. I am going ro nandroid back, but if it didn't do this, I would love this mod.

Sent from my SCH-I605 using Tapatalk 2
 

FrostyOrDie

Senior Member
Feb 27, 2012
392
77
0
If you look in the voice recorder app, you should find it there. Unfortunately, it wipes out network mode in settings/more/mobile networks. After I run this on my stock deodex rom, I lose the ability to change network modes. I am going ro nandroid back, but if it didn't do this, I would love this mod.

Sent from my SCH-I605 using Tapatalk 2
Can you elaborate? Are you unable to switch from 4g to 3g and back?

beamed from transporter room 3
 

JeramyEggs

Senior Member
Jan 4, 2011
1,107
420
0
Charleston Il
I am able to function in both 3g, and 4g. I am not able to change settings in the network mode in settings/more settings/. Network mode is usually at the end of the string above, but when you flash the mod, it stops you from being able to change from cdma/lte to global. I know there are other ways of doing it, but I freaked out when I tried changing settings with a app, and lost 4g. If it didnt remove it, I could have switched back easier. It took me awhile to track down what caused me to lose the choice. Like I said, I love this mod, and am not really complaining. I just didnt want others to find out the hard way.:)

Sent from my SCH-I605 using Tapatalk 2
 

crash613

Senior Member
Mar 13, 2008
267
39
0
Can someone help out a noob with a basic question?

I I have a Note 2 on Verizon (i605). I am rooted using Exynos Abuse. Therefore i have not used Odin or have alternate loaders or whatever.

That being the case, am i just able to download Odin and then hook up the note and somehow install it?

can someone provide a little more detail for someone in my position? thanks
 

mobius0322

Senior Member
Mar 16, 2013
51
4
0
Where?

If you look in the voice recorder app, you should find it there. Unfortunately, it wipes out network mode in settings/more/mobile networks. After I run this on my stock deodex rom, I lose the ability to change network modes. I am going ro nandroid back, but if it didn't do this, I would love this mod.

Sent from my SCH-I605 using Tapatalk 2
Still can't find the recording..what recording app are you referring to ..?
 

tiazek

Member
Apr 5, 2013
43
12
0
Hi, would you please explain what exactly does that features mean?

* voice_call_recording
* voice_call_recording_menu
* voice_call_recording_second_call_ongoing

I believe "voice_call_recording_menu" adds the "Record voice/Stop recording" to the menu. What about the others? Does voice_call_recording adds the "Record" button instead of the "Add call"? Because I don't see that button in the screenshots provided.

Also, if you enable "feature_ctc", do you get an option somewhere to turn it on/off? Or it just stays permanently?

Thank you.

Edit: The code blocks for the "voice_call_recording_second_call_ongoing" and "feature_ctc" doesn't have the line "const/4 v4, 0x1". Is this intended or a typo?
 
Last edited: