akwizgran
5a34e2c0ab
Small code cleanup.
2024-11-04 11:36:03 +00:00
Torsten Grote
4f8ac5f734
Use helper function of registerReceiver() that doesn't export receiver
2024-10-31 17:07:49 -03:00
akwizgran
f3af1d90d1
Assume that obsolete Bluetooth permission will be needed forever.
2024-03-18 17:15:20 +00:00
akwizgran
ca9181ee3f
Upgrade onionwrapper to 0.1.0 and snowflake to 2.9.1.
2024-03-09 20:52:32 +00:00
akwizgran
05b9dd699e
Catch SecurityException for bluetooth_address setting.
2023-09-12 17:12:13 +01:00
akwizgran
cc47c8522a
Catch NPE from NetworkInterface.getByInetAddress().
2023-08-24 15:53:00 +01:00
akwizgran
882f536b8d
Don't try to get Bluetooth address from settings.
2023-06-30 18:14:12 +01:00
Torsten Grote
c77eaf16d9
Log more mode changes in AndroidBatteryManager
2023-06-29 10:58:31 -03:00
Torsten Grote
45cda191e5
Log changes to DeviceLightIdleMode in AndroidBatteryManager
2023-06-29 10:58:31 -03:00
Torsten Grote
03fc504f7d
Log changes to LowPowerStandby in AndroidBatteryManager
2023-06-29 10:58:30 -03:00
akwizgran
0ca21ad4c0
Upgrade onionwrapper to 0.0.2 and dont-kill-me-lib to 0.2.7.
2023-05-09 15:23:17 +01:00
Torsten Grote
6ed55bcd7d
Drop support for Android 4
...
new minSdk is 21
2023-04-19 11:02:31 -03:00
akwizgran
fe31e60e66
Merge branch '2420-obsolete-bluetooth-permission-api-32' into 'master'
...
Require obsolete Bluetooth permission on API 32 (and counting)
Closes #2420
See merge request briar/briar!1782
2023-04-18 11:43:59 +00:00
akwizgran
61e7d2ebf9
Move Tor wrapper to library.
2023-03-28 17:18:05 +01:00
akwizgran
2f351b318e
Move CircumventionProvider classes to wrapper package.
2023-03-28 15:40:48 +01:00
akwizgran
a468af94db
Add bootstrap percentage and HS desc uploads to observer interface.
2023-03-28 11:31:20 +01:00
akwizgran
49f10e7e82
Move wake lock code to dont-kill-me-lib.
2023-03-28 10:58:45 +01:00
akwizgran
01b1741e83
Factor out Tor wrapper from plugin
2023-03-27 12:02:05 +01:00
akwizgran
f580525734
Require obsolete Bluetooth permission on API 32 (and counting).
2023-03-06 17:46:34 +00:00
akwizgran
518aeb38b9
Check that BluetoothSocket's input and output streams aren't null.
2023-02-21 13:29:35 +00:00
Sebastian Kürten
fd2d5c9173
Add comment about NetworkInfo#isConnected()
2023-01-24 14:48:03 +01:00
akwizgran
652f9e5705
Require obsolete BLUETOOTH permission on API 31.
...
This is a workaround for a platform bug on Xiaomi/Redmi/POCO devices that still checks for the obsolete permission.
2022-12-28 14:12:30 +00:00
akwizgran
c3a9eff96b
Always check Bluetooth permission when trying to get own address.
2022-12-22 17:46:12 +00:00
akwizgran
9b092da37a
Don't try to get bonded Bluetooth devices on API 31+.
2022-12-07 18:38:36 +00:00
akwizgran
c3f3c6211d
Merge branch 'mailbox-integration-tests' into 'master'
...
First integration test for mailbox with two contacts
See merge request briar/briar!1725
2022-11-07 12:58:18 +00:00
Torsten Grote
a705caa5fa
Add better logging for integration tests by injecting a ThreadFactory that can set thread names
2022-11-02 13:25:30 -03:00
Torsten Grote
0a906998fe
Address review feedback
2022-10-27 10:47:06 -03:00
Torsten Grote
824a9e1124
Handle new BLUETOOTH_SCAN and BLUETOOTH_CONNECT permission
...
We need to have those permissions before doing things like accessing the Bluetooth address. So we force-disable the Bluetooth plugin if the permission is not granted. The UI then forces the permission before allowing to enable the plugin.
2022-10-27 10:42:40 -03:00
Torsten Grote
113793045f
Set pending intents to be immutable
2022-10-27 10:42:40 -03:00
akwizgran
e4e7d84bde
Use null safety library.
2022-09-29 13:08:02 +01:00
akwizgran
264b2ca2f3
Add Snowflake pluggable transport.
2022-09-27 15:10:44 +01:00
akwizgran
339e4daded
Update Dagger modules.
2022-08-05 14:16:15 +01:00
akwizgran
18b3865a86
Factor out Cancellable interface from TaskScheduler.
2022-05-24 15:10:07 +01:00
akwizgran
d2f25f2ebe
Refactor Tor plugin factories.
2022-05-19 14:12:36 +01:00
akwizgran
116ee97056
Merge branch '1980-catch-security-exceptions-from-connectivity-manager' into 'master'
...
Catch SecurityExceptions from all ConnectivityManager calls
Closes #1980
See merge request briar/briar!1634
2022-04-20 14:51:57 +00:00
akwizgran
afff66eaff
Don't assume that non-null WifiInfo means we're connected to wifi.
2022-04-20 12:42:35 +01:00
akwizgran
a8624cd507
Guess connectivity when ConnectivityManager is broken.
2022-04-19 11:27:40 +01:00
akwizgran
e7fc37d81e
Catch SecurityExceptions from all ConnectivityManager calls.
...
This issue occurs on Android 11 and no fix is expected. When the issue occurs, Tor connectivity and outgoing LAN connectivity will be broken until the app is restarted.
2022-04-19 11:03:08 +01:00
Torsten Grote
7bd220f18d
Merge branch 'clear-glide-cache-under-more-circumstances' into 'master'
...
Clear the Glide cache in response to a wider range of warnings
See merge request briar/briar!1633
2022-04-18 16:46:31 +00:00
Torsten Grote
a7877bf7ee
Merge branch '2273-rethrow-security-exceptions-for-removable-drives' into 'master'
...
Rethrow SecurityExceptions when opening files on removable drives
Closes #2273
See merge request briar/briar!1625
2022-04-18 12:11:42 +00:00
akwizgran
3c08e86822
Rethrow SecurityExceptions when opening files on removable drives.
2022-04-17 11:36:16 +01:00
akwizgran
de2c9670d5
Clear the Glide cache in response to a wider range of warnings.
2022-04-17 10:50:59 +01:00
akwizgran
9632754274
Ensure task is added to queue before queue is checked.
2022-04-16 19:32:51 +01:00
Torsten Grote
cff94009a1
Merge branch 'tor-0.4.5' into 'master'
...
Upgrade to Tor 0.4.5.12-1 and obfs4proxy 0.0.12
See merge request briar/briar!1608
2022-04-01 14:00:50 +00:00
akwizgran
bd50a109cd
Keep empty directory for unpacking Tor binaries.
2022-03-29 16:19:47 +01:00
cketti
50f9718037
Truncate existing file when writing to removable drive
2022-03-29 01:27:01 +02:00
Daniel Lublin
1809be4656
Factor out onion address encoder to CryptoComponent
2021-11-15 12:59:56 +01:00
Sebastian Kürten
a1f9e80e12
Inject Tor ports via annotated int parameters
2021-11-03 15:43:01 +01:00
Sebastian Kürten
d4656df384
Make Tor ports configurable at runtime
...
Instead of using hard-coded values 59050 and 59051 for the Tor socks and
control ports, provide them via a TorPorts interface. This makes it possible
to pass the ports to a TorPortsImpl in modules. Hence it is possible to
configure the Tor port for different types of builds or via command line
options in case of briar headless or other clients using the core code.
2021-10-16 14:41:29 +02:00
akwizgran
d65afc519a
Factor out shared code.
2021-08-16 12:00:42 +01:00