chenxiaolong / BCR

A Basic Call Recorder for rooted Android devices
GNU General Public License v3.0
1.5k stars 98 forks source link

Recording not working / crashing app #510

Closed grasmanek94 closed 3 months ago

grasmanek94 commented 3 months ago

Hello,

I installed this app yesterday via Magisk onto Samsung S21+ Android 14 (path from february).

For one call it worked, and now when I restarted and try other calls it keeps crashing, and during call it keeps saying "call recording initialized".

crash.log (7).txt crash.log (8).txt crash.log (9).txt crash.log (10).txt crash.log (11).txt crash.log (12).txt crash.log.txt crash.log (1).txt crash.log (2).txt crash.log (3).txt crash.log (4).txt crash.log (5).txt crash.log (6).txt

I see it can't create a notification? Is the notification so much important? Or is it because of an unsupported codec choice? I tried changing coded but that didn't fix the issue. I changed from working ogg to mp4/aac, then back to ogg but it's still crashing.

chenxiaolong commented 3 months ago

Interesting. This has been reported in the past, but usually only on devices like Xiaomi, where they make a ton of changes to Android.

I see it can't create a notification?

It appears to be an issue with displaying the notification icon. Though you said you can see the "call recording initializing" notification? Not sure why Android would complain if the notification is already visible.

Is the notification so much important?

Yep, it's required. Android only allows apps to reliably and continuously run in the background if it shows a notification.


It might be worth extracting the .apk from the Magisk module zip file and then installing that. Other folks who have run into this before have reported that this workaround seems to fix the problem.

grasmanek94 commented 3 months ago

Awesome, this seems to work!

I don't have many changes, only official samsung rom where bootloader is patched with magisk, Modules: play integrity fix (banking apps), liboemcryptodisabler (netflix fix), ssh for magisk

In zygisk mode with deny list enforce (all apps denied except a few that need root).

I also have Automate with a flow that enables do not disturb depending on if I receive too many messages in a short time span, and a flow that checks if microphone is being used, if not restart the service for app 'Echo'.

chenxiaolong commented 3 months ago

Great, glad it's working now! It'll likely stay working without any further workarounds when you install BCR updates in the future.

I don't think the issue was caused by any of the things you listed. Root hiding tools that unmount directories (like Shamiko) can cause this sort of thing, but in your case, I'm thinking it's likely a bug in the changes that Samsung made on top of Android.