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

Search This thread

antsm

Senior Member
Sep 9, 2010
141
430
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

  • screen_mod.jpg
    screen_mod.jpg
    37.4 KB · Views: 17,571
  • screen_app.jpg
    screen_app.jpg
    37.7 KB · Views: 13,365
Last edited:

ragin

Senior Member
Dec 17, 2007
1,743
158
Hubli
This is seriously what a lot of people like me were looking for I guess. I am going to try it.
 

SirM2X

Senior Member
Dec 9, 2010
118
10
Oh man! Awesome stuff! I was really in need of something like this :)
Thanx a million
Downloading now :p
 

zion12

Senior Member
Nov 12, 2008
93
5
Pune
Awesome...

Really interested in having some feedback on how this works & if its better than Total Recall Call Recorder.

Thanks...
 

ronlkh

Senior Member
Nov 23, 2003
200
27
This libaudio.so and libaudioflinger.so has bug. Fring audio and video chat will not have audio out.
 

ragin

Senior Member
Dec 17, 2007
1,743
158
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
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
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
141
430
Siberia

titooo7

Senior Member
Sep 29, 2010
1,687
4,468
London
It would be nice if we can disable the automatic recording through the settings menu instead of creating files.
 

antsm

Senior Member
Sep 9, 2010
141
430
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.
 

Rar9

Senior Member
Feb 6, 2008
267
22
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
 

Top Liked Posts

  • There are no posts matching your filters.
  • 72
    [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.
    64
    Automatic Call Recording Control:
    Control app for antsm's modded Phone.apk
    If you find any bugs, things you don't like or have feature requests, tell me.
    Maybe we can do something about :D.

    Features:
    -Turn call recording on/off for incoming/outgoing calls.
    -Change file naming pattern for recorded calls.
    -View rec_settings.xml
    -Optional Prompt to delete recording after Call
    -Turn increasing ring On/Off
    -Ensures valid rec_settings.xml file, will recreate with default values otherwise
    -Option to do a quick media rescan after deleting a recording(this will update lists in media players(i.e. voice recorder)
    (opening the control app will also start a quickscan if you don't want to do it after every deletion)


    Changelog:
    v0.7
    optimised code a little to use less resources
    changed rec_settings.xml generation to allow easier installation of new versions without loosing old settings
    added the requested option to rescan files after deleting the recording

    v0.6
    added checks when deleting the recording, should now give correct message if it has been deleted or not

    v0.5
    Help button now actually shows helpfull information
    Now checks if rec_settings.xml exists and is valid, if not it will generate a default one.

    v0.4
    Rewritten and streamlined to be more stable and use very low resources.
    Fixed problem of program being closed in background which would lead to no more delete notifications.
    Added config option for increasing ring.
    Adapted to new config style of Phone.apk v0.3
    Added debug output in case of a missing or corrupt settings file

    v0.3 Optional Prompt after each call to delete Recording
    v0.2 Read template file and change file naming pattern
    v0.1 Enable and Disable Recording
    5
    have you already created one without the increasing ringtone?
    Yep, it already implemented and will be released in nearest few days.
    3
    Just few thoughts about future releases.

    Project is gradually growing, implementing new features, which already beyond of initial purposes of this modification.
    So, future versions will be consist of:

    - Main package: Phone.apk with automatic call recording
    - Additional packages

    What will be included in additional packages?

    1) Modded DialerTabActivity.apk
    - Embedded settings menu to control Phone.apk (autorecording, template, increasing ring, etc)
    - Extended smart search (searches for contacts not only in 'name' field, as it does by default, but in 'surname' field too)
    - Some stuff related to localized smart search (in doubt)
    - probably something else... ;)

    2) Modded Contacts.apk
    - Stuff related to fullscreen caller photo
    - Customizable alphabet bar (in doubt)
    - may be something else

    Some of these features will be implemented in next release, some in further.
    If you don't need all that stuff, or you are using themed FW and don't want to break your general style by using unthemed apps, then just use the main package :)
    2
    I9000XWJS8 ## 512.PIT 2.2.1 2011 March DOWNLOAD

    there you will find all firmwares ....
    http://www.samfirmware.com/WEBPROTECT-i9000.htm
    (registration is needed ..

    it is looking like this:
    Europe Samsung I9000 Firmwares.
    Europe Firmware .PIT Android Date CSC Download
    I9000XXJE2 2.1 2010 May DOWNLOAD
    I9000XXJE3 2.1 2010 May DOWNLOAD
    I9000XXJE5 2.1 2010 May DOWNLOAD
    I9000XXJE6 2.1 2010 May DOWNLOAD
    I9000XXJE7 2.1 2010 May DOWNLOAD
    I9000XXJE9 2.1 2010 May DOWNLOAD
    I9000XXJEC 2.1 2010 May DOWNLOAD
    I9000XXJF1 2.1 2010 June DOWNLOAD
    I9000XXJF2 2.1 2010 June DOWNLOAD
    I9000XXJF3 2.1 2010 June DOWNLOAD
    I9000XXJF7 2.1 2010 June DOWNLOAD
    I9000XXJFB 2.1 2010 June DOWNLOAD
    I9000XWJFD 2.1 2010 June DOWNLOAD
    I9000XWJFF 512.PIT 2.1 2010 June DOWNLOAD
    I9000XWJG1 512.PIT 2.1 2010 July DOWNLOAD
    I9000XWJG3 512.PIT 2.1 2010 July DOWNLOAD
    I9000XWJG5 512.PIT 2.1 2010 July DOWNLOAD
    I9000XWJM1 512.PIT 2.1 2010 July DOWNLOAD
    I9000XWJM1 # 512.PIT 2.1 2010 July DOWNLOAD
    I9000XWJM2 ## 512.PIT 2.1 2010 July DOWNLOAD
    I9000XWJM5 # 512.PIT 2.1 2010 July DOWNLOAD
    I9000XWJM6 ## 512.PIT 2.1 2010 August DOWNLOAD
    I9000XWJM7 ## 512.PIT 2.1 2010 August DOWNLOAD
    I9000XWJM8 ## 512.PIT 2.1 2010 August DOWNLOAD
    I9000XXJP1 # 512.PIT 2.2 2010 August DOWNLOAD
    I9000XXJP2 # 512.PIT 2.2 2010 August DOWNLOAD
    I9000XXJP3 # 512.PIT 2.2 2010 August DOWNLOAD
    I9000XXJPC ## 803.PIT 2.2 2010 August DOWNLOAD
    I9000XXJPH ## 803.PIT 2.2 2010 September DOWNLOAD
    I9000XXJPK ## 803.PIT 2.2 2010 September DOWNLOAD
    I9000XWJM9 ## 512.PIT 2.1 2010 September DOWNLOAD
    I9000XWJP6 ## 803.PIT 2.2 2010 October DOWNLOAD
    I9000XXJPM ## 803.PIT 2.2 2010 October DOWNLOAD
    I9000XXJPO ## 803.PIT 2.2 2010 October DOWNLOAD
    I9000XWJPA ## 803.PIT 2.2 2010 October DOWNLOAD
    I9000XWJPA ## 803.PIT 2.2 2010 October DOWNLOAD
    I9000XFJP7 ## 512.PIT 2.2 2010 October DOWNLOAD
    I9000XWJPB ## 512.PIT 2.2 2010 October DOWNLOAD
    I9000XFJP9 ## 512.PIT 2.2 2010 November DOWNLOAD
    I9000XXJPI ## 803.PIT 2.2 2010 December DOWNLOAD
    I9000XXJPU ## 512.PIT 2.2.1 2010 December DOWNLOAD
    I9000XXJPX ## 512.PIT 2.2.1 2010 December DOWNLOAD
    I9000XXJPY ## 512.PIT 2.2.1 2010 December DOWNLOAD
    I9000XWJS3 ## 512.PIT 2.2.1 2011 January DOWNLOAD
    I9000XWJS3 ## 803.PIT 2.2.1 2011 January DOWNLOAD
    I9000XFJS2 ## 803.PIT 2.2.1 2011 January DOWNLOAD
    I9000XWJS5 ## 803.PIT 2.2.1 2011 January

    CSC = I9000XENJS3
    DOWNLOAD
    I9000XWJS5 ## 803.PIT 2.2.1 2011 January DOWNLOAD
    I9000XXJQ3 ## 512.PIT 2.2.1 2011 January

    CSC = I9000DBTJS2
    DOWNLOAD
    I9000RSJS2 ## 512.PIT 2.2.1 2011 January DOWNLOAD
    I9000XWJS7 ## 803.PIT 2.2.1 2011 February

    CSC = I9000XENJS3
    DOWNLOAD
    I9000XWJV1 ## 512.PIT 2.3.2 2011 February

    CSC = I9000OXXJV1
    DOWNLOAD
    I9000XWJS8 ## 512.PIT 2.2.1 2011 March DOWNLOAD
    I9000XXJVK ## 512.PIT 2.3.3 2011 March CSC = I9000OXAJVK DOWNLOAD
    I9000XWJVA ## 2.3.3 2011 April 4 CSC = I9000LUXJV3 DOWNLOAD
    I9000XWJVB ## 2.3.3 2011 April 8 CSC = I9000NEEJV3 DOWNLOAD
    I9000XWJVB ## 512.PIT 2.3.3 2011 April 8 CSC = I9000NEEJV3 DOWNLOAD
    I9000XWJVB ## 512.PIT 2.3.3 2011 April 8 CSC = I9000XEEJV3 DOWNLOAD
    I9000XWJSD ## 512.PIT 2.2.1 2011 May 2 CSC = I9000OXXJS6 DOWNLOAD
    I9000XWJVH ## 512.PIT 2.3.3 2011 May 4 CSC = I9000NEEJV3 DOWNLOAD
    I9000XWJVH ## 512.PIT 2.3.3 2011 May 4 CSC = I9000TDCJV3 DOWNLOAD
    I9000XWJVH ## 512.PIT 2.3.3 2011 May 4 CSC = I9000ODKJV3 DOWNLOAD
    I9000XWJVH ## 512.PIT 2.3.3 2011 May 4 CSC = I9000TENJV3 DOWNLOAD
    I9000XXJVO ## 512.PIT 2.3.3 2011 May 4 CSC = I9000OXAJVO DOWNLOAD
    I9000XWJVH ## 512.PIT 2.3.3 2011 May 4 CSC = I9000PROJV3 DOWNLOAD
    I9000XWJVH ## 512.PIT 2.3.3 2011 May 4 CSC = I9000XENJV4 DOWNLOAD
    I9000XWJVI ## 512.PIT 2.3.3 2011 May 14 CSC = I9000DBTJV2 DOWNLOAD
    I9000XXJVP ## 512.PIT 2.3.4 2011 June 3 CSC = I9000OXAJVP DOWNLOAD