Skip to content
Snippets Groups Projects
user avatar
Matthias Urhahn authored
Perform data reset for users already affected by the encryption issues (EXPOSUREAPP-1851/EXPOSUREAPP-2958) (#1256)

* A reset mechanism that performs a data reset for those (and just those) already affected by the pre 1.4.0
encryption error. If encountered the preference and database file will be deleted, then we will retry
to generate an EncryptedSharedPreferences instance, and show the user a popup about what happened.

TODO: This still has placeholders for the popup dialog.

* Change detekt config.
Early returns help code readability if used as guard closes.

* Add final texts and fix missing dialog in other build flavors.

* Additional test that we also match nested exceptions.

* Fix incorrect shared preferences path.

* Make klint happy.

* Address PR comments.

Co-authored-by: default avatarharambasicluka <64483219+harambasicluka@users.noreply.github.com>
Co-authored-by: default avatarRalf Gehrer <ralfgehrer@users.noreply.github.com>
a3724f8c
History
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
Name Last commit Last update
..
detekt-baseline.xml
detekt.yml