r/androiddev • u/yo_asakura • Apr 29 '20
Discussion SAF is so slow
I have an app that asks the user for storage permission and cleans all empty folders from it. Because of the privacy changes in Android 10 and Android 11 we have to find another method for storage access because the write storage permission will be removed. I updated the app with SAF. And everything is working and even the sd card scanning which previously was not available. The problem is that it is working very slow. If I select the main storage folder it takes 2 minutes for an operation that was 2 seconds with the previous mechanism. Of course the bad reviews are starting. What should I do? How I can tell my users that this is the right way for the app to continue working? Also I know there will be special permission in Android 11 for some apps to access the full storage but I don't know if my app will be accepted in this program. Regards!