Torsten Grote
9efd2d113a
Ignore file extension when retrieving resources on Android
2018-09-03 11:58:42 -03:00
Torsten Grote
8e6cd12f07
LinuxTorPlugin: Address review comments
2018-09-03 11:52:10 -03:00
Torsten Grote
3a49ca0d97
Add JavaTorPlugin
2018-09-03 11:52:10 -03:00
Torsten Grote
af1ed292ae
Merge branch '832-android-tor-plugin' into 'master'
...
Factor out Android-specific code from TorPlugin
Closes #832
See merge request briar/briar!876
2018-08-09 19:36:00 +00:00
Torsten Grote
acf6a45004
Merge branch 'replace-assert-statements' into 'master'
...
Replace assert statements with AssertionErrors
See merge request briar/briar!877
2018-08-08 19:56:38 +00:00
akwizgran
f812acb00b
Use general-purpose resource provider.
2018-08-07 15:19:46 +01:00
akwizgran
004467e84e
Factor out remaining Android code from Tor plugin.
2018-08-07 15:19:43 +01:00
akwizgran
0d658513ba
Disable bridges when network is manually enabled.
2018-08-03 11:53:50 +01:00
akwizgran
53762e7c93
Add setting to override location-based disabling of Tor.
2018-08-03 11:53:47 +01:00
akwizgran
5a145c9eb2
Replace assert statements with AssertionErrors.
2018-08-03 11:14:15 +01:00
akwizgran
8c5c66fa9a
Add null-safety and thread-safety annotations.
2018-08-02 15:06:17 +01:00
akwizgran
1a5c02f8a9
Remove extra logging.
2018-08-02 13:22:54 +01:00
akwizgran
16d56535ca
Check connectivity after all AP state changes.
2018-08-02 13:22:53 +01:00
akwizgran
dcd6fda046
Check connectivity after entering or leaving doze mode.
2018-08-02 13:22:53 +01:00
akwizgran
2535445831
Factor network management code out of plugins.
2018-08-02 13:22:50 +01:00
Torsten Grote
c0d5a3a5ea
Merge branch '1341-account-manager-refactoring' into 'master'
...
Refactor authentication and account management code
Closes #1341
See merge request briar/briar!866
2018-08-02 11:49:15 +00:00
akwizgran
c1789a8e52
Move identity creation into AccountManager.
2018-08-02 09:51:17 +01:00
akwizgran
f8df6b88ee
Add BriarAccountManager subclass.
2018-08-01 15:52:09 +01:00
akwizgran
d815dd6ec9
Don't try to use missing HSFORGET command.
2018-07-31 17:19:11 +01:00
akwizgran
58d09d0742
Add tests for AccountManager and AndroidAccountManager.
2018-07-27 15:29:42 +01:00
akwizgran
adbfa26364
Remove redundant locking.
2018-07-27 14:18:31 +01:00
akwizgran
abaefacb69
Add javadocs.
2018-07-27 13:15:04 +01:00
akwizgran
6ca0339da2
Move DB key management into account manager.
2018-07-27 13:15:03 +01:00
akwizgran
1edf2bfa75
Move account deletion into AccountManager.
2018-07-27 13:14:58 +01:00
akwizgran
233af69909
Add TODOs.
2018-07-27 13:14:58 +01:00
Torsten Grote
7ecac1867e
Address review comments for Tor bridge support
2018-07-05 11:14:11 -03:00
Torsten Grote
331c09a02a
Load bridges from file res/raw/bridges
2018-07-04 16:21:49 -03:00
Torsten Grote
7e05a49bda
Add Android integration tests that checks if included bridges work
...
This also changes the way bridges are used.
Instead of using the torrc config file,
bridges are now activated via Tor's control port.
2018-07-04 15:17:28 -03:00
Torsten Grote
eac1f9ed74
MVP for bridge support
2018-07-04 15:17:28 -03:00
akwizgran
2e002d132c
Delete old auth cookie before starting Tor.
2018-06-29 15:28:50 +01:00
akwizgran
d5d6db6723
Add utility method for logging exceptions.
2018-06-15 17:09:34 +01:00
akwizgran
a8a02b9e45
Merge branch '992-refresh-wake-lock' into 'master'
...
Renew the wake lock every minute to avoid wake lock killers
See merge request akwizgran/briar!827
2018-06-12 16:59:32 +00:00
akwizgran
6703be1c32
Add thread safety, null safety annotations.
2018-06-12 17:50:58 +01:00
akwizgran
ba20fbeb47
Poll for creation of cookie file.
2018-06-08 10:40:38 +01:00
akwizgran
d7f39af6d1
Reduce wake lock refresh interval to 1 minute.
2018-06-07 10:46:16 +01:00
akwizgran
4f732c3997
Acquire wake lock with a timeout.
2018-06-07 10:46:16 +01:00
akwizgran
74cfd313ab
Code cleanup.
2018-06-07 10:46:16 +01:00
akwizgran
c089a099f0
Refactor wake lock to use existing ScheduledExecutorService.
2018-06-07 10:46:15 +01:00
goapunk
98a0d09899
Renew the wake lock every 30min
...
Signed-off-by: goapunk <noobie@goapunks.net >
2018-06-07 10:46:15 +01:00
akwizgran
d4a9c41cf5
Watch for creation rather than updating of Tor cookie file.
...
Tor writes to a temporary file and then renames it over the old
file, if any, so CLOSE_WRITE never occurs. The old code was
working in most cases because it received IGNORED when the old
file was unlinked and didn't check the event type.
2018-06-07 09:19:52 +01:00
akwizgran
5025cf1e40
Merge branch 'remove-removable-drive-plugin' into 'master'
...
Remove RemovableDrivePlugin, refactor plugin interface
Closes #25
See merge request akwizgran/briar!817
2018-05-31 08:49:32 +00:00
akwizgran
85a18cf53f
Remove debug logging from setup process.
2018-05-28 14:34:20 +01:00
akwizgran
3181b695df
Remove RemovableDrivePlugin, refactor plugin interface.
2018-05-25 13:57:38 +01:00
goapunk
c6b88b51f0
Make plugins and polling configurable
...
* Move PluginConfig out of bramble-android. Projects using bramble now need to provide it.
* Add a PluginConfig#shouldPoll() method which can be used to disable polling altogether.
* Move Poller instantiation to the PluginManager.
2018-05-23 14:39:00 +02:00
akwizgran
cfdbd29cb4
Remove unused logging methods.
2018-05-18 14:47:20 +01:00
akwizgran
75bd7927ac
Decouple DevReportSender from TorPlugin.
2018-05-17 09:20:12 +01:00
goapunk
72bac59989
silence known strict mode violations
2018-05-15 17:29:53 +02:00
akwizgran
b77b885a94
Commit shared preferences, clear instead of deleting.
2018-05-14 14:20:12 +01:00
akwizgran
5e0ca10dae
Add logging to debug account setup.
2018-05-14 12:31:46 +01:00
akwizgran
9efb6ab38f
Don't allow BT contact connections during key agreement.
2018-04-24 10:45:23 +01:00