You can use a folder under File.DirRootExternal for files that shouldn't be removed. It requires a permission.
Early when I learned to use file 3 years ago I was saving data in file.dirdefautexternal ..then found out that users can delete the files from that folder
Then I use file.dirinternal for data that needed to be kept as long as the app was installed in the device
Today on my new phone I deleted data from app settings ...
All data was delteted ...dirinternal, cache ,defaultexternal and the app does not run anymore
When user deleted data from app settings the app crashes(permitions denied) as when starter is loaded no files could be write or read because of the missing permision I do not understand why
I lost track of how file library is treated on new android devices.
I put some try catch end try in starter when reading files ....and the app went back to original ...thanks good It works