aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/src/main/java (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* RootShell: stop if we can't startJason A. Donenfeld2018-01-091-31/+36
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* RootShell: hoist out synchronizationJason A. Donenfeld2018-01-091-11/+7
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ToolsInstaller: Propagate NoRootException properlySamuel Holland2018-01-092-32/+34
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* RootShell: Simplify, synchronize, clean upSamuel Holland2018-01-092-128/+89
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* TunnelListFragment: Remove useless keywordSamuel Holland2018-01-091-1/+1
| | | | | | final doesn't do anything in try-with-resources (it's always final). Signed-off-by: Samuel Holland <samuel@sholland.org>
* ToolsInstaller: terminators are better than seperatorsJason A. Donenfeld2018-01-091-7/+7
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* RootShell: synchronize accesses to single shellJason A. Donenfeld2018-01-091-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* RootShell: Simplify constructorSamuel Holland2018-01-081-19/+6
| | | | | | ToolsInstaller now takes care of installing the tools. Signed-off-by: Samuel Holland <samuel@sholland.org>
* WgQuickBackend: Ensure tools are available before useSamuel Holland2018-01-082-3/+10
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* ToolsInstaller: Add a method to ensure tool availabilitySamuel Holland2018-01-081-0/+28
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* WgQuickBackend: Inline resolveState()Samuel Holland2018-01-081-10/+5
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* ToolsInstaller: Add methods to check/make symlinksSamuel Holland2018-01-081-0/+35
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* ToolsInstallerPreference: Examine current state on loadSamuel Holland2018-01-081-0/+7
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* ToolsInstaller: Add method to check installation statusSamuel Holland2018-01-081-14/+24
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* TunnelEditorFragment: Fix dismissing creator activitySamuel Holland2018-01-081-0/+1
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* global: Fix or suppress most lints/warningsSamuel Holland2018-01-0815-29/+44
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* project: Remove currently-unused librarySamuel Holland2018-01-081-2/+0
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* Fragment/Tile: Make success/error messages translatableSamuel Holland2018-01-087-64/+76
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* TunnelListFragment: fix plural grammarJason A. Donenfeld2018-01-091-3/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* RootShell: fix off by oneJason A. Donenfeld2018-01-081-7/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* QuickTileService: show toast for longer and use right messagesJason A. Donenfeld2018-01-081-2/+6
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: Prefix tags with WireGuard/Jason A. Donenfeld2018-01-0811-11/+11
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* RootShell: multiplex commandsJason A. Donenfeld2018-01-084-47/+149
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Port over remaining error handlingSamuel Holland2018-01-081-0/+12
| | | | | | | This doesn't really belong here, but there's no sense in throwing it away--even here, it's a minor optimization. Signed-off-by: Samuel Holland <samuel@sholland.org>
* Handle tunnel state change errors appropriatelySamuel Holland2018-01-081-0/+71
| | | | | | | This class should probably be renamed and moved, but I don't know to what or where. Signed-off-by: Samuel Holland <samuel@sholland.org>
* TunnelListFragment: Fix crash on deleting multiple tunnelsSamuel Holland2018-01-081-1/+8
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* ToggleSwitch: Improve reliabilitySamuel Holland2018-01-082-23/+9
| | | | | | It's not great, but it's better than it was. Signed-off-by: Samuel Holland <samuel@sholland.org>
* WgQuickBackend: Improve error handlingSamuel Holland2018-01-081-6/+15
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* Tunnel: Add a State factory methodSamuel Holland2018-01-081-1/+5
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* project: Global cleanupSamuel Holland2018-01-088-55/+31
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* Application: Remove unneeded exported componentSamuel Holland2018-01-081-2/+0
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* ToolsInstaller: Extract to its own classesSamuel Holland2018-01-084-72/+164
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* TunnelManager: Simplify save/resume methodsSamuel Holland2018-01-072-10/+9
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* 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>