summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/java
AgeCommit message (Collapse)Author
2018-01-07model: Remove confusing uses of completion chainingSamuel Holland
This looks like the builder pattern, but isn't. Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-07TunnelListFragment: Name a CompletionStage what it isSamuel Holland
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-07Tunnel: The name passed to isNameValid is never nullSamuel Holland
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-07ConfigEditorFragment: Ensure localName is never nullSamuel Holland
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-07Make TunnelManager the point of asynchronicitySamuel Holland
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-06TunnelManager: Sort tunnels case-insensitivelySamuel Holland
The second comparator is required to allow multiple tunnels that differ only in case. Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-06SortedKeyedList...: Support arbitrary comparatorsSamuel Holland
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-06Keyed...: Rename all the thingsSamuel Holland
Hooray for diamond interface inheritance. Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-06project: Minor cleanupsSamuel Holland
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-06model: Proxy all async work through the TunnelManagerSamuel Holland
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-06TunnelManager: Enumerate running tunnels only onceSamuel Holland
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-06Tunnel: Require passing a state to the constructorSamuel Holland
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-06Backend: Add a function to enumerate running tunnelsSamuel Holland
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-06MainActivity: Fix ActionBar after rotationSamuel Holland
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-06TunnelDetailFragment: Remove state text and last changeSamuel Holland
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-06activity: Remove useless indirectionSamuel Holland
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-06databinding: Collection classes use generic ESamuel Holland
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-06databinding: Simplify method signatureSamuel Holland
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-06databinding: Remove unused classes and methodsSamuel Holland
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-06Convert the list of tunnels to a KeyedObservableListSamuel Holland
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-06databinding: Add an adapter for the KeyedObservableListSamuel Holland
This adapter actually finally implements stable IDs correctly. Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-06util: Add a keyed list class and a sorted variantSamuel Holland
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>
2018-01-06TunnelManager: Clear primary tunnel when it's removedSamuel Holland
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-06Serviceless rewrite, part 1Samuel Holland
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-06Rename package widgets -> widgetSamuel Holland
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-06Rename package bindings -> databindingSamuel Holland
Signed-off-by: Samuel Holland <samuel@sholland.org>
2017-12-20tools: use cmp and right arguments for mountJason A. Donenfeld
Some systems don't have cmp. Some systems have buggy mount tools. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-12-19SettingsActivity: allow for installing command line toolsJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-12-16RootShell: rewriteJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-12-15tools: build required tools with apkJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-11-30VpnService: require root accessJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-11-28VpnService: Avoid duplicating file checkSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-11-29Config: use consistant verbJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-11-29VpnService: search for binaries in most likely places firstJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-11-28ConfigList: Always dismiss FAB menu on ListView touchSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-11-28NotSupported: Fix linksSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-11-28ConfigListFragment: Use a floating action menuSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-11-28ConfigActivity: Listen for name changesSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-11-27SettingsActivity: directly pass through bundleJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-11-27NotSupported: check if the module existsJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-11-27Settings: show quick tile config if no primary is definedJason A. Donenfeld
This seems like a horrific set of hacks. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-11-27ConfigImporter: give updates when something goes wrongJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-11-27QuickTileService: show app if no profiles existJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-11-26Config: make parsing stricterJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-11-25ConfigImporter: Get filename from content resolverSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-11-25ConfigList: A better toggle switchSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-11-25widgets: Import ToggleSwitch from the AOSP Settings appSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-11-24ConfigList: Poor man's switchSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-11-24BindingAdapters: Sort existing adaptersSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-11-24VpnService: Move it to a backends packageSamuel Holland
It should be split into two pieces: configuration file management (loading/saving/renaming/deleting) and calling into wg-quick via RootShell. The configuration file management part should then go back into the main package. This is in preparation for adding additional backends based on wg(8) and wireguard-go. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>