chenxiaolong / BCR

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

Possibility of Whatsapp Call Record #431

Closed SharmaPawan11 closed 1 year ago

SharmaPawan11 commented 1 year ago

I do respect the fact that it is a simple SIM call recorder and recording Whatsapp call is not in scope of this app, I just wanted to ask out of curiosity, how much different recording whatsapp call is from recording SIM call and how much effort it would to be fork the repo and add such a functionality ?

chenxiaolong commented 1 year ago

It would likely take a significant amount of work. The recording and encoding components might work with minimal modifications, but the call detection and metadata components definitely will not.

For phone calls, Android provides an standard API (InCallService) for detecting calls and gathering info about them. BCR, Android Auto, and smartwatch companion apps all use this API. For calls in third party apps, you're stuck with doing something hacky using the Accessibility API to detect WhatsApp's in-call UI and scrape the relevant metadata from the screen. It'll likely require changes any time WhatsApp updates their UI. I've never personally used the accessibility API, so I'm not sure if this is difficult or just tedious to do.

SharmaPawan11 commented 1 year ago

https://stackoverflow.com/a/49431215/7895283

Could this be of any help in detecting the call state ?

chenxiaolong commented 1 year ago

It's a bit of a brute force method, but at first glance, it seems like that could potentially work.

SharmaPawan11 commented 1 year ago

Okay, Thanks a lot . :)

Turhvjbufv commented 10 months ago

It's a bit of a brute force method, but at first glance, it seems like that could potentially work.

Any updated?