aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/src/main/java/com/wireguard/android/util (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ExceptionLoggers: never have a null messageJason A. Donenfeld2018-05-161-2/+11
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: Cleanup line lengths and misc lint warningsHarsh Shandilya2018-05-094-8/+13
| | | | | | | | | I know we decided to ditch the idea of shutting up "Exception thrown with empty param" warnings but this pesters me too much and we can instead just treat this as a weird future proofing thing if and when we end up needing the exception messages. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* global: fix up copyrightsJason A. Donenfeld2018-05-0312-0/+12
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: Add or update copyright headers in Java codeSamuel Holland2018-05-0212-0/+60
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* wg: Break out crossport dependencyHarsh Shandilya2018-04-301-2/+1
| | | | | | | Replace all crossport uses with upstream design support library components. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* Quick cleanup across the boardHarsh Shandilya2018-04-281-1/+1
| | | | | | | | | | - Clean up imports - Adjust method visibility - Drop in NonNull annotations where needed - Prevent potential NPEs from nulled getActivity calls - Remove unused methods Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* Update application state based on wg-quickJason A. Donenfeld2018-04-231-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ToolsInstaller: Remove double-checked lockingSamuel Holland2018-01-171-16/+15
| | | | | | | | | It can't work and may be crashing the runtime. Use a lock object to avoid exposing the synchronization in the class's interface. Signed-off-by: Samuel Holland <samuel@sholland.org>
* RootShell: Use a lock object instead of sync methodsSamuel Holland2018-01-171-88/+98
| | | | | | | This avoids exposing the synchronization implementation details in the class's interface. Signed-off-by: Samuel Holland <samuel@sholland.org>
* ToolsInstaller: symlink tools alwaysJason A. Donenfeld2018-01-101-22/+14
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: Clean up error loggingSamuel Holland2018-01-091-1/+1
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* RootShell: Improve shell start error handlingSamuel Holland2018-01-091-9/+14
| | | | | | | No need to catch and re-throw exceptions before starting the process. If running `su` itself fails, there's no (functional) root, so report that. Signed-off-by: Samuel Holland <samuel@sholland.org>
* RootShell: Be stricter about command delimitersSamuel Holland2018-01-091-13/+24
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* 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-091-18/+14
| | | | 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>
* 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>
* ToolsInstaller: Add a method to ensure tool availabilitySamuel Holland2018-01-081-0/+28
| | | | 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>
* ToolsInstaller: Add method to check installation statusSamuel Holland2018-01-081-14/+24
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* global: Fix or suppress most lints/warningsSamuel Holland2018-01-083-9/+10
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* Fragment/Tile: Make success/error messages translatableSamuel Holland2018-01-082-9/+24
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* RootShell: fix off by oneJason A. Donenfeld2018-01-081-7/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: Prefix tags with WireGuard/Jason A. Donenfeld2018-01-082-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* RootShell: multiplex commandsJason A. Donenfeld2018-01-082-41/+139
| | | | 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>
* project: Global cleanupSamuel Holland2018-01-081-1/+1
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* ToolsInstaller: Extract to its own classesSamuel Holland2018-01-081-0/+70
| | | | 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-063-8/+7
| | | | | | Hooray for diamond interface inheritance. 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>
* Serviceless rewrite, part 1Samuel Holland2018-01-064-0/+244
Signed-off-by: Samuel Holland <samuel@sholland.org>