open failed: EACCES (Permission denied) on Android 12, Xiaomi 11 Ultra device
When one of users try to open a downloaded pdf file having this error.
I am using DownloadManager to download the pdf file from url.
Also I am using 'com.github.barteksc:android-pdf-viewer:3.2.0-beta.1' library as a pdf viewer.
It works without a problem with all devices except Xiaomi Mi 11 Ultra. In that model device it gives the "open failed: EACCES (Permission denied)" error. Sample code below:
val fileName = "${File.separator}${"Presentation_Report"}${System.currentTimeMillis()}.pdf"...