Commit Graph
100 Commits
Author SHA1 Message Date
ameba23 1eb6be2407 Only add Tor transport properties to our social backup 2021-06-29 16:40:05 +02:00
ameba23 53c4ba184d Improve logging for DuplexSyncConnection 2021-06-29 16:09:08 +02:00
ameba23 4b9c3a1a96 Call KeyManager#AddContact when restoring contacts 2021-06-29 11:43:14 +02:00
ameba23 eb66a13ded Implement message validator for handshake key exchange 2021-06-29 09:48:19 +02:00
ameba23 b860e73bdc Return an empty list when getting headers 2021-06-28 17:34:38 +02:00
ameba23 851bbb293e Rm logging 2021-06-28 17:20:17 +02:00
ameba23 36aaea40bd Register the client and hooks 2021-06-28 17:18:12 +02:00
ameba23 7563172121 Logging 2021-06-28 17:04:53 +02:00
ameba23 fad9257066 Set a contacts handshake public key on receiving one 2021-06-28 13:46:52 +02:00
ameba23 873b088a42 Add a method to set a contacts handshake public key in the database 2021-06-28 13:46:19 +02:00
ameba23 c7bca253fe Inject HandshakeKeyExchangeModule as an eager singleton 2021-06-28 09:58:39 +02:00
ameba23 47f136904c Create HandshakeKeyExchange client and module 2021-06-28 09:55:41 +02:00
ameba23 0a0b79ad9b Check for null when adding local properties to fix integration test 2021-06-25 21:07:44 +02:00
ameba23 e9f4f084dd Fix incorrect key for shared prefs 2021-06-25 13:36:03 +02:00
ameba23 3484892628 Use hex encoding for storing shards in shared preferences 2021-06-25 13:20:20 +02:00
ameba23 f67d2f0157 Include local tor properties in backup and check for remote handshake public keys 2021-06-25 13:03:45 +02:00
ameba23 ef05ecc342 Clear partially recovered shards from shared preferences when recovered 2021-06-25 09:03:58 +02:00
ameba23 3d807d9950 Save recovered shards in sharedPreferences 2021-06-25 08:44:37 +02:00
ameba23 4cf9ca9c3e Handle transport properties correctly in backup and recovery 2021-06-24 09:34:39 +02:00
ameba23 95d540644b Dont accept shards from mismatched sets - all muss match the first shard received 2021-06-22 16:26:48 +02:00
ameba23 3b4988c109 Change wording on shard notification messages 2021-06-22 09:49:33 +02:00
ameba23 9b7b583e8a Change message on success fragments 2021-06-21 16:28:10 +02:00
ameba23 21f3634050 Catch NoSuchGroupException when deleting contacts 2021-06-21 12:56:39 +02:00
ameba23 33549bcbe1 Implement deleteMessages in SocialBackupManagerImpl 2021-06-21 12:25:14 +02:00
ameba23 d975d1dbdd Implement deleteAllMessages in SocialBackupManagerImpl 2021-06-21 12:20:09 +02:00
ameba23 af64bb056d Add delete all messages to integration test 2021-06-21 12:19:32 +02:00
ameba23 ca54566ce0 SecretOwnerTask also passes a provider of AuthenticatedCipher 2021-06-16 08:34:40 +02:00
ameba23 85683a57f1 Use a provider to instantiate AuthenticatedCipher on each use, to prevent concurrency problems 2021-06-15 21:10:33 +02:00
ameba23 f524af893d Fix bug with qrCodeRead flag 2021-06-15 16:29:39 +02:00
ameba23 7b63471205 Fix bug with qrCodeRead flag 2021-06-15 16:29:06 +02:00
ameba23 4db1c4cc6b Improve strings for ui for displaying existing social backup 2021-05-18 12:06:09 +02:00
ameba23 71e63fb6f1 Tidy SocialBackupManagerImpl 2021-05-18 11:52:28 +02:00
ameba23 cae655b020 JavaDoc comments 2021-05-18 11:50:50 +02:00
ameba23 f601e2945b Improve error handling when creating backups, minor UI changes 2021-05-18 11:50:10 +02:00
ameba23 55e0ba8888 Rm logging 2021-05-05 10:34:32 +02:00
ameba23 3b4a20ce01 on retrying after fail, restart task 2021-05-04 15:10:41 +02:00
ameba23 e5eb82a5a8 Rm unused classes 2021-05-04 15:09:22 +02:00
ameba23 26a35b3212 Dont use onBackPressed when retrying after error 2021-04-27 13:07:45 +02:00
ameba23 68f135adad Additional logging in In/out DuplexSyncConnection 2021-04-27 13:06:55 +02:00
ameba23 4b30b50329 Fix ReturnShardIntegrationTest 2021-04-27 10:05:43 +02:00
ameba23 c2b7657041 Improve UI for showing qr code 2021-04-26 13:03:42 +02:00
ameba23 61a052fc65 QR code display fragment 2021-04-26 12:43:37 +02:00
ameba23 d78a6604fd UI for error and explainer fragments 2021-04-26 12:29:45 +02:00
ameba23 8ffe9a6367 Modify drawables to show one device with a qr code and one without 2021-04-26 12:27:38 +02:00
ameba23 4b9c796c1a Implement handshake on IncomingDuplexSyncConnection 2021-04-26 09:59:19 +02:00
ameba23 6af739e584 Resolve conflict after merging with social-backup-outgoing-handshake 2021-04-25 12:06:49 +02:00
ameba23 50cb3997d9 Merge remote-tracking branch 'origin/social-backup-outgoing-handshake' into social-backup-restore-activity
* origin/social-backup-outgoing-handshake:
  WIP: Add handshake support for outgoing connections.
2021-04-25 12:01:18 +02:00
ameba23 a6f06e328b Dont use an observer when adding contacts 2021-04-25 12:00:44 +02:00
ameba23 a5f0516135 Tidy RestoreAccount 2021-04-23 13:22:10 +02:00
ameba23 3d34a36908 Show success fragment on recovering account 2021-04-23 13:18:47 +02:00
ameba23 acb9b18507 addContact method which also takes a handshakePublicKey 2021-04-23 12:23:13 +02:00
ameba23 f5455d320b bramble-core 2021-04-23 12:22:18 +02:00
ameba23 07141b688a Add a method to add recovered contacts to db 2021-04-22 17:42:33 +02:00
ameba23 b1c6c602a6 Add DozeView 2021-04-22 17:41:58 +02:00
ameba23 60c6c6a7ae RestoreAccount should be injected as singleton 2021-04-22 11:55:20 +02:00
ameba23 3ac7d71f8a Change to fail state if no backup found 2021-04-22 11:04:24 +02:00
ameba23 41c13f80f4 Copy code from SetPassword fragment to avoid it using the wrong view model 2021-04-22 10:56:20 +02:00
ameba23 2e03967519 Fix dependency problems after refactor 2021-04-22 09:01:44 +02:00
ameba23 4b77a9ab60 Use backup with highest version number 2021-04-21 21:53:06 +02:00
ameba23 327cbe23ee Use DozeHelper 2021-04-21 21:52:48 +02:00
ameba23 34f15b6bdc ContactData and SocialBackup now live in briar-api 2021-04-21 16:35:27 +02:00
ameba23 5c22d233ef Restore account activity/view model 2021-04-21 16:34:56 +02:00
ameba23 afc0bc3f3c Refactor and create a RestoreAccount class which does the combining 2021-04-21 16:34:28 +02:00
ameba23 2a365d986f Restore account method for account manager 2021-04-21 15:36:44 +02:00
ameba23 741c9b63d9 Custodian closes tcp socket following error 2021-04-21 15:19:36 +02:00
ameba23 5420204703 Rm fixed port constant 2021-04-21 09:56:36 +02:00
ameba23 e827b8a190 Tidy 2021-04-21 09:55:09 +02:00
ameba23 c6046a1c38 Fix bug with re-starting listening on a tcp socket 2021-04-21 09:54:42 +02:00
ameba23 46fc510ce2 Improve UI for account recovery 2021-04-20 12:47:14 +02:00
ameba23 b835064b5e Logging and improvements to BackupPayloadDecoderImpl 2021-04-20 12:46:22 +02:00
ameba23 ae35354e82 Encode nonce in backup payload 2021-04-19 11:37:46 +02:00
ameba23 bdbc377c8f Fix UI around receiving multiple returned shards 2021-04-19 10:07:06 +02:00
ameba23 ad3c9e101c Implement BackupPayloadDecoder 2021-04-19 09:00:05 +02:00
ameba23 101b93b3da Interface for BackupPayloadDecoder 2021-04-19 08:59:37 +02:00
ameba23 e392a0dd8b Custodian should instantiate socket at the point of connecting, secret owner parse payload 2021-04-16 21:17:10 +02:00
ameba23 00de32aa87 add encoder to ReturnShardPayload 2021-04-16 21:15:29 +02:00
ameba23 3ff6042d10 Recovery UI 2021-04-16 21:14:34 +02:00
ameba23 b3adfe19a4 Allow ReturnShardPayload instances to be compared for equality 2021-04-16 12:01:39 +02:00
ameba23 708262c512 Refactor and add real shard payload to return shard activity and view model 2021-04-16 12:00:40 +02:00
ameba23 f4d667f50a give and retrieve shard payload 2021-04-15 21:25:13 +02:00
ameba23 79369f4e7a Failure reasons 2021-04-15 21:24:22 +02:00
ameba23 fec74ed343 tasks take and produce shard payload, improve integration test 2021-04-15 21:24:01 +02:00
ameba23 4ba3fdb1e3 Always cancel the task before starting it 2021-04-15 11:47:48 +02:00
ameba23 20df10d7a8 When cancelling, assume nothing is instantiated 2021-04-15 11:40:07 +02:00
ameba23 badc2c5d9b Fix bug with localKeypair being generated twice 2021-04-15 09:00:13 +02:00
ameba23 ed1ed7d3e1 Refactor duplicate task code into parent class 2021-04-14 17:59:29 +02:00
ameba23 e6d80ec484 Improve UI for Secret owner shard return 2021-04-14 17:22:59 +02:00
ameba23 536905c260 Encrypted shard return handshake 2021-04-14 17:22:34 +02:00
ameba23 9b4f5be6fe Basic encryption on the custodian side 2021-04-13 21:20:51 +02:00
ameba23 f13cc15661 Enter success state after sending ack 2021-04-13 18:22:19 +02:00
ameba23 b07206c898 Improve UI for shard return 2021-04-13 18:21:55 +02:00
ameba23 d2abd6dcc2 Basic handshake implementation 2021-04-13 17:38:03 +02:00
ameba23 6a143eea8a Update state in UI for Custodian 2021-04-13 17:37:29 +02:00
ameba23 4da20a2412 add timeout to client 2021-04-13 12:29:33 +02:00
ameba23 1bf9f57ad9 secret owner listens, and custodian connects 2021-04-13 12:20:17 +02:00
ameba23 cd1ac43b7d get the actual ip address on local wifi and add it to qr code 2021-04-13 11:56:52 +02:00
ameba23 df37a39cb4 Qr code payload contains socket address and public key 2021-04-13 11:13:28 +02:00
ameba23 f7e40657ee Temporary - allow us to jump to the custodian return shard activity directly from the settings menu, even if we dont hold any shards 2021-04-13 09:20:37 +02:00
ameba23 d6608fd8cb add a CustodianReturnShardModule which provides the view model 2021-04-13 09:19:42 +02:00
ameba23 dba4cc278c dummy ip address for local socket 2021-04-13 08:53:27 +02:00