Commit graph

442 commits

Author SHA1 Message Date
RichyHBM
41ca299af6 Merge branch 'master' into google-backups
# Conflicts:
#	app/src/main/java/org/shadowice/flocke/andotp/Activities/SettingsActivity.java
#	app/src/main/java/org/shadowice/flocke/andotp/Utilities/DatabaseHelper.java
#	app/src/main/res/values/settings.xml
#	app/src/main/res/values/strings_settings.xml
#	app/src/main/res/xml/preferences_special.xml
2018-01-11 13:58:40 +00:00
Jakob Nixdorf
b529f009be
Merge branch 'custom-encryption'
Closes #94
2018-01-11 13:18:54 +01:00
Jakob Nixdorf
0c0fb0f2c7
Update first run dialog 2018-01-11 13:14:40 +01:00
Jakob Nixdorf
a2f8a95552
Catch some more exceptions in KeyStoreHelper 2018-01-10 22:40:41 +01:00
Jakob Nixdorf
c16e3db88b
Prevent Settings from crashing with a null encryption key 2018-01-10 07:14:36 +01:00
Jakob Nixdorf
1e21c36ecc
Simplify the exception catching in KeyStoreHelper 2018-01-10 07:12:02 +01:00
Jakob Nixdorf
c0d05c8e2c
Unify PIN and password preference 2018-01-08 11:25:30 +01:00
Jakob Nixdorf
b1cd0fb68a
Enforce a minimum password and PIN length
Closes #107
2018-01-08 11:01:04 +01:00
Jakob Nixdorf
0af94331cb
Add an additional unlock button to the AuthenticateActivity
Closes #87
2018-01-08 10:38:17 +01:00
Jakob Nixdorf
29dedcc57f
Use Dialogs instead of Toasts for some errors
So the user doesn't just miss them as he might with Toasts
2018-01-08 10:14:25 +01:00
RichyHBM
984b180fba Only update if user has enabled 2018-01-05 20:10:17 +00:00
RichyHBM
2bf20ce7f1 Also notify of backup on shared prefs change 2018-01-05 19:55:37 +00:00
RichyHBM
1daa255397 Add backup agent 2018-01-05 19:53:04 +00:00
Jakob Nixdorf
d32f0ab4c0
Special features: clear KeyStore from the settings 2018-01-04 15:34:48 +01:00
Jakob Nixdorf
a1a6619835
Improve error message in case of KeyStore problems 2018-01-04 14:50:19 +01:00
Jakob Nixdorf
d6f8de9a01
Don't crash if the encryption key is empty (e.g. if the KeyStore has problems) 2018-01-04 14:37:13 +01:00
Jakob Nixdorf
e1e6807d0d
Don't fail the backup if the source does not exist (e.g. if no entries have been added) 2018-01-04 14:36:39 +01:00
Jakob Nixdorf
bcc82f9d5b
Move a lot of the static constants to the Constants class 2018-01-04 14:35:08 +01:00
Jakob Nixdorf
a3a285bebc
Fix crash in CredentialsPreference 2018-01-04 12:34:59 +01:00
Jakob Nixdorf
5059abf2d0
Automatically show and hide keyboard in CredentialsPreference 2018-01-03 16:21:29 +01:00
Jakob Nixdorf
a20dc326bc
Try the encryption change in the SettingsActivity and restore backup if it fails 2018-01-03 13:23:13 +01:00
Jakob Nixdorf
9374ef9ab9
Update Telegram details 2018-01-03 08:33:12 +01:00
Jakob Nixdorf
64fbdd93d3
Update Telegram details 2018-01-03 08:32:50 +01:00
Jakob Nixdorf
15f221f4b3
Simplify some methods in the Settings helper 2018-01-03 07:04:36 +01:00
Jakob Nixdorf
293fa70994
Remove some outdated code 2018-01-03 06:25:32 +01:00
Jakob Nixdorf
5ba3be0b95
Encryption only changes on changing credentials if set to password-based 2018-01-03 06:21:19 +01:00
Jakob Nixdorf
3565c899b8
Custom CredentialsPreference and better handling of encryption changes 2018-01-02 22:00:53 +01:00
Jakob Nixdorf
fc67640730
Better description for re-authentication 2018-01-02 14:47:12 +01:00
Jakob Nixdorf
13db26f377
Show a generic error if the encryption key is empty 2018-01-02 14:45:00 +01:00
Jakob Nixdorf
bd12b5a17f
Add some checks to prevent crashes when the encryption key is not set 2018-01-02 14:07:40 +01:00
Jakob Nixdorf
2b74b9d6f7
Only load entries if the encryption key is set 2018-01-02 13:50:28 +01:00
Jakob Nixdorf
745676b427
Block empty passwords 2018-01-02 13:49:05 +01:00
Jakob Nixdorf
f2e6f57725
Add some safeguard when changing passwords and encryption
We still need some more to prevent any mistakes
2017-12-30 08:40:57 +01:00
Jakob Nixdorf
c46167bfe7
A little bit of refactoring 2017-12-30 08:17:08 +01:00
Jakob Nixdorf
04a511d3f4
Add password-based encryption of the database 2017-12-29 16:58:47 +01:00
Jakob Nixdorf
d68798e69a
Refactor some functions in more appropriate classes 2017-12-29 14:11:40 +01:00
Jakob Nixdorf
6612095e8f
Pass the seed from the AuthenticatActivity to the caller 2017-12-29 12:30:00 +01:00
Jakob Nixdorf
1f4b46e89a
Use random iterations to make PBKDF2 a little more secure 2017-12-29 12:08:00 +01:00
Jakob Nixdorf
ded32a7090
Use PBKDF2 to store and verify the credentials 2017-12-29 11:30:13 +01:00
Jakob Nixdorf
d40cce6c1b
Also delete the keystore entry when receiving a Panic Trigger 2017-12-28 11:39:31 +01:00
Jakob Nixdorf
84a96e3932
Fix deleting the database when receiving a Panic Trigger 2017-12-28 10:47:49 +01:00
Jakob Nixdorf
d284ce18cf
Load the encryption key in the BackupActivity directly 2017-12-28 10:35:59 +01:00
Jakob Nixdorf
b301a4fa80
Show an error message if loading the key fails 2017-12-28 09:55:16 +01:00
Jakob Nixdorf
c96c7d94bc
Load the encryption key just once and cache it inside the adapter 2017-12-27 18:18:06 +01:00
Jakob Nixdorf
e9254fca6f
Fix Travis builds 2017-12-27 16:17:37 +01:00
Jakob Nixdorf
bb55a5391e
Fix Travis builds 2017-12-27 15:46:30 +01:00
Jakob Nixdorf
cb155823f7
Remove exportAsJSON function from DatabaseHelper 2017-12-27 15:44:45 +01:00
Jakob Nixdorf
08ad01b3db
Only load the database after successful authentication 2017-12-27 15:08:29 +01:00
Jakob Nixdorf
6ce1a60cef
Bump build tools to 27.0.3 2017-12-27 12:41:28 +01:00
Jakob Nixdorf
cdc77f7911
Merge pull request #89 from RichyHBM/thumbnails-batch
Add new thumbnails for: ArenaNet, Hurricane Electric, Itch.io, Patreon, Skrill, TeamViewer, Ubisoft, Ubuntu
2017-12-20 07:14:49 +01:00