Daniel Gultsch
0812bae1ab
do not run alpha check on jpegs
2021-02-20 10:08:43 +01:00
Daniel Gultsch
8ce7bfb95e
automated code clean up
2021-01-23 09:25:34 +01:00
Ferdinand Pöll
453ca7c0ed
Migrate from Android Support Library to AndroidX
...
Unignored gradle.properties since androidX requires additions there
See also https://developer.android.com/jetpack/androidx/migrate
2021-01-18 20:49:35 +01:00
Daniel Gultsch
303e205276
if file extension doesn’t exist. try to guess from content type. fixes #3939
2020-12-06 19:22:36 +01:00
Daniel Gultsch
a0920b83e2
use Account.getDomain() for direct access to domain jid
2020-05-17 10:24:46 +02:00
Daniel Gultsch
b6703dbe38
switch xmpp-addr to jxmpp-jid
2020-05-15 17:06:16 +02:00
Daniel Gultsch
00191e2b60
explicitly use BouncyCastle for file crypto
2020-03-09 19:12:30 +01:00
Daniel Gultsch
257de4b51e
fixed typo
2020-03-09 15:06:21 +01:00
Daniel Gultsch
aecb771ab5
use 16 byte IVs for http upload files larger than 768KiB
...
Ever since Android 9+ switched to Conscrypt we can no longer efficiently
encrypt (and decrypt) large files with AES-GCM. We did’t notice this before
because when using 16 byte IVs even modern Androids will fall back to bouncy
castle. However the 'bug'/'feature' in Conscrypt surfaced when we switched over
to 12 byte IVs (which uses Conscrypt on Android 9+)
Switching back entirely to 16 byte IVs is undesirable as this would break
compatibility with Monal. So we end up with a weird compromise where we use
12 byte for normale plain text OMEMO messages and 'small' files where the
inefficiencies aren’t a problem.
The result of this commit is that Monal won’t be able to receive our files
larger than 768KiB. However the alternative is that Conversations would always
OOM when attempting to send larger files (where large depends on the available
RAM.)
fixes #3653
2020-03-08 13:13:19 +01:00
Daniel Gultsch
66da5ffb6c
fixed download of previously deleted omemo files
2020-01-20 10:43:17 +01:00
Daniel Gultsch
c62d5ebcb3
added failure logging to http download
2020-01-19 11:36:26 +01:00
Daniel Gultsch
c502503994
pass omemo decrypt up to higher layers to count as download error. decrypt all encrypted files
2020-01-19 10:01:43 +01:00
Daniel Gultsch
724f30bcc5
fixed adding omemo encrypted images to gallery
2020-01-15 14:19:17 +01:00
Daniel Gultsch
80e83f77a7
pulled translations from transifex
2020-01-08 19:05:12 +01:00
Daniel Gultsch
af3c106dc8
reset file to normal message when attempting re-download after delete
...
fixes : #3604
2019-12-30 00:14:55 +01:00
Daniel Gultsch
ed4a73e1c7
persist file size across aborts
...
fixes #3601
2019-12-26 19:01:01 +01:00
Daniel Gultsch
9bcef7a8e7
display '#' in generated channel avatars
2019-12-22 19:30:58 +01:00
Marc Schink
5117956648
Add missing space in debug output
2019-12-21 13:16:22 +01:00
Marc Schink
92cf221a2b
Implement download resumption for OMEMO encrypted files
2019-12-21 13:16:18 +01:00
Daniel Gultsch
07786d4576
optionally search local muc rooms instead of jabber.network
2019-11-02 09:43:37 +01:00
Daniel Gultsch
af74c3604c
fixed R8 weirdness
2019-09-18 11:04:36 +02:00
Daniel Gultsch
d3ccba445a
increased reconnection interval after policy violation
2019-08-16 15:00:26 +02:00
Daniel Gultsch
0770914edf
refactored filename and extension parsing
2019-08-16 14:09:42 +02:00
Daniel Gultsch
953307ca30
use socks instead of http proxy for http upload
...
http proxy doesn’t seem to work with onion v3
2019-06-16 15:06:34 +02:00
Daniel Gultsch
82dcae59e3
added language tag in channel search results
2019-05-02 20:09:43 +02:00
Daniel Gultsch
b2ea91909b
introduced type private_file_message to handle attachments in PMs. fixes #3372
2019-04-27 11:46:43 +02:00
Daniel Gultsch
ff84ee6964
cache channel search results
2019-04-24 13:25:54 +02:00
Daniel Gultsch
2fa687b8ae
refactor muc search to use http
2019-04-22 13:00:45 +02:00
Daniel Gultsch
b30fb46c85
make sure that http upload/download is not startetd multiple times
2019-01-28 10:39:01 +01:00
Daniel Gultsch
8ab4ca7138
fixed downloading of deleted files
2019-01-10 21:23:53 +01:00
Daniel Gultsch
52afcac230
mark deleted files in database and not query them when querying for media
2019-01-10 14:52:27 +01:00
Daniel Gultsch
96e3546904
put images into MessageStyle notifications
2019-01-09 12:47:09 +01:00
Daniel Gultsch
52ecd9347c
added dialogs for rate limiting and out of date version
2018-10-31 13:33:55 +01:00
Daniel Gultsch
4f12cf06ed
revert back to 16 byte IVs for omemo since ChatSecure doesn’t support 12 byte
2018-10-17 20:46:57 +02:00
Daniel Gultsch
de0741bdf7
show cancelled instead of delivery failed if user requested to abort transfer
2018-10-07 14:59:08 +02:00
Daniel Gultsch
f608fb349a
refactored file encryption to give access to inner stream
...
Conscrypt on some plattforms doesn’t like when we close the CipherInputStream. Therefor we refactor the api to give us access to the inner stream so we can close that independently.
2018-10-03 18:14:45 +02:00
Daniel Gultsch
4c08ba8d03
use 12 byte IV for omemo and http upload
2018-10-03 17:44:48 +02:00
Daniel Gultsch
9ca636589c
remove more legacy otr decryption code
2018-10-03 12:50:54 +02:00
Daniel Gultsch
1cbb60d7ed
removed unused code (otr jingle encrypted file transfer)
2018-09-30 13:48:11 +02:00
Daniel Gultsch
ae35593f65
catch all exceptions when checking file size
2018-07-16 20:42:40 +02:00
Daniel Gultsch
af420c84a0
automatically start download if file size is known
2018-06-28 17:44:00 +02:00
Daniel Gultsch
b9bdb3df55
use Tor on http upload is account uses onion domain. fixes #3075
2018-06-16 18:31:55 +02:00
Daniel Gultsch
4557a3fc4f
make sure account is connected before attempting to download p1s3
2018-05-27 20:39:12 +02:00
Daniel Gultsch
1854e37e7a
reintroduce support for old http upload
2018-05-26 21:43:50 +02:00
Daniel Gultsch
ea5cdec186
handle p1s3 urls in http downloader
2018-05-25 15:37:14 +02:00
Daniel Gultsch
4626bdf8d8
show p1s3 attchments with download button
2018-05-25 13:18:25 +02:00
Daniel Gultsch
70d95c7903
upload files using p1s3 - sending part
2018-05-25 12:24:23 +02:00
Daniel Gultsch
d5a187bafb
use Tor to download map tiles if configured to do so
2018-05-11 12:42:39 +02:00
Daniel Gultsch
4a706aad03
catch dead object exceptions when acquiring wake locks
2018-04-15 18:31:58 +02:00
Daniel Gultsch
5514958e93
presist http upload availibility
2018-03-18 10:30:15 +01:00