External storage permission in android

Hi, everyone.

I built an app that reads and writes data and store some of them in the local storage. These files are txt, pdf, xml and png. Since I installed on an Android 13 tablet I am having permissions problems. In the build process both WRITE_EXTERNAL_STORAGE and READ_EXTERNAL_STORAGE permissions are selected, the APK is generated correctly. In the app settings on the tablet I can grant permissions to read and write only multimedia files, but not other types. Until Android 11 I had no problem. With Android 13 it seems that the app needs a MANAGE_EXTERNAL_STORAGE permission that I can’t find, anyway.

I need the files to be moved via USB to and from a PC, so Wi-Fi transfer is not an option. The only directories that the PC can browse and write are in /sdcard (the internal memory, where Download and others are located).  Even using the private app directory seems to be really tricky, since then I don’t know how to move files between the tablet and the PC. Actually I was using a sub-directory of /sdcard, same level of Download and DCIM, without any issue, but now the app can use them only for multimedia files, not for Xml and Pdf.

Did you experience similar issues? Am I doing wrong? Thank you for your help

Scroll to Top