The main goals of this patch are to:
- Improve the exception handling in Aegis and the way we present errors messages
to the user when they occur.
- Write exception stack traces to the log in more places, so that the ADB logs
we ask for from our users when reporting bugs become more useful.
- Reduce the amount of times we throw a RuntimeException, particularly when an
Android Keystore operation fails.
Achieving the above goals ended up resulting in a very large refactor. The
intro and unlock flow of the app need to be retested entirely.
<stringname="decryption_error">An error occurred while trying to unlock the vault</string>
<stringname="decryption_corrupt_error">An error occurred while trying to unlock the vault. Your vault file might be corrupt.</string>
<stringname="saving_error">An error occurred while trying to save the vault</string>
<stringname="vault_init_error">An error occurred while trying to initialize the vault</string>
<stringname="vault_load_error">An error occurred while trying to load the vault from storage</string>
<stringname="biometric_decrypt_error">An error occurred while trying to decrypt the vault with biometric authentication. This usually only happens if the security settings of your device were changed. Please unlock the vault with your password and reconfigure biometric authentication in the settings of Aegis.</string>
<stringname="biometric_init_error">An error occurred while trying to prepare biometric authentication. This usually only happens if the security settings of your device were changed. Please unlock the vault with your password and reconfigure biometric authentication in the settings of Aegis.</string>
<stringname="disable_encryption_description">Are you sure you want to disable encryption? This will cause the vault to be stored in plain text.</string>
<stringname="enable_encryption_error">An error occurred while enabling encryption</string>
<stringname="disable_encryption_error">An error occurred while disabling encryption</string>
<stringname="backup_error">An error occurred while trying to create a backup</string>
<stringname="andotp_new_format">New format (v0.6.3 or newer) </string>
<stringname="andotp_old_format">Old format (v0.6.2 or older) </string>
@ -151,8 +158,8 @@
<stringname="exporting_vault_error">An error occurred while trying to export the vault</string>
<stringname="exported_vault">The vault has been exported</string>
<stringname="export_warning">This action will export the vault out of Aegis\' private storage.</string>
<stringname="encryption_set_password_error">An error occurred while trying to set the password: </string>
<stringname="encryption_enable_biometrics_error">An error occurred while trying to enable biometric unlock</string>
<stringname="encryption_set_password_error">An error occurred while trying to set the password.</string>
<stringname="encryption_enable_biometrics_error">An error occurred while trying to enable biometric unlock. Some devices have poor implementations of biometric authentication and it is likely that yours is one of them. Consider switching to a password-only configuration instead.</string>