Commit Graph

356 Commits

Author SHA1 Message Date
Cody Henthorne
8aa6d0bbca Include AEP in link device provisioning message. 2025-04-24 15:55:39 -04:00
Greyson Parrelli
8c5811581e Add additional logging around storage batch sizes. 2025-04-24 15:55:39 -04:00
Greyson Parrelli
619d2997f6 Add additional local metrics around storage service writes/reads. 2025-04-24 15:55:39 -04:00
andrew-signal
8b7b184224 Tweak Network.transformAndSetRemoteConfig to match changes to libsignal's RemoteConfig spec. 2025-04-24 15:55:39 -04:00
andrew-signal
fe70637140 Bump to libsignal v0.70.0 2025-04-24 15:55:38 -04:00
andrew-signal
74c6e76808 Add system HTTP proxy support to libsignal-net.
Co-authored-by: Cody Henthorne <cody@signal.org>
2025-04-24 15:55:38 -04:00
Greyson Parrelli
383da335d8 Do not send sync messages if we have no linked devices. 2025-04-16 11:22:23 -03:00
Cody Henthorne
193f6460b0 Convert change number back to REST. 2025-04-15 17:05:19 -04:00
Cody Henthorne
ac36eeb84d Use unauth WebSocket after quick restore for transfer mode decision. 2025-04-09 15:29:55 -04:00
andrew-signal
0d611cf4c9 Bump libsignal to v0.69.1. 2025-04-09 15:29:54 -04:00
Michelle Tang
eb1cf8d62f Add chat folder support to storage service. 2025-04-09 15:27:46 -04:00
Alex Bakon
8b9fc30b97 Migrate calls to deprecated libsignal methods. 2025-04-09 15:27:46 -04:00
Cody Henthorne
8a0e260061 Re-migrate delete account to WebSocket. 2025-04-09 15:27:46 -04:00
andrew-signal
5b04107447 Update to and integrate with libsignal v0.69.0. 2025-04-09 15:27:46 -04:00
Cody Henthorne
fcc6032ee0 Generalize preventing WebSocket from connecting in various app states. 2025-04-09 15:27:46 -04:00
Cody Henthorne
ecb040ce98 Convert donations apis to WebSocket. 2025-04-09 15:27:46 -04:00
Cody Henthorne
7bdfec77ca Remove message send REST fallback. 2025-04-09 15:27:45 -04:00
Greyson Parrelli
0b315220ee Quiet excessive warnings. 2025-03-31 14:44:13 -04:00
Greyson Parrelli
17216316f6 Dynamically compute MediaName and MediaId. 2025-03-31 14:44:06 -04:00
andrew-signal
88fd8fb36b Add handling for AppExpiredConnection in LibSignalChatConnection:connect.
Co-authored-by: Cody Henthorne <cody@signal.org>
2025-03-31 14:44:06 -04:00
Cody Henthorne
d87b313fb3 Only allow ACI auth for websocket at this time. 2025-03-28 10:30:05 -04:00
Cody Henthorne
ca8aa78705 Catch additional CDS exceptions to prevent crash. 2025-03-28 10:03:42 -04:00
Greyson Parrelli
944e861594 Temporarily ignore flaky network test. 2025-03-27 13:27:44 -04:00
Greyson Parrelli
b5da07762c Fix unit of retry-after header. 2025-03-27 13:13:19 -04:00
Alex Hart
0358631029 Add ability to Self-heal SEPA bug. 2025-03-26 16:11:49 -03:00
Jeffrey Starke
0dfe71ca8f Fix crash when changing username on Android API < 24.
Basically, the crash was caused by using `Collections.unmodifiableList()`, which creates an `UnmodifiableCollection` wrapper around the original `List`.

That `UnmodifiableCollection` wrapper contains methods that return `java.util.stream.Stream` – which was added in Java 8, but can be used on Android API < 24 through [desugaring](https://developer.android.com/studio/write/java8-support-table). 

_However_, it appears that when Jackson is using reflection to serialize `ReserveUsernameRequest`, it examines all of the methods of that class. This results in a `java.lang.NoClassDefFoundError: java.util.stream.Stream`, because the reflection is looking at the actual runtime `UnmodifiableCollection` class and not desugared code.

As far as I can tell, that behavior is unavoidable and the only way to avoid this issue is to avoid using `Collections.unmodifiableList()` in classes that are serialized by Jackson on Android API < 24.
2025-03-26 13:59:12 -04:00
andrew-signal
9c48e669ee Remove unneeded test timeout. 2025-03-26 13:59:12 -04:00
andrew-signal
41783368bd Reject invalid TLS proxy configurations. 2025-03-26 13:59:11 -04:00
andrew-signal
9b98337e82 Adjust LibSignalChatConnection.disconnect() so we only transition to DISCONNECTED once. 2025-03-26 13:59:11 -04:00
Greyson Parrelli
7c9cd8964f Update attachment backfill proto. 2025-03-26 13:59:11 -04:00
Greyson Parrelli
dd1697de41 Improve display and management of backup progress. 2025-03-26 13:59:11 -04:00
Cody Henthorne
cef839d300 Add verify AEP screen. 2025-03-26 13:59:11 -04:00
Cody Henthorne
095ae82483 Convert remote config apis to WebSocket. 2025-03-26 13:59:11 -04:00
Jim Gustafson
076b47e695 Improve calling reliability with relay server response cache.
Co-authored-by: Cody Henthorne <cody@signal.org>
2025-03-26 13:59:11 -04:00
andrew-signal
2a767c1e18 Fix races causing flakes in LibSignalChatConnectionTest. 2025-03-26 13:59:11 -04:00
Cody Henthorne
d3f622478f Convert remaining profile apis to use WebSockets and remove REST fallback. 2025-03-26 13:59:11 -04:00
Cody Henthorne
c66819449d Convert provisioning and certificate endpoints to WebSocket and finalize attachments. 2025-03-26 13:59:11 -04:00
Cody Henthorne
aeec3a6f7e Convert prekey requests to WebSocket. 2025-03-26 13:59:11 -04:00
Cody Henthorne
41e0f2193a Convert SVR and GV2 auth requests to WebSocket. 2025-03-26 13:59:11 -04:00
Cody Henthorne
9e9a47f0da Convert WebSocket messaging apis to NetworkResult. 2025-03-26 13:59:11 -04:00
Cody Henthorne
2f4669d7eb Fix web socket management related crashes. 2025-03-25 09:44:38 -04:00
Cody Henthorne
5a0def7390 Prevent unregistered clients from repeatedly attempting an auth WebSockect connection. 2025-03-19 10:48:31 -03:00
Cody Henthorne
323697dfc9 Improve auth WebSocket lifecycle. 2025-03-19 10:48:31 -03:00
Cody Henthorne
0d133b8d1e Improve stacktraces by not wrapping CDS exceptions in RuntimeExceptions. 2025-03-17 09:19:26 -04:00
Cody Henthorne
ddda5e8b47 Revert delete account conversion to WebSocket. 2025-03-12 16:15:41 -04:00
Cody Henthorne
d2006853c7 Start new style messsage api and convert report spam to WebSocket. 2025-03-12 16:15:41 -04:00
andrew-signal
8101fcbd8d Update to libsignal v0.67.4 2025-03-12 16:15:41 -04:00
Cody Henthorne
b563d7e855 Add headers to StatusCodeError. 2025-03-12 16:15:41 -04:00
Cody Henthorne
e57b6bfe00 Remove WebSocket to REST fallback for attachments. 2025-03-12 16:15:41 -04:00
Cody Henthorne
c476278d4c Remove dead code from PushServiceSocket. 2025-03-12 16:15:41 -04:00