diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2020-02-28 13:16:31 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2020-02-28 13:16:31 +0530 |
commit | 5e94adc73a302eff41e63b133d2a3bc14dc14028 (patch) | |
tree | b20574133c9d361abd3de296800db8d547da7fac /app/src/main/java/com/wireguard/android/util | |
parent | 44fc0228a9dadda781e5e604632a703d73c2d5bd (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.java | 2 |
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(); } |