I have an Android application. It has a download manager to download an APK file (saved inside Download directory) and I want to get and install APK file after it is downloaded. It works properly on Android below 11 but from Android 11 we need to use Scope Storage API instead of getting file from the Environment method. Also, I used Manage External Storage inside it for getting file but Google rejected my app because it says:
"You have requested access to All Files Access permission but it appears that your app’s core feature requires access to only Media Files."
so could you please give me any approach for getting the downloaded file that I downloaded into the Download directory and sending its URI to Android package manager to install?