Julian Raufelder
7e25b3cd40
Minor clean-up
2022-02-15 10:51:09 +01:00
Julian Raufelder
bf1279743e
Use custom HTTP client for OneDrive to increase timeouts
2022-02-15 10:51:08 +01:00
Julian Raufelder
10cb02f475
Store vault metadata like format in database and refresh while unlock
...
For example, if authentication recovery fails, we load the vault from the database, which may result in a vault format -1 before this commit. We try to avoid this by overwriting the state after the authentication succeeds again, but we can't always avoid the vault format being -1 if, for example, during authentication the user changes activity, so we now store these fields in the database and update them if they have changed during unlock to prevent these states. Alternatively we could have locked the vault but from a UX point of view it makes no sense that the user has to unlock the vault again just because e.g. the token has to be refreshed.
2022-02-14 17:37:10 +01:00
Julian Raufelder
017ab520a2
Preserve Cryptors of the same cloud if the cloud gets updated
...
If e.g. a cloud gets updated during token refresh while browsing files we authenticate, save the updated cloud, update the vault and now no longer lock other vaults from the same cloud but update them too.
2022-02-12 22:22:00 +01:00
Julian Raufelder
d9801662dd
Close buffer and null-check response body
2022-02-11 12:11:21 +01:00
Julian Raufelder
a651b273fb
Add access to shortcuts of folders in Google Drive
...
Workaround for #411 ("Shared with me") #363 ("Computers") and #354 ("Shared drives")
2022-02-10 15:44:21 +01:00
Julian Raufelder
b753ec4c01
Reduce connection timeouts from two to one minute
2022-02-08 14:58:49 +01:00
Julian Raufelder
f10ac8798a
Show specific message if the server doesn't support WebDAV
...
Fix wrong exception exposed
2022-02-04 15:45:59 +01:00
Julian Raufelder
d93624c5dd
Fix race condition when AuthActivity finished and resumes BrowseFiles
...
CloudList gets refreshed and token is updated, if the token update is faster, resuming overwrites the delegates in DispatchingCloudContentRepository again due to authentication fail because the old folder is used in the onFolderReloadContent because folder in BrowseFilesActivity isn't yet updated.
2022-02-03 22:37:03 +01:00
Julian Raufelder
022e42b8c8
Remove build warnings
2022-01-28 18:23:33 +01:00
Julian Raufelder
11f5a61789
Fix listing when credential changed in background due to auth problem
...
E.g. the token is expired and was refreshed
2022-01-26 16:03:06 +01:00
Julian Raufelder
e11759b23f
Bug fixes and cleanup ( #405 )
2022-01-26 11:30:21 +01:00
Julian Raufelder
4221d299ce
Update Gradle to version 7.2
2022-01-26 11:17:07 +01:00
Julian Raufelder
1d808edd8d
Delete Onedrive cloud only when not set up ( #405 )
2022-01-25 11:47:34 +01:00
Julian Raufelder
7704ab5b87
Update msgraph-sdk version to 5.12.0 ( #405 )
...
* Update API level level to 26
* Support multi OneDrive accounts
* Migrate to the new authentication library
2022-01-24 11:51:02 +01:00
Julian Raufelder
c685cc3645
Re-initialise the client to access the cloud when credentials changes
...
Fixes #395
2021-12-03 16:49:10 +01:00
Julian Raufelder
b5c1170d4b
Remove parallelism
2021-11-16 12:17:08 +01:00
Julian Raufelder
0c31410cec
Remove network check for caching as network is forced in WebDAV
2021-11-05 11:40:35 +01:00
Julian Raufelder
b163353c1e
Simplify TrustManager assignment
2021-11-05 11:40:26 +01:00
Julian Raufelder
ad8a2ae747
Set TLS1.3 as enabled protocol in WebDAV-client on Android >= v10
...
Fixes #374
2021-11-04 14:57:06 +01:00
Julian Raufelder
250d756917
Ask user to re-grant local storage permission when revoked #251
2021-10-28 17:50:25 +02:00
Julian Raufelder
810a9877ca
Implement local storage migration by removing them with a hint #251
2021-10-27 22:59:57 +02:00
Julian Raufelder
f39cc8da7c
Fix delete local cloud ( #251 )
2021-10-22 17:51:12 +02:00
Julian Raufelder
7add3e5bed
Delete local storage cloud and set its vault connection to null ( #251 )
2021-10-22 17:40:55 +02:00
Julian Raufelder
91d1a65ba7
Update target API to 30 (Android 11)
...
Write external storage got removed due to forced scoped storage. Local storage cloud is now only available using the storage access framework implementation. Migration still needs to be implemented as well as how to recover when the authentications fails in the LocalStorageAuthStrategy.
Fixes #251
2021-10-22 15:52:02 +02:00
Julian Raufelder
3b641a22d8
Remove unused Context variable from the WebDavClient
2021-10-21 11:20:44 +02:00
Julian Raufelder
f6cc2c75e0
Fix MasterkeyCryptoCloudProviderTest as we now use HS256
2021-10-20 11:25:36 +02:00
Julian Raufelder
fdb6341773
Use HS256 instead of defaulting to HS512 for signing vault.cryptomator
...
New vaults should be created using HS256 to be compatible with the desktop and iOS app. Before, we was defaulting to HS512. Now we specify the correct version.
While unlock, the algorithm specified in the header is used.
Fixes #366
2021-10-20 10:53:34 +02:00
Julian Raufelder
d4e642ae83
Generic error while unlock when WebDAV password changed ( fixes #364 )
2021-10-08 22:40:14 +02:00
Julian Raufelder
e6bd62e937
Update dependencies
2021-10-01 17:10:31 +02:00
Julian Raufelder
49586ba53f
Remove tracking library included by google-http-java-client ( fixes #358 )
...
By using https://github.com/SailReal/google-http-java-client which removed in 03a2374c31
all (in our case deactivated) tracking stuff.
And move all submodules to the '/lib'-folder
2021-10-01 13:37:01 +02:00
Julian Raufelder
3896db3631
Display parent folder in NoDirFileDialog instead of the dir.c9r file
2021-09-22 15:54:23 +02:00
Julian Raufelder
2ae54f8748
#323 fix http status code 500 on some devices using Google Drive
...
Due to too complex query, see https://github.com/cryptomator/android/issues/323#issuecomment-911907421 for more details
2021-09-14 12:32:05 +02:00
Julian Raufelder
d4bf3ff668
Implement ExponentialBackOff to GoogleDrive to hopefully workaround #323
...
We now retry a request if e.g. a status code 500 was received for max 15 seconds with exponential back off
2021-09-01 09:32:39 +02:00
Julian Raufelder
b7e9aab2da
Update dependencies
2021-08-25 17:49:07 +02:00
Julian Raufelder
a018cbd898
#336 hacky way to recover from SQLiteException while inserting old data
2021-07-23 16:42:34 +02:00
Julian Raufelder
05574d952c
Add tests for database upgrades
2021-07-22 19:27:57 +02:00
Julian Raufelder
cf439a1030
Fix database upgrade from version 3 to 4
...
DAO object was used while upgrade which can lead later to crash when the object changed
2021-07-22 19:02:03 +02:00
Julian Raufelder
8435bd0174
Fix database upgrade from version 2 to 3
...
The update isn't executed at all :/
2021-07-22 18:11:15 +02:00
Julian Raufelder
1d6811e1e8
Fix create initial update status entry in database
...
Fortunately, SqlInsertBuilder.text("LICENSE_TOKEN", null) and SqlInsertBuilder.bool("LICENSE_TOKEN", null) have the same result in this context
2021-07-16 17:38:47 +02:00
Julian Raufelder
bed3f3ac04
Show beta disclaimer dialogue
2021-07-09 19:13:38 +02:00
Julian Raufelder
3ae90ab521
Fix Dropbox vault unlock in vault version 7 and caching enabled
2021-07-07 16:58:43 +02:00
Julian Raufelder
543a03212f
#328 fix rename vault in S3 leads to empty vault
2021-07-07 15:48:35 +02:00
Julian Raufelder
d18e08f8a4
Fix move in GoogleDrive
2021-07-06 18:58:50 +02:00
Julian Raufelder
10e03d3df2
Remove some unwraps
2021-07-06 17:38:55 +02:00
Julian Raufelder
c23a5a2cfc
Handle further exceptions in a less generic way
2021-07-06 15:30:34 +02:00
Julian Raufelder
210d0fa7f4
Handle less generic exceptions in catch clauses
2021-07-06 12:52:51 +02:00
Julian Raufelder
d82bcaa3e8
Update dependencies
2021-07-06 12:00:29 +02:00
Julian Raufelder
7deebbd919
Refactore further code to Kotlin
2021-07-05 17:54:42 +02:00
Julian Raufelder
5c024dbda9
Reformat code using new Kotlin formatting rule
2021-05-17 18:26:07 +02:00