Enable Native Call Recording [OOS] [ROOT/NON-ROOT] [APP/MAGISK MODULE/ADB/TASKER]

RainGater

Senior Member
Aug 5, 2013
1,106
678
0
On OP 7, running Open Beta 13, I flashed the EnableOOSNativeCallRecording-Flashable v8.0.zip in TWRP and it works fine. Thank you @shadowstep for putting together a set of options to enable this feature. Much appreciate it.

I didn't want to install the app or Tasker or Magisk module (as it's a pain to uninstall the module/reboot/update system with ota/reinstall magisk module/reboot) - too much work. ;)

The flashable zip in TWRP is simple and works fine.

Couple of questions:

1. When we update the ROM, the /etc/init/init.ncr.rc is toast and will have to flash the zip again, correct? I think so but would like a confirmation.

2. If we have to uninstall the changes made by the zip, flash the zip again in TWRP and will it be removed?
 

shadowstep

Forum Moderator
Staff member
Jun 6, 2014
4,292
8,105
263
30
Ambala
On OP 7, running Open Beta 13, I flashed the EnableOOSNativeCallRecording-Flashable v8.0.zip in TWRP and it works fine. Thank you @shadowstep for putting together a set of options to enable this feature. Much appreciate it.

I didn't want to install the app or Tasker or Magisk module (as it's a pain to uninstall the module/reboot/update system with ota/reinstall magisk module/reboot) - too much work. ;)

The flashable zip in TWRP is simple and works fine.

Couple of questions:

1. When we update the ROM, the /etc/init/init.ncr.rc is toast and will have to flash the zip again, correct? I think so but would like a confirmation.

2. If we have to uninstall the changes made by the zip, flash the zip again in TWRP and will it be removed?
You're welcome. I've always maintained having options is a good thing because not all the methods work the same way for everyone. Coming to your questions:

1. That is correct. Since the rc file is in the /system partition, whenever you flash dirty flash your ROM, the /system partition will be overwritten and the rc file will be removed. So you'll have to reflash the zip in TWRP.

2. Yes, the zip checks for the existence of rc file before proceeding with the installation and if it finds it (meaning the mod is intalled), it will uninstall it instead or re-installing it.
 
  • Like
Reactions: RainGater

RainGater

Senior Member
Aug 5, 2013
1,106
678
0
2. Yes, the zip checks for the existence of rc file before proceeding with the installation and if it finds it (meaning the mod is intalled), it will uninstall it instead or re-installing it.
Thanks and appreciate the quick response.

Btw, when I flashed the zip, I saw a message that states something like an apk was patched. But, in the zip, I don't see any apk file and all I see is the /etc/init/init.ncr.rc with the following code. The zip just adds this init.ncr.rc file only, correct? No other changes are made to the system? As there is no installer script, I am not able to figure out what exactly is added to the system other than this .rc file.

Code:
service Native_Call_Recording /system/bin/sh -c "settings put global op_voice_recording_supported_by_mcc 1 && pm enable com.android.phone/com.android.phone.oneplus.OPSimSubSettingsActivity"
    seclabel u:r:shell:s0
    user root
    oneshot
    disabled

on property:sys.boot_completed=1
    start Native_Call_Recording
 

pedritopl

Senior Member
Apr 3, 2015
295
254
83
Thanks and appreciate the quick response.

Btw, when I flashed the zip, I saw a message that states something like an apk was patched. But, in the zip, I don't see any apk file \[...\]
There's no apk because it modifies the preinstalled one on every install. This prevents call recording switching off automatically.

From common/install.sh:
ui_print "- Modifying APK to prevent automatic deactivation of call recording"
sed -i "s/op_voice_recording_supported_by_mcc/op_voice_recording_suppt_by_shaoxia/g" $MODPATH/system/priv-app/TeleService/TeleService.apk

Basically it makes the apk look for a non existent value by changing it's name.
At least that's what I understand.

That's the main reason why this module has to be removed and installed (not deactivated) after each OTA. This way You're never left with the old version of TeleService.apk.
 
  • Like
Reactions: RainGater

RainGater

Senior Member
Aug 5, 2013
1,106
678
0
Basically it makes the apk look for a non existent value by changing it's name.
At least that's what I understand.
I thought the update-binary file in the zip is an actual binary file as it used to be before or so I thought. Duh!

Upon examining the file, I see two things:

1. Add /system/etc/init/init.ncr.rc so that it turns on the service on every boot.
2. In TeleService.apk, the string "op_voice_recording_supported_by_mcc" is replaced to "op_voice_recording_supt_by_zackptg5" - this, in turn, enables the call recording regardless of the SIM provider.

It makes sense now. I assume zackptg5 is the owner of the zip and hence his name ends up in the apk. Nice. ;)
 
Jan 5, 2020
8
2
0
hello
i have activate call recording on op8pro via adb and joneplus...
When i reboot it i do not have any problem it works.

But sometimes recorder disappear and closes and i have to go to joneplus and open it again in order to re activate it.
Do you know why?
Of course i have de activate any battery settings for joneplus so i can not find the reason why recording de activate from time to time.
Thank you
 

shadowstep

Forum Moderator
Staff member
Jun 6, 2014
4,292
8,105
263
30
Ambala
hello
i have activate call recording on op8pro via adb and joneplus...
When i reboot it i do not have any problem it works.

But sometimes recorder disappear and closes and i have to go to joneplus and open it again in order to re activate it.
Do you know why?
Of course i have de activate any battery settings for joneplus so i can not find the reason why recording de activate from time to time.
Thank you
One of the system apps (TeleService.apk) disables call recording time to time if it is found to be enabled on a device on which it shouldn't be enabled (country wise restriction).
 

DjangoOne

Member
Dec 31, 2010
15
2
0
Hello,
i tried to install the Magisk module v9.1 today (OnePlus 5, Pie, last Beta); unfortunately without success:

- "! ERROR: APK couldn't be copied to the module folder"
- "! Installation failed"

What can I do to solve the problem?

Thanks, Django
 

shadowstep

Forum Moderator
Staff member
Jun 6, 2014
4,292
8,105
263
30
Ambala
Hello,
i tried to install the Magisk module v9.1 today (OnePlus 5, Pie, last Beta); unfortunately without success:

- "! ERROR: APK couldn't be copied to the module folder"
- "! Installation failed"

What can I do to solve the problem?

Thanks, Django
What Magisk version are you on? Also, please save the installation log and share it so that I can have a look.
 
  • Like
Reactions: wbedard

pedritopl

Senior Member
Apr 3, 2015
295
254
83
i used the Canary version 20214, also see my logfile, thanks.
Using latest stable Magisk would be recommended.
Second thing I'll check - if I read the logs correctly - it seems You're installing over a previous version of the module. It would be better to remove the old version, reboot and then install the new one.
 

DjangoOne

Member
Dec 31, 2010
15
2
0
Using latest stable Magisk would be recommended.
Second thing I'll check - if I read the logs correctly - it seems You're installing over a previous version of the module. It would be better to remove the old version, reboot and then install the new one.
I don't know of any old modules. This was my first attempt to install "EnableOOSNativeCallRecording-Magisk v9.1".
Since there is no old version available, I cannot remove any... at least I wouldn't know how?

So ok, I will try the last stable version of Magisk... and thanks for responding.
 
Last edited:

pedritopl

Senior Member
Apr 3, 2015
295
254
83
I don't know of any old modules. This was my first attempt to install "EnableOOSNativeCallRecording-Magisk v9.1".
Since there is no old version available, I cannot remove any... at least I wouldn't know how?
Well, I might have misunderstood the log. It seemed to me that the log indicated the presence of old module directory and that the script was removing the old files from there.
Anyway, first thing to try is always the latest stable Magisk. That usually fixes funny problems with modules ;)
If it still fails, send the new log.
 

NHNXDA

Senior Member
Jan 26, 2008
348
58
0
Which app are you guys in the op7pro using for the recordings as nothing happens when I click on the notification which normally would open an app to playback.

TIA.
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone