Commit Graph

483 Commits (68bb2b7e171f051da7903f4ff1a41a1cc1294889)

Author SHA1 Message Date
Alexander Bakker 9c5726cbca Use glide to load and cache icons
This patch adds a dependency to glide to handle the loading and caching of
icons. In my testing it eliminated the lag previously experienced in the main
activity when quickly scrolling through a large list of entries. It does add an
extra 1MB to the APK size, but I think that's acceptable for the amount of
complexity it handles for us.
6 years ago
Michael Schättgen 550e53f225
Merge pull request #140 from alexbakker/debug-flag-secure
Disable screen security by default for debug builds
6 years ago
Alexander Bakker b014d95005 Add a language option to the preference menu 6 years ago
Alexander Bakker 0123b98e47 Disable screen security by default for debug builds
I've lost count of how many times I've tried to record a demo video with
screen security enabled.
6 years ago
Alexander Bakker d7093487dd Add support for importing from FreeOTP+
This also includes some other small changes:
- Make FreeOtpImporter more reusable
- Refactor preference file parsing logic into a separate class
- Add support for importing Steam tokens from FreeOTP(+)
- Make FileReader a bit leaner
- Add some missing @Override annotations
6 years ago
Alexander Bakker 02c9a0cb1c Move entry divider logic to EntryListView
This patch makes EntryListView responsible for providing the divider between
entries, instead of setting a margin on every entry like we do now. It also
fixes a couple of miscellaneous issues, like use of the old package name.
6 years ago
Michael Schättgen eb29be587f Fix bug where searchview did not reset properly 6 years ago
Alexander Bakker f64a23d98f Release v0.4.3 6 years ago
Alexander Bakker 4066cd83cc Limit the amount of entry info passed to SelectEntriesActivitiy
This horrid patch changes the vault import logic to pass an ImportEntry list to
SelectEntriesActivity, instead of a DatabaseEntry list. Previously, a crash
would occur when importing a vault with lots of icons, because the maximum
Parcel size was exceeded.

Storing icons in the vault file was a bad idea.
6 years ago
Alexander Bakker cca35bd5e5
Merge pull request #109 from michaelschattgen/feature-entrysearch
Add ability to search for entries in vault
6 years ago
Michael Schättgen 187adfa738 Add ability to search for entries
Fix bug where new entries did not get filtered

Fix IsEntryFiltered
6 years ago
Alexander Bakker 246c03dea1
Merge pull request #107 from michaelschattgen/feature-importauthy
Add support for importing from Authy
6 years ago
Alexander Bakker e68571a7a6
Merge pull request #108 from michaelschattgen/feature-qrshortcuticon
Add new QR shortcut icon which follows material guidelines
6 years ago
Michael Schättgen c75b25c4b6 Add new QR shortcut icon which follows material guidelines
Remove superfluous drawable files
6 years ago
Michael Schättgen 6abcfcea75 Add ability to import from Authy
Fix importer and appImporter lists
6 years ago
Alexander Bakker b300b72626 Don't ignore the result of IntroActivity when the vault is locked
This fixes a bug where AuthActivity would be shown after finishing the intro.
6 years ago
Alexander Bakker b2995955b6 Release v0.4.2 6 years ago
Alexander Bakker 1c9d07a47d Adapt the unlock button size in AuthActivity to the text width 6 years ago
Alexander Bakker 66f99eb4d4 Always launch AuthActivity on lock if MainActivity is resumed 6 years ago
Alexander Bakker ff584a323d Always try to decrypt the password slot first, before the fallback
This makes sure the case where a user set up Aegis v0.4 with a password of over
64 bytes is also covered.
6 years ago
Alexander Bakker 8c658ac930 Use the old encode method for passwords over 64 bytes and repair the slot (#98)
Commit afb9e59711 fixed a bug where the password
encode function would add null bytes to the end of the output. Luckily (I
thought), PBKDF2 produces collisions for inputs with trailing null bytes and
thus scrypt does this as well, so we could safely change that function to remove
the null bytes without any impact. Unfortunately, that doesn't hold up if the
password is over 64 bytes in size. So after that change, the KDF started
producing different keys than before for such passwords and thus some users
could no longer unlock their vault.

This patch addresses the issue by using the old password encode function for
passwords over 64 bytes and repairing the affected password slot.
6 years ago
mdmk 588c1c07df Update french translation (#97)
* Update strings.xml
6 years ago
Alexander Bakker f54639c791
Merge pull request #89 from michaelschattgen/feature-ignorespaces
Add possibility to ignore spaces in EditTexts
6 years ago
Alexander Bakker 7c78ddc929 Release v0.4.1 6 years ago
Alexander Bakker 9f3ccdc508 Force a period uniformity check when initializing EntryAdapter
This fixes a bug where the progress bar was not shown upon unlock.
We'll come up with a better solution later. This is just a hot fix.
6 years ago
Alexander Bakker 99c222cffa Release v0.4 6 years ago
Michael Schättgen 3556cd0e66 Add possibility to ignore spaces in EditTexts 6 years ago
Alexander Bakker 57e3574693 Fix a bug where Aegis would forcibly pop up after unlocking the device 6 years ago
Michael Schättgen b6a31e798f Select and focus password on failed unlock attempt 6 years ago
Michael Schättgen 5ebb714d05 Fix setting the preferred theme 6 years ago
Alexander Bakker 9958f73926 Set the Activity theme before calling super.onCreate (#84)
This fixes a NullPointerException that would occur when restoring from
savedInstanceState due to getSupportActionBar returning null. It also removes
the theme definitions from AndroidManifest as we override those anyway.
6 years ago
Alexander Bakker 0fb33744ae Update Krop to 0.44 (#83) 6 years ago
Alexander Bakker 6d26d1beb0 Fix the last couple of sorting bugs (#77)
This fixes the following bugs:
- Sort category is forgotten after lock/unlock
- The sort mode is not respected for new entries

I got a little carried away while working on this patch and also included the
following other enhancements:
- Simplify the SortCategory, Theme and ViewMode enums
- Simplify usage of string resources
- Don't call notifyDataSetChanged and runLayoutAnimation unnecessarily
6 years ago
Alexander Bakker 0a8dd56306 Escape apostrophes in the French translation 6 years ago
mdmk 8a8d714901 French translation and small changes to english strings. (#59)
* Typos in strings

- Double space.
- Missing verb in sentence. "need" makes sense here.
- Equal is a verb suitable for speaking of strings. For a final user, identical is more understandable.

* French translation
6 years ago
Alexander Bakker 9893b2f057 Add support for importing encrypted andOTP backups
This also refactors dialog_newgroup to serve as a generic text input dialog
6 years ago
Alexander Bakker 47df8968c7 Refactor database importer logic
Summary:
- Combine app and file importers into one type
- Split encrypted and plain text file logic into separate DatabaseImporter.State
  classes
- Add an abstract FileReader class that can handle reading from apps and files

The idea is that every importer implements its own UI logic to obtain
credentials for decryption through a dialog. Aegis databases are still an
exception to this rule as it still uses an Activity to ask for credentials. This
will be addressed in a future patch.

As a result of this change all app importers are now also available under
"Import from file".
6 years ago
Alexander Bakker 33b4b4b7ab
Merge pull request #72 from michaelschattgen/feature-selectentries
Add ability to select entries when importing
6 years ago
Michael Schättgen 21fd8fdd8d Add ability to select entries when importing
Move onScroll to seperate class to avoid duplicate code

Move importing logic back to the PreferencesFragment

Add minor changes

Add ImportEntry to properly track checked states

Minor layout changes
6 years ago
Alexander Bakker afb9e59711 Fix a bug where the password encode function added trailing null bytes
Funny story. Instead of	obtaining the actual bytes from the ByteBuffer in the
password encode function, we obtained the entire buffer. This caused some
trailing null bytes to be added to the encoded password. Luckily (and
strangely), PBKDF2 produces collisions for inputs with trailing null bytes and
thus scrypt does this as well. As such, this bug doesn't affect us right now,
but it would if we were to use that encode function for other purposes in the
future.

This also adds a test that checks for the expected collision behavior of scrypt.
6 years ago
Michael Schättgen 2de9b96138 Add ability to scan image for QR code 6 years ago
Alexander Bakker f4678e2813 Release v0.3.3 6 years ago
Michael Schättgen b958145761 Fix bug where parsing otp codes was impossible
Y I K E S
6 years ago
Alexander Bakker feea9a2e67 Fix crash when trying to auto lock a locked vault 6 years ago
Alexander Bakker ebb9d0be3f Make app importer path lookup more dynamic
Also fixes a crash in SteamAppImporter that occurred with empty dirs
6 years ago
Alexander Bakker f5cbec21f4 Release v0.3.2 6 years ago
Alexander Bakker cb01fb21d3 Remove extra translations to fix lint errors in release mode 6 years ago
Alexander Bakker c5be99e58d Release v0.3.1 6 years ago
Alexander Bakker 92458d0d3b Move setGlobalDurationScale to AegisActivity
Also, rename the method and make the error string translatable
6 years ago
Michael Schättgen 5d835b05ee
Merge pull request #56 from ByteHamster/krop-color
Darkened Krop color
6 years ago
Michael Schättgen 2a47fa4de5 Add method to set global duration scale
Fixes #35
6 years ago
Alexander Bakker 553cb16bc4
Merge pull request #57 from ByteHamster/arrays
Strings.xml cleanup
6 years ago
ByteHamster 47f8c9e648 Strings cleanup
- Removed unused strings
- Moved arrays to their own file, so translators do not have to deal with arrays
6 years ago
ByteHamster a415ef573e Show keyboard automatically 6 years ago
ByteHamster ffa2577cc2 Darkened Krop color 6 years ago
Alexander Bakker 2a0daae155 Fix crash that occurred when scheme of the URI in a QR code is missing 6 years ago
Michael Schättgen b41e328d22 Add ability to translate themes and viewmodes
Closes #50
6 years ago
Michael Schättgen 1ac42d85d6
Merge pull request #53 from alexbakker/feature-autolock
Add an option to automatically lock the app
6 years ago
Michael Schättgen 685a791aba
Merge pull request #49 from zaggo0/master
Add Dutch translations
6 years ago
Michael Schättgen 89a1663e28 Fix bug where entries didn't get sorted properly 6 years ago
Alexander Bakker 0563ac917a Fix some rare crashes when restoring the app after termination
Also fixes an issue where the app shortcuts would not work for unencrypted vaults
6 years ago
Patrick van der Linden 719ef3bc71 Add Dutch translations
+ Fix preference groups not being translated
6 years ago
Alexander Bakker 18fd88a441 Add an option to automatically lock the app
This adds an option to automatically lock the app when:
* The back button is pressed
* The device is locked

It's the first step towards implementing #7
6 years ago
Alexander Bakker 6d93b78f9a Fix a crash on KitKat when clearing the KeyStore
Apparently KitKat doesn't like KeyPermanentlyInvalidatedException
6 years ago
Alexander Bakker 4365a693f2 Get Cipher back from FingerprintManager,CryptoObject after auth 6 years ago
Alexander Bakker 14fa493ac9 Remove keys from the KeyStore when disabling encryption or fingerprint 6 years ago
Alexander Bakker 36e3dd559c Normalize formatting and 'optimize' imports 6 years ago
Michael Schättgen b7cf234db6 Add smaller view mode
Closes #39
6 years ago
Alexander Bakker f27dc54ec4 Release v0.3 6 years ago
Alexander Bakker 4c1dec613c Fallback to a 30 second period if an andOTP doesn't provide one 6 years ago
Alexander Bakker a251685002 Add a dialog that displays a list of errors that occurred during import 6 years ago
Alexander Bakker 118221e3df Add support for Steam tokens to the andOTP importer
Close #44
6 years ago
Alexander Bakker 1dd5f893da Add support for Steam OTP 6 years ago
Michael Schättgen a46640f43d Fix recreate when setting view mode 6 years ago
Michael Schättgen a293078603 Add way to set view mode 6 years ago
Michael Schättgen f3ed79dc71 Add ability to change view mode 6 years ago
Michael Schättgen ee8fd2e9f2 Hide divider in compact mode when progressbar is visible 6 years ago
Michael Schättgen 8b9ec5f976 Start working on compact mode 6 years ago
Michael Schättgen d283eae7a0 Add russian strings for authentication methods
#43
6 years ago
Michael Schättgen a854db760c
Merge pull request #41 from ferhadnecef/stringlate-ru-1048
Updated ru (Russian) translation
6 years ago
Michael Schättgen bbf967e2b7 Add a way to save current sorting method 6 years ago
Michael Schättgen b9d011b48e Disable drag and drop when list is sorted 6 years ago
Michael Schättgen ecdadf5335 Add SortCategory fixes and support for custom sorting 6 years ago
Michael Schättgen 10b80442d0 Comparators will now ignore casing 6 years ago
Michael Schättgen 62025d1053 Add way to check for reversed sort categories 6 years ago
Michael Schättgen 09fe550a28 Add AccountNameComparator 6 years ago
Michael Schättgen 07aac1e6a3 Add support for reversed sorting methods 6 years ago
Michael Schättgen b8939b504e Start working on entry sorting 6 years ago
Alexander Bakker 592c6683c3 Continue importing entries even if one can't be parsed 6 years ago
ferhad.necef f8edac72ea Updated ru (Russian) translation 6 years ago
Alexander Bakker fc0e1150f6 Replace hardcoded encoding names with constants 6 years ago
Michael Schättgen ede9f93a59 Release v0.2.2 6 years ago
Michael Schättgen c6c0eb88e9 Fix true black theme in all activities
Closes #32. Also tested on API 19.
6 years ago
Michael Schättgen a4ff9d6d31 Fix crash in API 19 6 years ago
Michael Schättgen f7c32bc28b Improve theme based texts 6 years ago
Michael Schättgen 59c0ca947d Add workaround for amoled themed preferences 6 years ago
Michael Schättgen a7ac1adb80 Convert dark mode preference to select theme preference 6 years ago
Michael Schättgen 17204cc026 Add status bar color for true dark theme 6 years ago
Michael Schättgen cf4aecbd3e Refactor dark mode to allow multiple themes 6 years ago
Michael Schättgen 9baaf824c6 Start working on amoled / true black theme
#32
6 years ago