From b81f8b46fc328af0edd298449c1d8fea9d2dbd3a Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 29 Nov 2017 03:29:36 +0100 Subject: VpnService: search for binaries in most likely places first --- .../main/java/com/wireguard/android/backends/VpnService.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'app/src/main') 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 -- cgit v1.2.3