android / security-samples

Multiple samples showing the best practices in security APIs on Android.
Apache License 2.0
938 stars 395 forks source link

Backup and restore #62

Closed rddewan closed 4 years ago

rddewan commented 4 years ago

Hi Is there a solution to backup and restore the encrypted file ans hared pref

Thank you

nic0lette commented 4 years ago

Hi, No, the data stored in encrypted files and shared preferences using the Jetpack Security library are encrypted with keys stored inside the device that cannot be extracted. It's not possible to recover the data if the app has been uninstalled or moved to another device.

If you need to do this, then you'd need to use Tink directly.