aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/java
AgeCommit message (Collapse)AuthorFilesLines
2020-09-05SshjConfig: use runCatching to replace exception handlingHarsh Shandilya1-4/+2
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-09-05BasePgpActivity: use runCatching to replace exception handlingHarsh Shandilya1-15/+7
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-09-05SshKey: use runCatching to replace exception handlingHarsh Shandilya1-10/+12
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-09-05SshjSessionFactory: use runCatching to replace exception handlingHarsh Shandilya1-3/+4
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-09-05GitOperation: use runCatching to replace exception handlingHarsh Shandilya1-6/+7
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-09-05GitLogModel: use runCatching to replace exception handlingHarsh Shandilya1-3/+5
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-09-05AutofillPublisherChangedActivity: use runCatching to replace exception handlingHarsh Shandilya1-3/+5
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-09-05AutofillScenario: use runCatching to replace exception handlingHarsh Shandilya1-3/+5
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-09-05GitSettings: use runCatching to replace exception handlingHarsh Shandilya1-2/+4
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-09-05PasswordRepository: use runCatching to replace exception handlingHarsh Shandilya1-8/+11
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-09-05GitConfigActivity: use runCatching to replace exception handlingHarsh Shandilya1-6/+8
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-09-05GitServerConfigActivity: use runCatching to replace exception handlingHarsh Shandilya1-17/+11
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-09-05GetKeyIdsActivity: use runCatching to replace exception handlingHarsh Shandilya1-2/+4
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-09-05SelectFolderFragment: use runCatching to replace exception handlingHarsh Shandilya1-4/+5
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-09-05Extensions: use runCatching to replace exception handlingHarsh Shandilya1-2/+4
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-09-05Otp: use runCatching to replace exception handlingHarsh Shandilya2-29/+13
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-09-05UserPreference: use runCatching to replace exception handlingHarsh Shandilya1-9/+10
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-09-05PasswordBuilder: use runCatching to replace exception handlingHarsh Shandilya2-43/+40
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-09-05PasswordStore: use runCatching to replace exception handlingHarsh Shandilya1-19/+14
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-09-05PasswordFragment: use runCatching to replace exception handlingHarsh Shandilya1-2/+4
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-09-05ClipboardService: use runCatching to replace exception handlingHarsh Shandilya1-6/+1
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-09-05Migrations: use runCatching to replace exception handlingHarsh Shandilya1-4/+4
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-09-05Form: use runCatching to replace exception handlingHarsh Shandilya2-12/+17
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-09-05AutofillDecryptActivity: use runCatching to replace exception handlingHarsh Shandilya1-63/+68
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-09-05OnboardingActivity: use runCatching to replace exception handlingHarsh Shandilya1-2/+4
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-09-05SshKeyGenActivity: use runCatching to replace exception handlingHarsh Shandilya1-21/+21
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-09-05Migrations: reuse SharedPreferences instancesHarsh Shandilya1-18/+20
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-09-05PasswordRepository: add custom FS factory for symlink capabilities (#1081)Harsh Shandilya1-0/+33
Co-authored-by: Fabian Henneke <fabian@henneke.me>
2020-09-05DecryptActivity: properly calculate remaining OTP time on first pass (#1080)Harsh Shandilya1-0/+7
* DecryptActivity: properly calculate remaining OTP time on first pass We default to 30 seconds for each recalculation but the first run might not have 30 seconds left in its period, making the value stale much earlier. While most websites offer another 30 seconds of validity for TOTP codes, many do not, thus making it hard to enter a correct OTP Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Update changelog Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-09-04Assorted UX improvements (#1077)Harsh Shandilya3-1/+12
* CredentialFinder: allow seeing password when retrying Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * GitOperation: bail out early when SSH key is missing Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * OnboardingActivity: finish all activities in onBackPressed Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Update CHANGELOG Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-09-04Add migration to new SshKey backend (#1076)Fabian Henneke7-12/+35
Co-authored-by: Harsh Shandilya <me@msfjarvis.dev>
2020-09-04Revamp onboarding logic (#1068)Harsh Shandilya6-188/+227
2020-09-04Remove BaseGitActivity's onOptionsItemSelected override (#1075)Harsh Shandilya1-11/+0
Each activity that inherits from it should handle its own navigation Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-09-03Refactor Git operations and auth (#1066)Fabian Henneke20-471/+268
Co-authored-by: Harsh Shandilya <me@msfjarvis.dev>
2020-09-01Add Keystore backend for SSH public key authentication (#1070)Fabian Henneke18-161/+533
2020-08-29Simplify decrypt intent creation (#1069)Alexander Kirillov1-6/+7
2020-08-28Add Activity to view the Git commit log (#1056)Nosweh7-17/+240
2020-08-27Do not return stored password on first retry (#1061)Fabian Henneke1-1/+1
2020-08-27Remember HTTPS password throughout a sync operation (#1062)Fabian Henneke1-3/+14
* Remember HTTPS password throughout a sync operation * Add CHANGELOG.md entry Co-authored-by: Harsh Shandilya <me@msfjarvis.dev>
2020-08-27Delete HTTPS instead of SSH key password on error (#1060)Fabian Henneke1-1/+1
2020-08-27Expand show hidden folders to also cover files (#1059)Harsh Shandilya6-12/+32
* PasswordItem: only strip .gpg suffixes Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Add preference key and migration for showing all hidden contents Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Allow showing both hidden files and directories Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Add tests for hidden folder setting migration Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Add changelog entry Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Slightly improve migration logic Skip migration if old key is not found and always delete the previous key even if its set to false. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Tweak wording Suggested-by: Fabian Henneke <fabian@henneke.me> Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Assert previous key's removal in tests Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-08-26Get rid of explicit Git server protocol (#1054)Fabian Henneke4-62/+38
* Double check Git server protocol Ensure that the Git server protocol is not at odds with the URL scheme. Also move the Protocol switches below the URL to make it clear that the URL should be entered first. * Remove protocol selection from server config The protocol is now extracted from the URL, and the authentication mode selection is validated by GitSettings Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Don't use pref values for auth modes Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Apply suggestions from code review Remove now unused protocol mismatch result type Co-authored-by: Fabian Henneke <FabianHenneke@users.noreply.github.com> * Simplify migration logic and fix tests Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Revert "Simplify migration logic and fix tests" This reverts commit 1c4c4ba5fbc212843cb6b74dd29ac858eaea7582. * Detect URLs with null scheme as ssh * Add changelog entry Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> Co-authored-by: Harsh Shandilya <me@msfjarvis.dev> Co-authored-by: Harsh Shandilya <msfjarvis@gmail.com>
2020-08-26Rename ConnectionMode to AuthMode and remove clone_ prefix (#1053)Fabian Henneke8-64/+64
2020-08-24Improve Git server config activity (#1051)Fabian Henneke3-41/+79
2020-08-24Return HTTPS URI username from CredentialsProvider (#1049)Fabian Henneke1-1/+2
Let the PasswordFinderCredentialsProvider support Username as a CredentialItem type and return the user part of the repository URI when it is requested.
2020-08-23Prevent racing double commits on password creation (#1047)Fabian Henneke1-6/+8
Co-authored-by: Harsh Shandilya <me@msfjarvis.dev>
2020-08-23BiometricAuthenticator: also allow Class 2 biometric implementations (#1046)Harsh Shandilya1-1/+1
Android OEMs are hellspawn Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-08-23BiometricAuthenticator: fix multiple regressions from AndroidX update (#1045)Harsh Shandilya1-7/+10
Fixes: 80e43e5675bf ("Update dependencies (#1039)") Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-08-22Don't use git config for setting author and email (#1043)Harsh Shandilya3-45/+5
Fixes #1038 Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-08-22Autofill: add support for Bromite and Ungoogled Chromium (#1041)Devin J. Pohly1-0/+5