aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/src/main/java/com/wireguard (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Download modules after verifying signify signatureJason A. Donenfeld2019-10-144-1/+307
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Revert "Fix activity leak on Android Q"Jason A. Donenfeld2019-10-131-10/+1
| | | | | | | | This reverts commit 489518000971914b2608da43e2146690dcc02cb9. October has arrived. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ToolsInstaller: extract from apk instead of relying on native extractionJason A. Donenfeld2019-10-132-50/+39
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* SharedLibraryLoader: separate out extractionJason A. Donenfeld2019-10-131-29/+35
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* SharedLibraryLoader: prioritize ABI orderingJason A. Donenfeld2019-10-131-10/+10
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* SharedLibraryLoader: iterate through all apks for bundlesJason A. Donenfeld2019-10-131-30/+41
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Activity: make dark/night theme follow system on QJason A. Donenfeld2019-10-123-6/+17
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Application: use preferences from compat libsJason A. Donenfeld2019-10-121-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* export: use content resolver on android Q+Jason A. Donenfeld2019-10-124-38/+123
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* preferences: add donation linkJason A. Donenfeld2019-10-121-0/+44
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Migrate to Android 10Harsh Shandilya2019-09-301-3/+11
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* InetAddresses: prepare for Android 10's real method supportJason A. Donenfeld2019-09-301-0/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* FragmentUtils: Directly cast context as SettingsActivityHarsh Shandilya2019-09-271-2/+2
| | | | | | | | ContextThemeWrapper#getContext seems to be an instance of ContextImpl now which is not public API and also not what we want. Directly cast context as SettingsActivity which seems to work exactly how we need this to. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* Fix activity leak on Android QHarsh Shandilya2019-09-271-1/+10
| | | | | | | | | | This workaround was discussed at https://twitter.com/Piwai/status/1169274622614704129 after Google had closed the issuetracker with a WONTFIX at https://issuetracker.google.com/issues/139738913. The situation has since changed with Google promising a fix on October's ASB but since we can't really know, patch this ourselves for the timebeing. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* InetEndpoint: properly match IPv6 addressesJason A. Donenfeld2019-03-191-1/+1
| | | | | | | The old one didn't account for trailing digits. Reported-by: Brandon Jackson <bjackson@napshome.net> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* WgQuickBackend: pass result to error stringJason A. Donenfeld2019-03-161-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ToolsInstaller: fix typo on cleanupJason A. Donenfeld2019-02-171-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ToolsInstaller: Require Magisk 18Jason A. Donenfeld2019-02-141-6/+6
| | | | | | | People installing magisk modules are people capable of updating Magisk. No need to leave around old compat cruft. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ToolsInstaller: Use chcon over restoreconHarsh Shandilya2019-02-141-1/+1
| | | | | | | | | | | restorecon probes file_contexts to get the context to be applied to the file. /sbin/.magisk does not exist in file_contexts for obvious reasons so restorecon always fails. Use chcon directly with the system_file context to allow contexts to be applied. Suggested-by: Chris Renshaw <osm0sis@outlook.com> Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* Update copyrightJason A. Donenfeld2019-01-0771-71/+71
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* PeerProxy: Only add IPv4 DNS servers when excluding private IPsSamuel Holland2019-01-071-0/+1
| | | | | | Reported-By: Christophe-Marie Duquesne <chmd@chmd.fr> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Migrate to AndroidXHarsh Shandilya2018-12-1855-133/+133
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* InetEndpoint: disallow huge portsJason A. Donenfeld2018-12-151-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Clean up error messagesSamuel Holland2018-12-1513-81/+165
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Provide semantically meaningful exceptions for translationSamuel Holland2018-12-1518-186/+364
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Fix locale usageJason A. Donenfeld2018-12-1112-49/+35
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Throw illegalargumentexception instead of nullpointerexception for builder errorsJason A. Donenfeld2018-12-113-3/+10
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Unwrap the correct exceptionZachary Wander2018-12-111-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Localize exception messagesZachary Wander2018-12-1112-35/+62
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Lowercase endpoint in exception messageJason A. Donenfeld2018-12-111-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Do not allow for an empty port in endpointJason A. Donenfeld2018-12-101-0/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Export actual configuration for zipsJason A. Donenfeld2018-12-101-1/+1
| | | | | Reported-by: John Greenwood <ijohnyyh@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Use English lower casingJason A. Donenfeld2018-12-095-8/+14
| | | | | | | In Turkish, I becomes ı instead of i, which is a problem when matching things like "AllowedIPs". Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Do not close zip input streamJason A. Donenfeld2018-12-082-41/+53
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Remove ACRAJason A. Donenfeld2018-12-081-69/+1
| | | | | | | | This was requested by developers who never wound up using it. It's not really worth keeping around, since the play console gives us most of what we need anyway. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Remodel the ModelSamuel Holland2018-12-0836-1243/+1987
| | | | | | | | | | | | | | - 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-1128-757/+759
| | | | | | Blame Jason for writing Java in vim. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Fix small error0.0.20181001Jason A. Donenfeld2018-10-011-1/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Peer: prefer v4 endpoints to v6Jason A. Donenfeld2018-10-012-33/+79
| | | | | | This works around DNS64 XLAT changeovers. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: update copyright headersJason A. Donenfeld2018-09-0663-107/+63
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* QuickTileService: Don't use deprecated getDrawable methodHarsh Shandilya2018-08-261-2/+1
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* Target SDK 28Harsh Shandilya2018-08-261-4/+1
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* FragmentUtils: Make final and prevent instantiationHarsh Shandilya2018-08-261-1/+5
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* Supress false-positive DefaultLocale warningsHarsh Shandilya2018-08-262-0/+6
| | | | | | We decided in 402472237e8f that it's a bad idea for our use-case Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* Extract error messages to string resourcesHarsh Shandilya2018-08-266-15/+35
| | | | | | Useful for validation errors and localisation later on Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* MonkeyedSnackbar: removeJason A. Donenfeld2018-08-267-53/+10
| | | | | | This didn't actually help with much and caused problems. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* config: fix wrong Peer endpoint string formatZhao Gang2018-08-161-1/+4
| | | | | | | | | | | | | | | | | | | | When a tunnel is running, saving the tunnel's config with an IPv6 address endpoint like [::1]:42 would result in the wrong format ::1:42. This patch fixes it. For endpoints with an IPv6 address(e.g. [::1]:42). Since the default endpoint InetSocketAddress is created unresolved, getEndpointString() returns "[::1]:42" (InetSocketAddress.getHostString() returns the literal hostname). After the endpoint is resolved, getEndpointString() returns "::1:42" (InetSocketAddress.getHostString() returns the IPv6 address without the square brackets). This inconsistent return values caused the above mentioned bug. With this patch, function getEndpointString would return the right format string whether the endpoint is resolved or not. Signed-off-by: Zhao Gang <gang.zhao.42@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* FloatingActionsMenu: don't wrap context on asus api 21Jason A. Donenfeld2018-07-301-2/+6
| | | | | | Works around frameworks bug. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Show different color for multiselectionJason A. Donenfeld2018-07-302-20/+66
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* MonkeyedSnackbar: fix typosJason A. Donenfeld2018-07-291-3/+6
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>