Commit graph

132 commits

Author SHA1 Message Date
Alexander Bakker
da2f69f860 Use IvParameterSpec instead of GCMParameterSpec
Partially fixes API level 19 compatibility
2017-12-26 14:40:28 +01:00
Alexander Bakker
0a3e6e4d90 Only add SwirlView to views on API 23 and above
Partially fixes API level 19 compatibility
2017-12-26 14:40:28 +01:00
Alexander Bakker
725885d5ad Move getManager to FingerprintHelper
Partially fixes API level 19 compatibility
2017-12-26 14:39:47 +01:00
Alexander Bakker
1ac3cf9b58 Move app shortcut initialization to AegisApplication 2017-12-26 14:39:20 +01:00
Alexander Bakker
89c61eab3e Actually fix app shortcuts 2017-12-25 20:01:58 +01:00
Alexander Bakker
456069fbc7 Hopefully maybe partially fix app shortcuts 2017-12-25 19:02:46 +01:00
Alexander Bakker
950c6d0cf3 Move the recycler view to its own fragment 2017-12-25 15:36:29 +01:00
Alexander Bakker
0427164529 Never start the intro if the database file exists 2017-12-25 00:17:50 +01:00
Alexander Bakker
ff214eaa4a Add more assertions to DatabaseManager 2017-12-24 22:29:32 +01:00
Alexander Bakker
2fce0f4dcc Make ScannerActivity fullscreen and locked in portrait mode 2017-12-24 22:06:27 +01:00
Alexander Bakker
93eeef142d Remove redundant permission request code from ScannerActivity 2017-12-24 21:47:05 +01:00
Alexander Bakker
782f24342c Refactor night mode code a bit 2017-12-24 21:42:08 +01:00
Alexander Bakker
a140ba8506 Fix various issues by moving most global state logic out of MainActivity
* Move global state to a new class that overrides Application
* Make sure all preferences are stored in the same place and follow the same naming convention
2017-12-24 18:23:11 +01:00
Alexander Bakker
862533286b Make sure a fingerprint is enrolled before showing the fingerprint option 2017-12-23 18:29:46 +01:00
Alexander Bakker
49a31551a0 Clean up and fix a couple of bugs in the otp update process 2017-12-13 22:19:43 +01:00
Alexander Bakker
181cdc4c2e Request permissions at runtime if needed 2017-12-13 19:00:58 +01:00
Alexander Bakker
03d0eb01f4 Request storage permissions in the intro 2017-12-13 19:00:22 +01:00
Alexander Bakker
c3f16c2428 Fix an issue with duplicate activities on rotation 2017-12-13 16:39:03 +01:00
Alexander Bakker
094924cd1c Refresh the key profile list on pref_issuer changes
Looks like 6b56a24c274994135fac95ad03678b4c668d2db3 introduced a regression after all
2017-12-12 21:55:34 +01:00
Alexander Bakker
a66d94a743 Improve key profile adapter notification code 2017-12-12 21:28:09 +01:00
Alexander Bakker
ed86d6ac8e Split KeyProfile adapter and holder, clean stuff up and fix some bugs 2017-12-12 21:08:30 +01:00
Alexander Bakker
ff38af8e6b Separate package id for debug builds 2017-12-12 12:25:55 +01:00
Alexander Bakker
dbc79b49e8 Save the database after a drag-drop event and stop saving it on onStop 2017-12-12 03:14:26 +01:00
Alexander Bakker
17378937a9 Don't call notifyDataSetChanged in onResume
The call appeared to be useless. Feel free to revert if it isn't
2017-12-12 02:34:16 +01:00
Alexander Bakker
644a6d89fe Remove redundant casts
Android SDK 26 changed the signature of findViewById
2017-12-12 02:21:13 +01:00
Alexander Bakker
f952ee7df9 Abstract the key profile list away from MainActivity 2017-12-12 02:19:29 +01:00
Alexander Bakker
461f321626 Fix key profile order and clean up KeyProfileAdapter a bit 2017-12-12 01:50:00 +01:00
Alexander Bakker
f26dfac1b6 Some more intro logic fixes 2017-12-11 14:01:43 +01:00
Alexander Bakker
467a877a6d Fix a bug where the intro could never finish for plain text databases 2017-12-10 19:24:47 +01:00
Alexander Bakker
95638b359b Add basic support for exporting the database 2017-12-10 19:19:48 +01:00
Alexander Bakker
71eb487f85 Hopefully fix a bug where keys from a previously opened database would still be visible 2017-12-08 19:09:35 +01:00
Alexander Bakker
515e3a24eb Improve database file reading code 2017-12-04 22:08:50 +01:00
Alexander Bakker
4e10e5d514 Make Database return a read-only list on getKeys()
Also move some stuff around
2017-12-04 21:23:49 +01:00
Alexander Bakker
b3079dabc2 Remove the 'id' field from database entries as it was unused 2017-12-04 21:06:13 +01:00
Alexander Bakker
f4b9d4b45c Set title for the decryption error dialog 2017-12-03 22:06:03 +01:00
Alexander Bakker
da4956cb3c Save the database on onStop instead of onPause 2017-12-03 22:00:46 +01:00
Alexander Bakker
41846f9114 Rework the import code a bit 2017-12-03 21:42:12 +01:00
Alexander Bakker
df5a815e57 Make sure DatabaseEntry name and icon fields always have a value 2017-12-03 21:35:15 +01:00
Alexander Bakker
107ca18187 Add a key importer for plain text aegis databases 2017-12-03 18:06:35 +01:00
Alexander Bakker
642784fe9d Increase priority of DerivationTask and SlotCollectionTask 2017-12-03 17:07:23 +01:00
Alexander Bakker
493ead1c68 Fix app shortcuts 2017-12-03 16:48:18 +01:00
Alexander Bakker
fb24867569 Really, clear the confirmation password 2017-11-27 21:52:01 +01:00
Alexander Bakker
9286196811 Clean up the bottom sheet code a little 2017-11-27 21:38:02 +01:00
Alexander Bakker
ad823d05cd Also clear the password confirmation field 2017-11-27 21:07:17 +01:00
Alexander Bakker
daf81e02e6 Add some toast 2017-11-27 21:06:23 +01:00
Alexander Bakker
ca68f0525d In the intro, wait for the derivation to be complete before continuing 2017-11-27 19:25:36 +01:00
Alexander Bakker
0afc1b3a97 Derive passwords on a separate thread in the intro
Also, show a progress dialog while waiting
2017-11-27 19:22:10 +01:00
Alexander Bakker
5df20ef525 Don't allow dismissing the progress dialog 2017-11-27 18:38:58 +01:00
Alexander Bakker
d922be3912 Decrypt the database on a separate thread and show a progress dialog 2017-11-27 18:24:55 +01:00
Alexander Bakker
277d76e467 Fix key profile sorting and simplify its logic a bit 2017-11-26 22:10:10 +01:00