[MOD] Phone.apk with automatic call recording (v0.3)

antsm

Senior Member
Sep 9, 2010
140
430
0
Siberia
[MOD] Phone.apk with automatic call recording

Features:

  • Automatic call recording for incoming/outgoing calls
  • Added template system for flexible naming of records. No boring VoiceRecord001.amr anymore ;)
  • Disabled stop recording on some actions related to multi-line calling (i.e Hold, Conference mode, etc)
  • Disabled stop recording when Dialer minimized to background
  • Switchable increasing ringtone

Modification consist of 2 packages:
  • Main package: Phone.apk with automatic call recording
  • Extra package: contains phone-related modifications (DialerTabActivity.apk at this moment)
nb: Main package still fully-workable without Extra package.

There are two ways to control the modification:
  • Using embedded "Settings" menu (included in Extra package)


  • Using standalone Automatic Call Recording Control app from Dark3n

    Features:
    -Turn call recording on/off for incoming/outgoing calls.
    -Change file naming pattern for recorded calls.
    -View .rec_template file
    -Optional Prompt to delete recording after Call
    -Turn increasing ring On/Off
Which way to prefer? You can try both and choose the best for you.
Again, if you are using themed FW and don't want to break your general style by using unthemed apps (e.g DialerTabActivity.apk), so just use a Main package together with an Automatic Call Recording Control app.


All records are save in /sdcard/Sounds/CallRecords/. You can use stock "Voice Recorder" app to playback.

System requirements: Tested on SGS GT-i9000 (XWJS3). Most likely should work on any 2.2.1 FW.
Probably will not work on 2.2 FW's.

[*] Flash using CWM or Recovery 2e.

During update process, script will backup your original files to /sdcard/tmp/
To roll it back, flash update_restore_[main_extra_pkgs] file

History:
Version 0.3:
  • Now project consist of Main and Extra packages

  • Main (Phone.apk): Completely changed settings storing mechanism: all settings are saved in /sdcard/rec_settings.xml in XML format
    (no more .rec_template, .norec_in, .norec_out files)
  • Main (Phone.apk): Added "Disable increasing ringtone" option
  • Main (Phone.apk): Fixed bug with special characters in filename
  • Extra (DialerTabActivity.apk): Embedded "Settings" menu

  • Installer: "copy" routines moved from update.sh to native updater-script
    (should improve compatibility in some cases. Now *.sh using only for backup/restore procedure)
  • Updated restoring script
Version 0.2a:
  • Issue with filepath creation was finally solved.
Version 0.2:
  • Forced sdcard/Sounds/CallRecords/ creation (if you've got "Fail Recording" it should fix it)
  • Some works on BT-recording. Need more reports.
Version n/a: initial release
Thanks to: designgears, wes58 for files from Asian ROM which enable call recording.
 

Attachments

Last edited:

ragin

Senior Member
Dec 17, 2007
1,743
158
0
Hubli
Confirmed working with Calls made & Calls received.

I have rated this thread with a 5-start that it deserves.
 
Last edited:

yogeesharma

Senior Member
Jul 22, 2008
346
29
0
Working perfectly on darky rom 9.3 beta 3

If possible, pl include some option to select whether to keep or not to keep recording after call

Sent from my GT-I9000 (Darky 9.3 beta) using XDA App
 

ronlkh

Senior Member
Nov 23, 2003
200
27
0
ronlkh, i know you worked in this way.
Can we cooperate to fix it? ;)
You can use just replace only the libaudiopolicy.so and dont touch other 2files but the conversation recorded could be softer. I am currently testing the libaudio.so and libaudioflinger.so from M110s but still the same. I dont know about coding development but if there is anything i can help I will be available. If I can find a better lib file I will update you.

I am more interested in the callback dialer. If you can code this dialer I will be very happy to help you in developing because I use callback service alot. I know how the procedure works.

cheers!
 
  • Like
Reactions: enahsak

antsm

Senior Member
Sep 9, 2010
140
430
0
Siberia
ragin said:
Confirmed working with Calls made & Calls received.
yogeesharma said:
Working perfectly on darky rom 9.3 beta 3
Cool! ;)
yogeesharma said:
If possible, pl include some option to select whether to keep or not to keep recording after call
Hmm, when call is ended (you press "End call" button or remote side drop it) record is stops. What behavior do you expect? ;)
 

antsm

Senior Member
Sep 9, 2010
140
430
0
Siberia
ronlkh said:
You can use just replace only the libaudiopolicy.so and dont touch other 2files but the conversation recorded could be softer. I am currently testing the libaudio.so and libaudioflinger.so from M110s but still the same. I dont know about coding development but if there is anything i can help I will be available. If I can find a better lib file I will update you.
Thanks for collaboration. I'll check it :)
ronlkh said:
I am more interested in the callback dialer. If you can code this dialer I will be very happy to help you in developing because I use callback service alot. I know how the procedure works.
I haven't enough experience just in Android coding to create app from scratch (need dive into SDK, IDE and so on and have time on it ;) ), but have some C/JAVA experience that's far enough to modify exist applications ;)
atomek1000 said:
Do application like voodoo to choose Recording ON/OFF
titooo7 said:
It would be nice if we can disable the automatic recording through the settings menu instead of creating files.
It's good idea, but:
need dive into SDK, IDE and so on and have time on it ;)
If someone of XDA coders would like to create such simple app (2 checkboxes (for IN/OUT recording), clicking on checkbox creates/deletes .norec_in/.norec_out file) it'll be cool ;)

Found a small bug (thanks to orenzah)
orenzah said:
when i called "*166" it's failed recording...
but when I gave it a name it wasn't failed..

I think there is a problem with saving names with '*'
Will be fixed.
 

antsm

Senior Member
Sep 9, 2010
140
430
0
Siberia
Rar9 said:
Is bluetooth recording working with this?
I don't have BT headset, so not tested, but if it works by default then it will be work with this mod. If it wasn't, then answer is "No" ;)
I haven't touch anything related to BT calling.
 

Rar9

Senior Member
Feb 6, 2008
266
22
0
Krefeld
Just tried it. Doesn't work with bluetooth. Would love to see this fixed as recording while driving can prove helpful.

SGS Darky 9.3b3 waiting for i9103
 

antsm

Senior Member
Sep 9, 2010
140
430
0
Siberia
Rar9 said:
Just tried it. Doesn't work with bluetooth. Would love to see this fixed as recording while driving can prove helpful.
Does anyone already worked in this way on XDA? If so, i could try to talk about implementation.