We are having a call-sync Android application that needs to read call recording files from a particular folder on the device.
Is there a way to restrict the app's access to only a specific folder chosen by the user, instead of requesting access to the entire media library?
If so, what is the recommended Android API or approach for implementing folder-specific access while complying with modern Android storage restrictions?
As an example, on Linux it is possible to grant access to a particular directory by changing its ownership or permissions, such as:
sudo chown -R username:groupname foldername/