Can you prevent the sqlite database from being removed when you uninstall the application?
I have an application that asks for a password to access, the password is written the first time the user starts the app (yes I have to do it this way, the user has to register this password to have access) ... The password is stored inside the bank, but has a problem, a malicious user can simply reinstall the application, causing the password registration panel to appear when starting the application. That is, it can register a new password because the bank was removed when uninstalling the application!
How do you avoid this?
Copying the database to the Data folder seems to me to be gambiarra, I'm afraid of a problem on some devices.
I can not copy the database to the sdcard, since anyone without root could open it.
I've already tested Android's BackupAgentHelper (which was done only for preferences and not for binaries), does not work with sqlite