Android Question Where to create storage for backups?

I am writing an app that will be published on the play store app.
It has a Database that I would like to save when uninstalling the application or when transferring to another device using an SD card.
DirRootExternal is not available in Android 13, although this is the most convenient place to save backups.
DirDefaultExternal is removed when the application is uninstalled.

Where, in this case, is it better and more convenient to create buffer storage?
 
I meant the database backup, which is filled by each user independently.
In order to recover data when installing the application on another device, for example, I use a Memory Card.
 
Upvote 0
Top