'Android SDK 30, write to the root of external storage


I have a problem that I am sure I am not the only one to encounter. Today I use a file export system for my Android application. I write my export files in a folder at the same level as the system folders :

|-Android
|-Documents
|-Music
|-Downloads
|-MyApp
|- etc.

With the new storage system for SDK 30, I can no longer access this folder. So I am stuck in SDK 29 with the flag "requestLegacyExternalStorage".

Is it possible to create a shortcut to the Android/data/com.mypackage folder to this folder at root level?

Is there a package to work around this problem? I've been looking for a solution to this problem for two years without success. I would like to keep this folder in the root, because it is easy to access especially during USB transfers.

I know the Privacy Policy, but this is for a professional App, they doesn't carry about this thing.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source