summaryrefslogtreecommitdiffhomepage
path: root/app
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-03-09 05:07:02 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2020-03-09 05:07:02 -0600
commitfd6ace34f09a15703beaa08c7f8171ccc8a0a1b8 (patch)
tree54ac9279230c0d8a583864e8453a17aaae4ab6d3 /app
parentf42c1eda927372b4b68f0fde11374ce962e0358f (diff)
ToolsInstaller: remove versioning
Not ideal, but allows us to get rid of the BuildConfig requirement.
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/com/wireguard/android/util/ToolsInstaller.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/src/main/java/com/wireguard/android/util/ToolsInstaller.java b/app/src/main/java/com/wireguard/android/util/ToolsInstaller.java
index 5a75c158..89607768 100644
--- a/app/src/main/java/com/wireguard/android/util/ToolsInstaller.java
+++ b/app/src/main/java/com/wireguard/android/util/ToolsInstaller.java
@@ -10,7 +10,6 @@ import androidx.annotation.Nullable;
import android.system.OsConstants;
import android.util.Log;
-import com.wireguard.android.BuildConfig;
import com.wireguard.android.util.RootShell.RootShellException;
import java.io.File;
@@ -115,7 +114,7 @@ public final class ToolsInstaller {
script.append("trap 'rm -rf /sbin/.magisk/img/wireguard' INT TERM EXIT; ");
script.append(String.format("rm -rf /sbin/.magisk/img/wireguard/; mkdir -p /sbin/.magisk/img/wireguard%s; ", INSTALL_DIR));
- script.append(String.format("printf 'name=WireGuard Command Line Tools\nversion=%s\nversionCode=%s\nauthor=zx2c4\ndescription=Command line tools for WireGuard\nminMagisk=1500\n' > /sbin/.magisk/img/wireguard/module.prop; ", BuildConfig.VERSION_NAME, BuildConfig.VERSION_CODE));
+ script.append("printf 'name=WireGuard Command Line Tools\nversion=1.0\nversionCode=1\nauthor=zx2c4\ndescription=Command line tools for WireGuard\nminMagisk=1500\n' > /sbin/.magisk/img/wireguard/module.prop; ");
script.append("touch /sbin/.magisk/img/wireguard/auto_mount; ");
for (final String name : EXECUTABLES) {
final File destination = new File("/sbin/.magisk/img/wireguard" + INSTALL_DIR, name);