Call recording on Android 7 and up

  android, call, call-recording

I am trying to implement call recording in my app but due to restricted permission "CAPTURE_AUDIO_OUTPUT" (which can only be granted to system apps) I am not able to record audio of other person.
I found an app on play store Cube ACR which can clearly record audio of both sides. If Google has disabled call recording then how it can record calls. Is there any workaround to record call which I am missing.

Source: Android Questions