aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/src/main/java/com/wireguard/android (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* BaseActivity: Make variable names consistentSamuel Holland2018-01-071-2/+2
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* TunnelManager/QuickTileService: Remember last used tunnelSamuel Holland2018-01-072-101/+110
| | | | | | | This is actually a bit simpler than having a manually-selected "primary" tunnel, and is hopefully easier for the user. Signed-off-by: Samuel Holland <samuel@sholland.org>
* Remove primary configuration preferenceSamuel Holland2018-01-072-54/+1
| | | | | | It is no longer used. Signed-off-by: Samuel Holland <samuel@sholland.org>
* FileConfigStore: Move function returns outside try blocksSamuel Holland2018-01-071-2/+2
| | | | | | | This makes more clear what things can throw exceptions, and the functions' control flow. Signed-off-by: Samuel Holland <samuel@sholland.org>
* Tunnel: Remove UNKNOWN stateSamuel Holland2018-01-072-8/+1
| | | | | | It's never used. Signed-off-by: Samuel Holland <samuel@sholland.org>
* Move bundle keys where they are usedSamuel Holland2018-01-073-6/+8
| | | | | | This both clarifies and simplifies the code. Signed-off-by: Samuel Holland <samuel@sholland.org>
* WgQuickBackend: Prefer ArrayList over LinkedListSamuel Holland2018-01-071-2/+2
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* ConfigEditorFragment: Support renaming tunnelsSamuel Holland2018-01-071-28/+57
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* model: Allow renaming tunnelsSamuel Holland2018-01-072-0/+32
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* model: Remove confusing uses of completion chainingSamuel Holland2018-01-072-16/+23
| | | | | | This looks like the builder pattern, but isn't. Signed-off-by: Samuel Holland <samuel@sholland.org>
* TunnelListFragment: Name a CompletionStage what it isSamuel Holland2018-01-071-2/+2
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* Tunnel: The name passed to isNameValid is never nullSamuel Holland2018-01-071-2/+2
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* ConfigEditorFragment: Ensure localName is never nullSamuel Holland2018-01-071-3/+4
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* Make TunnelManager the point of asynchronicitySamuel Holland2018-01-076-154/+125
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* TunnelManager: Sort tunnels case-insensitivelySamuel Holland2018-01-061-1/+5
| | | | | | | The second comparator is required to allow multiple tunnels that differ only in case. Signed-off-by: Samuel Holland <samuel@sholland.org>
* SortedKeyedList...: Support arbitrary comparatorsSamuel Holland2018-01-063-8/+119
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* Keyed...: Rename all the thingsSamuel Holland2018-01-067-31/+30
| | | | | | Hooray for diamond interface inheritance. Signed-off-by: Samuel Holland <samuel@sholland.org>
* project: Minor cleanupsSamuel Holland2018-01-063-4/+2
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* model: Proxy all async work through the TunnelManagerSamuel Holland2018-01-063-70/+69
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* TunnelManager: Enumerate running tunnels only onceSamuel Holland2018-01-061-7/+5
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* Tunnel: Require passing a state to the constructorSamuel Holland2018-01-062-6/+8
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* Backend: Add a function to enumerate running tunnelsSamuel Holland2018-01-062-16/+27
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* MainActivity: Fix ActionBar after rotationSamuel Holland2018-01-061-7/+8
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* TunnelDetailFragment: Remove state text and last changeSamuel Holland2018-01-061-12/+0
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* activity: Remove useless indirectionSamuel Holland2018-01-063-10/+6
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* databinding: Collection classes use generic ESamuel Holland2018-01-061-4/+4
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* databinding: Simplify method signatureSamuel Holland2018-01-061-2/+2
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* databinding: Remove unused classes and methodsSamuel Holland2018-01-065-347/+0
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* Convert the list of tunnels to a KeyedObservableListSamuel Holland2018-01-066-43/+67
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* databinding: Add an adapter for the KeyedObservableListSamuel Holland2018-01-061-0/+127
| | | | | | This adapter actually finally implements stable IDs correctly. Signed-off-by: Samuel Holland <samuel@sholland.org>
* util: Add a keyed list class and a sorted variantSamuel Holland2018-01-065-0/+249
| | | | | | | This is inspired by C#'s KeyedCollection. The sorted variant removes the need for an observable SortedMap. Signed-off-by: Samuel Holland <samuel@sholland.org>
* TunnelManager: Clear primary tunnel when it's removedSamuel Holland2018-01-061-1/+5
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* Serviceless rewrite, part 1Samuel Holland2018-01-0642-1631/+2007
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* Rename package widgets -> widgetSamuel Holland2018-01-062-2/+2
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* Rename package bindings -> databindingSamuel Holland2018-01-068-9/+9
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* tools: use cmp and right arguments for mountJason A. Donenfeld2017-12-201-3/+3
| | | | | | | Some systems don't have cmp. Some systems have buggy mount tools. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* SettingsActivity: allow for installing command line toolsJason A. Donenfeld2017-12-193-12/+87
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* RootShell: rewriteJason A. Donenfeld2017-12-162-41/+53
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tools: build required tools with apkJason A. Donenfeld2017-12-152-20/+9
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* VpnService: require root accessJason A. Donenfeld2017-11-302-1/+15
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* VpnService: Avoid duplicating file checkSamuel Holland2017-11-281-11/+17
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* VpnService: search for binaries in most likely places firstJason A. Donenfeld2017-11-291-5/+5
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigList: Always dismiss FAB menu on ListView touchSamuel Holland2017-11-281-7/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* NotSupported: Fix linksSamuel Holland2017-11-281-0/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigListFragment: Use a floating action menuSamuel Holland2017-11-282-49/+75
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigActivity: Listen for name changesSamuel Holland2017-11-283-5/+28
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* SettingsActivity: directly pass through bundleJason A. Donenfeld2017-11-271-4/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* NotSupported: check if the module existsJason A. Donenfeld2017-11-272-11/+66
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Settings: show quick tile config if no primary is definedJason A. Donenfeld2017-11-273-2/+16
| | | | | | This seems like a horrific set of hacks. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigImporter: give updates when something goes wrongJason A. Donenfeld2017-11-271-5/+20
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>