summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/java/com/wireguard/android
AgeCommit message (Collapse)Author
2019-03-16WgQuickBackend: pass result to error stringJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-02-17ToolsInstaller: fix typo on cleanupJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-02-14ToolsInstaller: Require Magisk 18Jason A. Donenfeld
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>
2019-02-14ToolsInstaller: Use chcon over restoreconHarsh Shandilya
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>
2019-01-07Update copyrightJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-01-07PeerProxy: Only add IPv4 DNS servers when excluding private IPsSamuel Holland
Reported-By: Christophe-Marie Duquesne <chmd@chmd.fr> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-18Migrate to AndroidXHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2018-12-15Clean up error messagesSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-15Provide semantically meaningful exceptions for translationSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-11Fix locale usageJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-11Unwrap the correct exceptionZachary Wander
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-11Localize exception messagesZachary Wander
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-10Export actual configuration for zipsJason A. Donenfeld
Reported-by: John Greenwood <ijohnyyh@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-09Use English lower casingJason A. Donenfeld
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>
2018-12-08Do not close zip input streamJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-08Remove ACRAJason A. Donenfeld
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>
2018-12-08Remodel the ModelSamuel Holland
- 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>
2018-11-11Auto-format the source directoriesSamuel Holland
Blame Jason for writing Java in vim. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-09-06global: update copyright headersJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-26QuickTileService: Don't use deprecated getDrawable methodHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2018-08-26Target SDK 28Harsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2018-08-26FragmentUtils: Make final and prevent instantiationHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2018-08-26Extract error messages to string resourcesHarsh Shandilya
Useful for validation errors and localisation later on Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2018-08-26MonkeyedSnackbar: removeJason A. Donenfeld
This didn't actually help with much and caused problems. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-07-30FloatingActionsMenu: don't wrap context on asus api 21Jason A. Donenfeld
Works around frameworks bug. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-07-30Show different color for multiselectionJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-07-29MonkeyedSnackbar: fix typosJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-07-29MonkeyedSnackbar: work around Harsh's broken phoneJason A. Donenfeld
I think I'd probably like to revert this, since presumably there's a good reason in the first place why the support lib disables animations when accessibility services are turned on? Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-07-29FloatingActionButtonBehavior: animate transitionsJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-07-29Roll back to API 27 for nowJason A. Donenfeld
There's no source available for API 28, which is a pain. But this commit should be reverted whenever source is released. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-07-29Target API 28Jason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-07-29TunnelListFragment: show selected tunnelJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-07-29TunnelListFragment: fix multiselection on rotationJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-07-29FloatingActionButonBehavior: set translation back to 0 when snackbar diesJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-07-28MainActivity: Fix fragment selection logicSamuel Holland
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-07-28Application: refuse to run on old androidJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-07-28QuickTileService: fix bug the wrong wayJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-07-27config: show more informative error message on wrong keyJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-07-26Set ACRA install sourceJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-07-26TunnelDetailFragment now restores state correctly after process deathEric Kuck
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-07-26Application: use proper completablefuture for backendJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-07-26Wire up ACRAJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-07-26FloatingActionBehaviour: Adjust constructorsHarsh Shandilya
Get these in line with the parent class Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2018-07-25ThemeChangeAwareActivity: reintroduce cache busterJason A. Donenfeld
This is still needed by certain icons, like the trash icon in the peer editor. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-07-25MainActivity: attempt to fix commit state exceptionsJason A. Donenfeld
This is an attempt to fix: java.lang.IllegalStateException: at android.support.v4.app.FragmentManagerImpl.checkStateLoss (FragmentManager.java:2053) at android.support.v4.app.FragmentManagerImpl.enqueueAction (FragmentManager.java:2079) at android.support.v4.app.BackStackRecord.commitInternal (BackStackRecord.java:678) at android.support.v4.app.BackStackRecord.commit (BackStackRecord.java:632) at com.wireguard.android.activity.MainActivity.moveToState (MainActivity.java:58) at com.wireguard.android.activity.MainActivity.onSelectedTunnelChanged (MainActivity.java:157) at com.wireguard.android.activity.BaseActivity.setSelectedTunnel (BaseActivity.java:75) at com.wireguard.android.fragment.BaseFragment.setSelectedTunnel (BaseFragment.java:82) at com.wireguard.android.fragment.TunnelListFragment.lambda$null$4$TunnelListFragment (TunnelListFragment.java:307) at com.wireguard.android.fragment.TunnelListFragment$$Lambda$4.onClick (Unknown Source:6) at android.view.View.performClick (View.java:6274) at android.view.View$PerformClick.run (View.java:24729) at android.os.Handler.handleCallback (Handler.java:789) at android.os.Handler.dispatchMessage (Handler.java:98) at android.os.Looper.loop (Looper.java:169) at android.app.ActivityThread.main (ActivityThread.java:6595) at java.lang.reflect.Method.invoke (Native Method) at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:240) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:767) But this is probably the wrong way to fix it and instead moveToState needs to be reimagined. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-07-25TunnelEditorFragment: plug memory leak on listenersJason A. Donenfeld
Apparently these don't get GC'd unless they're removed explicitly, because there's a global singleton registry of them. So, introduce a little registry of our own. Reported-by: Samuel Holland <samuel@sholland.org> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-07-25qrcode: minor adjustmentsJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-07-25Added QR code scanner as tunnel import methodEric Kuck
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-07-24tools: pass in debug package nameJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-07-22FloatingActionsMenuRecyclerViewScrollListener: add final modifiersJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>