Post Reply

[XPOSED][MODULE][CM11] EnableCMCallRecording

OP pyler

23rd August 2014, 03:33 PM   |  #1  
OP Senior Member
Thanks Meter: 606
 
509 posts
Join Date:Joined: Jan 2013
More
Enable call recording on CyanogenMod.

Requirements: CM 11 (any nightly build after August 14)

Download: http://repo.xposed.info/module/com.p...nablecmcallrec

Code:
package com.pyler.enablecmcallrec;

import static de.robv.android.xposed.XposedHelpers.findAndHookMethod;
import android.content.Context;
import de.robv.android.xposed.IXposedHookLoadPackage;
import de.robv.android.xposed.XC_MethodReplacement;
import de.robv.android.xposed.callbacks.XC_LoadPackage.LoadPackageParam;

public class EnableCallRecording implements IXposedHookLoadPackage {

	@Override
	public void handleLoadPackage(LoadPackageParam lpparam) throws Throwable {
		if (lpparam.packageName.equals("com.android.dialer")) {
			findAndHookMethod("com.android.services.callrecorder.CallRecorderService",
						lpparam.classLoader, "isEnabled", Context.class, XC_MethodReplacement.returnConstant(true));
			
		}
	}
	
}
Last edited by pyler; 23rd August 2014 at 04:58 PM.
The Following 42 Users Say Thank You to pyler For This Useful Post: [ View ]
23rd August 2014, 04:30 PM   |  #2  
Senior Member
Denmark, Århus
Thanks Meter: 57
 
271 posts
Join Date:Joined: Feb 2009
More
Quote:
Originally Posted by pyler

Enable call recording on CyanogenMod.

Requirements: CM 11 (any nightly build after August 14)

Download: http://repo.xposed.info/module/com.p...nablecmcallrec

Screenshots?
The Following User Says Thank You to kabalah89 For This Useful Post: [ View ]
23rd August 2014, 04:36 PM   |  #3  
Senior Member
Thanks Meter: 420
 
821 posts
Join Date:Joined: Mar 2013
Thanks, tested and works fine!

No difference with this mod found in Android Police website?
Can you add source code in op please?
23rd August 2014, 04:55 PM   |  #4  
Junior Member
Thanks Meter: 0
 
2 posts
Join Date:Joined: Aug 2014
Doesn't work on htc one x
I find the file, but I can't hear anything.
23rd August 2014, 05:01 PM   |  #5  
OP Senior Member
Thanks Meter: 606
 
509 posts
Join Date:Joined: Jan 2013
More
Quote:
Originally Posted by Micks29

Thanks, tested and works fine!

No difference with this mod found in Android Police website?
Can you add source code in op please?

Added.
Mod from AndroidPolice probably changes Dialer's resources.

This module hooks method which controls this feature (whether is Call Recording enabled or not.)
Link: https://github.com/CyanogenMod/andro...vice.java#L185

>> Call recording is always enabled.
The Following User Says Thank You to pyler For This Useful Post: [ View ]
23rd August 2014, 05:03 PM   |  #6  
OP Senior Member
Thanks Meter: 606
 
509 posts
Join Date:Joined: Jan 2013
More
Quote:
Originally Posted by Wlkchnbndgr

I find the file, but I can't hear anything.

Probably not supported for your device. Maybe device maintainer can fix it.
23rd August 2014, 05:05 PM   |  #7  
OP Senior Member
Thanks Meter: 606
 
509 posts
Join Date:Joined: Jan 2013
More
Quote:
Originally Posted by kabalah89

Screenshots?

Module has no UI, but screenshot of call recording in CM (source: AP):
The Following 4 Users Say Thank You to pyler For This Useful Post: [ View ]
23rd August 2014, 05:07 PM   |  #8  
Senior Member
Denmark, Århus
Thanks Meter: 57
 
271 posts
Join Date:Joined: Feb 2009
More
It is working with google edition roms?
23rd August 2014, 05:14 PM   |  #9  
OP Senior Member
Thanks Meter: 606
 
509 posts
Join Date:Joined: Jan 2013
More
Quote:
Originally Posted by kabalah89

It is working with google edition roms?

No. Only for CyanogenMod. They recently added Call recording feature but it isn't enabled by default and there is no option in Settings to enable it (in some countries is not legal...)
23rd August 2014, 05:28 PM   |  #10  
Senior Member
Thanks Meter: 420
 
821 posts
Join Date:Joined: Mar 2013
Quote:
Originally Posted by Wlkchnbndgr

I find the file, but I can't hear anything.

Go to call log tab for play recording.

Post Reply Subscribe to Thread
Previous Thread Next Thread