summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/java/com/wireguard/android/util
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2020-02-28 13:16:31 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2020-02-28 13:16:31 +0530
commit5e94adc73a302eff41e63b133d2a3bc14dc14028 (patch)
treeb20574133c9d361abd3de296800db8d547da7fac /app/src/main/java/com/wireguard/android/util
parent44fc0228a9dadda781e5e604632a703d73c2d5bd (diff)
ModuleLoader: Staticize isModuleLoaded
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src/main/java/com/wireguard/android/util')
-rw-r--r--app/src/main/java/com/wireguard/android/util/ModuleLoader.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/com/wireguard/android/util/ModuleLoader.java b/app/src/main/java/com/wireguard/android/util/ModuleLoader.java
index f5bca0f2..7794dd5c 100644
--- a/app/src/main/java/com/wireguard/android/util/ModuleLoader.java
+++ b/app/src/main/java/com/wireguard/android/util/ModuleLoader.java
@@ -59,7 +59,7 @@ public class ModuleLoader {
Application.getRootShell().run(null, String.format("insmod \"%s/wireguard-$(sha256sum /proc/version|cut -d ' ' -f 1).ko\"", moduleDir.getAbsolutePath()));
}
- public boolean isModuleLoaded() {
+ public static boolean isModuleLoaded() {
return new File("/sys/module/wireguard").exists();
}