aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* android: VersionPreference: Handle no-browser-installed caseHarsh Shandilya2018-06-301-1/+4
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* android: Add select all button to action modeHarsh Shandilya2018-06-304-0/+21
| | | | | | | Thanks to Jason for suggesting the not-clinically-insane method to go about this. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* global: Small cleanupsJason A. Donenfeld2018-06-253-7/+6
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* android: Consolidate getPrefActivity into FragmentUtilsHarsh Shandilya2018-06-233-28/+31
| | | | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> [Samuel: Changed static to non-static import] Signed-off-by: Samuel Holland <samuel@sholland.org>
* QuickTileService: Remove useless overrideHarsh Shandilya2018-06-231-5/+0
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* treewide: Optimize importsHarsh Shandilya2018-06-238-19/+17
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* config: Refactor IPCidr and use of InetAddressSamuel Holland2018-06-197-90/+118
| | | | | | | | | 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>
* util: Extract non-Android utility interfacesSamuel Holland2018-06-1910-9/+17
| | | | | | | | As part of a refactoring that will likely introduce more custom collection classes, move the non-Android-specific parts outside the com.wireguard.android package. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* crypto: Slightly Java-ify the Curve25519 implementationSamuel Holland2018-06-191-65/+54
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Application: make lock finalJason A. Donenfeld2018-06-171-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* application: style fixJason A. Donenfeld2018-06-171-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: supply backend asynchronouslyJason A. Donenfeld2018-06-146-59/+98
| | | | | | | We can't block for IO, so move everything to async workers or to callbacks. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Application: require rootshell to use wgquick backendJason A. Donenfeld2018-06-121-3/+7
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ToolsInstaller: safer state machineJason A. Donenfeld2018-06-103-39/+42
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* BaseActivity: styleJason A. Donenfeld2018-06-072-4/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* BootShutdownReceiver: styleJason A. Donenfeld2018-06-071-2/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Backend: abstract version informationJason A. Donenfeld2018-06-076-24/+48
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Give Samuel heart attack by removing DaggerJason A. Donenfeld2018-06-0719-230/+115
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* VersionPreference: account for checking state and move away from tools installerJason A. Donenfeld2018-06-074-12/+21
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* FloatingActionMenu: 5.1 requires explicit text colorJason A. Donenfeld2018-06-063-2/+5
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* MainActivity: Fix styleHarsh Shandilya2018-06-061-5/+2
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ToolsInstallerPreference: do not check for magisk on main threadJason A. Donenfeld2018-06-063-7/+11
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* MainActivity: Silence useless warningHarsh Shandilya2018-06-051-0/+4
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* FloatingActionMenu: use appcompat themeJason A. Donenfeld2018-06-053-6/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* MainActivity: collapse action menu on toolbar touchHarsh Shandilya2018-06-051-0/+9
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ToolsInstaller: allow installing as Magisk moduleJason A. Donenfeld2018-06-053-11/+68
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ActionBar: show single menu item as tooliconJason A. Donenfeld2018-06-052-2/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* TunnelListFragment: hide menu when going to settingsJason A. Donenfeld2018-06-051-0/+6
| | | | | | Really the menu should be hidden when clicking on the action bar, too. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* MainActivity: styleJason A. Donenfeld2018-06-051-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* fab: properly get theme colorJason A. Donenfeld2018-06-051-8/+7
| | | | | | | Harsh changed this before, but my original way is what the support library does internally. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* fab: Remove useless overrideHarsh Shandilya2018-06-051-5/+0
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* fab: Use themed context to set styleHarsh Shandilya2018-06-051-1/+1
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* DarkMode: move to shared preferences listenerJason A. Donenfeld2018-06-055-206/+79
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* MainActivity: styleJason A. Donenfeld2018-06-041-1/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* FloatingActionsMenu: remove unused importsJason A. Donenfeld2018-06-041-3/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* BaseActivity: support android 5 and 6 when clearing drawable cacheJason A. Donenfeld2018-06-041-7/+15
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* LogExporterPreference: get all past processesJason A. Donenfeld2018-06-041-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* BaseActivity: invalidate icon cache on Android PJason A. Donenfeld2018-06-042-15/+15
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* TunnelManager: disable dangerous intents for nowJason A. Donenfeld2018-06-041-0/+6
| | | | | | | We need to think about how to allow this securely. It's not okay for all apps to be allowed to twiddle with VPN settings. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* TunnelManager: new intentsJason A. Donenfeld2018-06-044-13/+52
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Preferences: don't use round iconJason A. Donenfeld2018-06-031-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Preferences: Move version pref to top and add iconHarsh Shandilya2018-06-022-4/+4
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* Backends: print versions somewhere in logJason A. Donenfeld2018-06-022-2/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* android: Cleanup classesHarsh Shandilya2018-06-0211-40/+41
| | | | | | | - Use final modifer wherever possible - Use try-with-resources for input/output streams Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* crypto: KeyEncoding: Fix styleHarsh Shandilya2018-06-021-25/+32
| | | | | | | - Replace python style variable names with camel case - Don't declare multiple variables in the same line Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* Topic: John does things differentlyJason A. Donenfeld2018-06-021-29/+30
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ExporterPreferences: disable control immediatelyJason A. Donenfeld2018-06-022-4/+8
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Preferences: add log exporterJason A. Donenfeld2018-06-024-18/+137
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Topic: make reentrantJason A. Donenfeld2018-06-011-6/+17
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* BaseActivity: flush themed icon cache on theme changeJason A. Donenfeld2018-06-011-0/+18
| | | | | | | | | | The most terrible hack you have ever seen. The drawable cache isn't properly flushed when changing the theme -- a frameworks bug, evidently -- so we work around it by digging deep into the mud. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>