aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/src/main/java/com/wireguard/android/backend/GoBackend.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Update copyrightJason A. Donenfeld2019-01-071-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Migrate to AndroidXHarsh Shandilya2018-12-181-2/+2
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* Clean up error messagesSamuel Holland2018-12-151-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Fix locale usageJason A. Donenfeld2018-12-111-8/+7
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Localize exception messagesZachary Wander2018-12-111-8/+10
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Remodel the ModelSamuel Holland2018-12-081-32/+4
| | | | | | | | | | | | | | - The configuration and crypto model is now entirely independent of Android classes other than Nullable and TextUtils. - Model classes are immutable and use builders that enforce the appropriate optional/required attributes. - The Android config proxies (for Parcelable and databinding) are moved to the Android side of the codebase, and are designed to be safe for two-way databinding. This allows proper observability in TunnelDetailFragment. - Various robustness fixes and documentation updates to helper classes. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Auto-format the source directoriesSamuel Holland2018-11-111-6/+10
| | | | | | Blame Jason for writing Java in vim. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: update copyright headersJason A. Donenfeld2018-09-061-2/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* TunnelDetailFragment now restores state correctly after process deathEric Kuck2018-07-261-4/+7
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: Add nullity annotationsEric Kuck2018-07-131-3/+7
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* global: move to Apache 2.0Jason A. Donenfeld2018-07-061-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* AppListDialogFragment: add implementation for excluding applicationsEric Kuck2018-07-061-0/+4
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* config: Refactor IPCidr and use of InetAddressSamuel Holland2018-06-191-6/+6
| | | | | | | | | Use a canonically-named utility class to tack on methods to the existing InetAddress class. Rename IPCidr to InetNetwork so it better matches InetAddress and is more pronouceable :) While here, simplify the constructor and toString() functions, and properly implement hashCode(). Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Backend: abstract version informationJason A. Donenfeld2018-06-071-1/+5
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Give Samuel heart attack by removing DaggerJason A. Donenfeld2018-06-071-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Backends: print versions somewhere in logJason A. Donenfeld2018-06-021-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* android: Cleanup classesHarsh Shandilya2018-06-021-6/+7
| | | | | | | - Use final modifer wherever possible - Use try-with-resources for input/output streams Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* Settings: add versionJason A. Donenfeld2018-06-011-0/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* SharedLibraryLoader: introduce to work around Samsung PackageManager bugsJason A. Donenfeld2018-05-291-4/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Support always-on-vpnJason A. Donenfeld2018-05-271-0/+18
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* libwg-go: try no stickiness and no roamingJason A. Donenfeld2018-05-261-6/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* libwg-go: reenable sticky sockets, just slightly less stickyJason A. Donenfeld2018-05-241-0/+6
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: fix up copyrightsJason A. Donenfeld2018-05-031-0/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: Add or update copyright headers in Java codeSamuel Holland2018-05-021-0/+5
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* global: Clean up JavaSamuel Holland2018-04-301-26/+29
| | | | | | Address Java and Android lints. Signed-off-by: Samuel Holland <samuel@sholland.org>
* global: Automatic code formattingSamuel Holland2018-04-301-30/+28
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* Quick cleanup across the boardHarsh Shandilya2018-04-281-5/+1
| | | | | | | | | | - Clean up imports - Adjust method visibility - Drop in NonNull annotations where needed - Prevent potential NPEs from nulled getActivity calls - Remove unused methods Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* GoBackend: bring down tunnels when revoked or disconnectedJason A. Donenfeld2018-04-251-0/+6
| | | | | | | This synchronizes the OS's connection state with ours, such as when the user disconnects using the system UI. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Determine MTU automaticallyJason A. Donenfeld2018-04-181-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* More javaficationJason A. Donenfeld2018-04-181-78/+16
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* GoBackend: default MTU is 1280Jason A. Donenfeld2018-04-171-2/+11
| | | | | | | This sucks, but it works with mobile networks. Later we can do something sophisticated like we do with wg-quick.c, but not now. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Remove sloppy java with enterprise java horrorsJason A. Donenfeld2018-04-171-45/+38
| | | | | | | Since the amount of mind numbing boiler plate has been increased, this must be the proper way to do things. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* GoBackend: Handle vpn service expirationAurélien Chabot2018-04-171-8/+22
| | | | | | | | After a timeout the android system is destroying the vpn service when it is not used. By using a completable future we can wait for the service to be relaunch on demand. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* GoBackend: Add support for multiple address and dns as a comma separated listAurélien Chabot2018-04-171-4/+11
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* GoBackend: parse allowed ipsAurélien Chabot2018-04-171-5/+33
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* GoBackend: Parse the dns addressAurélien Chabot2018-04-171-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* GoBackend: IPv6 handlingAurélien Chabot2018-04-171-6/+25
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* GoBackend: Resolve endpoint before passing it to the go libAurélien Chabot2018-04-171-2/+15
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* GoBackend: Use the android VpnService to encapsulate the go backendAurélien Chabot2018-04-171-6/+80
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* GoBackend: integrate into appJason A. Donenfeld2018-02-171-0/+125
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>