[MOD][i9505][CM12.1] Enable call recording from dialer

portaleus

Senior Member
Mar 11, 2014
167
84
0
Paris
Hello,

This MOD enable call recording from dialer on Galaxy S4 for CM-based ROMs.
Due to the nature of this MOD, please check your local legislation / legal advisor before using it!

I was previously using this MOD @lingowistico made for the galaxy S5, but I experienced some bugs, so I created my own modified dialer.apk file based on an official CM12.1 build. This is my first work on android and I hope it will be useful for some of you guys.

The modified dialer.apk is based on 09/04 nightly. I will update it when needed (changes in the source code).

Updated 2015-11-20

How to install:
- download the .zip file (use the last version before your nightly's date)
- go to Settings - Apps and wipe Dialer cache/data
- reboot in recovery and flash the .zip (tested with twrp-2.8.7.0-released)
- reboot system

Confirmed working on:
- i9505 jfltexx: CM12.1 and ResurrectionRemix
- i9500: CM12.1

FAQ:
- use the 3 dot menu to record call
- the 3 dot menu button only appear when call is set up
- record both way
- you can switch between recording format (AMR and AAC/m4a) in dialer settings - calls
- What did I change ? (see below)

(check etoy's tutorial in credits for more infos, but here you can learn his method)
1) extract the Dialer.apk with SystemExtractor
2) decompile Dialer.apk with Advanced ApkTool 4.1.0 and add latest apktool.jar
3) in \res\ folder delete all values-mcc* folders
4) in \res\values\bools.xml change <bool name="call_recording_enabled">false</bool> to true
5) in res\values\integers.xml edit <integer name="call_recording_audio_source">1</integer> to 4
6) recompile

Credits:
@etoy for this tutorial
@BDFreak for Advanced ApkTool and this very useful tutorial
@Anmol9808 for SystemExtractors
@lingowistico for the s5 thread
and all the talented devs from CyanogenMOD.

Version Information:
Official CM 12.1 Nightlies for i9505 S4 jfltexx
Created 2015-09-08

Press thanks if it helps!
 

Attachments

Last edited:

portaleus

Senior Member
Mar 11, 2014
167
84
0
Paris
@dingila It should work on any CM12.1 based ROM but not sure about ResurrectionRemix because many things are cherry-picked from other builds.

Could you test it and let us know? (make a nand backup first)
 

portaleus

Senior Member
Mar 11, 2014
167
84
0
Paris
Nice but quality isn't so good
You can choose between AMR and AAC format in settings.

On GT-I9505 with Phoenix v11.6 working?Tnx!
I have installed Philz Touch v6.59.0
I want to automatically record calls
As I said above, please test it on your ROM (make a nand backup first) and report here if the MOD is working or not, it takes less than 10 mins.
I cannot test every single custom rom, so test and report for others users.

Automatic recording is not a build-in feature, so it will not work.

Remember it is not a call recording app like the ones you can find in Play Store but a MOD to ENABLE the build-in call recording function. So it will only have the build-in features. Advantages are it is free, lightweight and smooth. If you want more features, try ACR or any other app.
 

dorian2kx

Senior Member
Sep 24, 2012
533
49
58
You can choose between AMR and AAC format in settings.


As I said above, please test it on your ROM (make a nand backup first) and report here if the MOD is working or not, it takes less than 10 mins.
I cannot test every single custom rom, so test and report for others users.

Automatic recording is not a build-in feature, so it will not work.

Remember it is not a call recording app like the ones you can find in Play Store but a MOD to ENABLE the build-in call recording function. So it will only have the build-in features. Advantages are it is free, lightweight and smooth. If you want more features, try ACR or any other app.
Thanks but how do I find the settings
 

portaleus

Senior Member
Mar 11, 2014
167
84
0
Paris
In this case,it is some solution?I have custom rom Phoenix v11.6
I have ust checked Phoenix forum and my MOD will not work on your rom since it is stock-based (Touchwizz).

Thanks dev....
You're welcome but I am not a dev, just a learning modder ;) !

Thanks but how do I find the settings
In the Dialer app, go to settings/calls/call recording.

And for what is worth, as far as I know, pushing the Thanks button never killed anyone! :p
 
Last edited:

SilentEYE

Senior Member
Mar 23, 2008
1,144
509
0
It's working really nice in cm 12.1. One nice thing would be the automatic call recording. Do you know if we can handle this with a cmd or Tasker profile.
For example : after call is established Tasker will execute a cmd and the record is starting afterwards.