There are no problems at all.
1. Figure out what is considered data for you (this is a database file, possibly several files).
2.Make it possible to copy this data to the phone folder that is available to you and make it possible to copy it back to the application directory.
3.Check the functionality of saving and restoring data by making changes. Now you can save the data, delete the application, install the application and restore the data, everything will remain as it was before the application was deleted.
You are most likely using SQLite storage without disabling the storage copy option., therefore, it is not the working database that is being copied, but it is unclear what...