Skip to content
Snippets Groups Projects
Unverified Commit a3724f8c authored by Matthias Urhahn's avatar Matthias Urhahn Committed by GitHub
Browse files

Perform data reset for users already affected by the encryption issues...

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>
parent 15903ccb
No related branches found
No related tags found
Loading
Showing
with 778 additions and 6 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment