m2049r / xmrwallet

monerujo: An Android Monero Wallet
https://www.monerujo.io/
Apache License 2.0
617 stars 273 forks source link

Make it possible to preserve internal app data on uninstall #769

Open dloebl opened 3 years ago

dloebl commented 3 years ago

Since Android 10 it is possible to preserve the internal app data on uninstall (see screenshot attached): https://developer.android.com/reference/android/R.attr#hasFragileUserData https://developer.android.com/guide/topics/manifest/application-element#fragileuserdata

This would be useful, as the wallet data can be preserved across uninstallations on the same device. monerjuo_preserve

ghost commented 3 years ago

Cool. Haven't tested yet but approve otherwise. Since there is now internal data being used that could alleviate some concerns about losing wallet data.

m2049r commented 3 years ago

is this tested across an uninstall/reinstall as the keys used to encrypt the wallet files (probably) get deleted rendering the files useless without the crazypass?