I am working on a Flutter app that requires the ability to record internal audio, such as audio playing from other apps or the device's system sounds, on Android devices. I have researched the topic, but I'm finding it challenging to figure out a reliable way to achieve this without resorting to risky practices like rooting the device.
Is there a non-root solution or a safe method to record internal audio in a Flutter app on Android? I'm aware of the privacy and security concerns surrounding this functionality, and I want to ensure that my app complies with all guidelines and respects users' privacy.
If recording internal audio is not possible in Flutter alone, are there any recommended workarounds or external libraries that I can use in conjunction with Flutter to achieve this functionality?
I would appreciate any insights, code examples, or pointers to relevant resources that can help me implement internal audio recording in my Flutter app while adhering to best practices and ensuring a smooth user experience.
Thank you in advance for your assistance!
Recording global Audio in Android is now against Google's policy due to privacy concerns.
By default, audio recording from every app is locked, unless they actively set the RECORD_AUDIO permission. By default, you can only record external audio through the microphone on Android.
Some references from Android Developers: