diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-11-29 03:29:36 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-11-29 03:29:36 +0100 |
commit | af333785229c30b64949037b77c0f8e73700106c (patch) | |
tree | 953cd2774d763a687616ce98089ecc1f4a14231c /app/src | |
parent | ee9b374d498d06cb38750c35c38da7c688e2ccf7 (diff) |
VpnService: search for binaries in most likely places first
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/com/wireguard/android/backends/VpnService.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/src/main/java/com/wireguard/android/backends/VpnService.java b/app/src/main/java/com/wireguard/android/backends/VpnService.java index b97f532c..dbd08182 100644 --- a/app/src/main/java/com/wireguard/android/backends/VpnService.java +++ b/app/src/main/java/com/wireguard/android/backends/VpnService.java @@ -278,15 +278,15 @@ public class VpnService extends Service } private boolean existsInUsualSuspects(final String file) { - return new File("/system/bin/" + file).exists() || - new File("/system/xbin/" + file).exists() || + return new File("/system/xbin/" + file).exists() || new File("/system/sbin/" + file).exists() || + new File("/system/bin/" + file).exists() || + new File("/sbin/" + file).exists() || new File("/bin/" + file).exists() || new File("/xbin/" + file).exists() || - new File("/sbin/" + file).exists() || + new File("/usr/sbin/" + file).exists() || new File("/usr/bin/" + file).exists() || - new File("/usr/xbin/" + file).exists() || - new File("/usr/sbin/" + file).exists(); + new File("/usr/xbin/" + file).exists(); } @Override |