we have two apps. The first one is creating some audio files and save in internal storage (Shared storage according to android 11). The first app is creating an audio file and shared the audio file path to our second app and the second app access that audio file using the file path and upload it to the server.
We are using contentProvider to share the filePath to the second app.
Our first app is able to create audio files in internal(shared) storage because its target SDK version is still 26.
But we have changed the target SDK version of our second app to 30 (android 11), Because of the android 11 restriction, our second app is not able to access those audio files from internal (Shared storage) using the file path provided by the first app. Permission denied exception is coming if I am trying to access those files.
And those audio files are saved in the 'my_recrodings' folder. which is created by the first app in shared storage.
Full Path = /storage/emulated/0/.my_recrodings/
Please help me. How can I access those files?