aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/src/main/java/com/wireguard/android/util/RootShell.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Migrate tunnel related classes to tunnel/ Gradle moduleHarsh Shandilya2020-03-091-211/+0
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* RootShell: remove need for BuildConfigJason A. Donenfeld2020-03-091-2/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* RootShell: properly use errormessagesJason A. Donenfeld2020-03-091-24/+37
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ToolsInstaller: extract from apk instead of relying on native extractionJason A. Donenfeld2019-10-131-3/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Update copyrightJason A. Donenfeld2019-01-071-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Migrate to AndroidXHarsh Shandilya2018-12-181-1/+1
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* Clean up error messagesSamuel Holland2018-12-151-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Fix locale usageJason A. Donenfeld2018-12-111-8/+5
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Localize exception messagesZachary Wander2018-12-111-5/+10
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: update copyright headersJason A. Donenfeld2018-09-061-2/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tools: pass in debug package nameJason A. Donenfeld2018-07-241-2/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: Add nullity annotationsEric Kuck2018-07-131-5/+6
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* global: move to Apache 2.0Jason A. Donenfeld2018-07-061-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Give Samuel heart attack by removing DaggerJason A. Donenfeld2018-06-071-7/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: Cleanup line lengths and misc lint warningsHarsh Shandilya2018-05-091-1/+1
| | | | | | | | | 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-031-0/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: Add or update copyright headers in Java codeSamuel Holland2018-05-021-0/+5
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* Update application state based on wg-quickJason A. Donenfeld2018-04-231-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* 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>
* 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>
* RootShell: Simplify, synchronize, clean upSamuel Holland2018-01-091-121/+87
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* 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>
* global: Fix or suppress most lints/warningsSamuel Holland2018-01-081-8/+7
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* Fragment/Tile: Make success/error messages translatableSamuel Holland2018-01-081-8/+16
| | | | 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-081-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* RootShell: multiplex commandsJason A. Donenfeld2018-01-081-40/+134
| | | | 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>
* Serviceless rewrite, part 1Samuel Holland2018-01-061-0/+109
Signed-off-by: Samuel Holland <samuel@sholland.org>