diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-03-09 05:07:02 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-03-09 05:07:02 -0600 |
commit | 1235e966d2afc24b50086d6b6455d24083643211 (patch) | |
tree | 54ac9279230c0d8a583864e8453a17aaae4ab6d3 /app/src/main/java/com/wireguard/android | |
parent | e6a2f049ea39fd61d5ef2de6d02eddd9ca6b6cb8 (diff) |
ToolsInstaller: remove versioning
Not ideal, but allows us to get rid of the BuildConfig requirement.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src/main/java/com/wireguard/android')
-rw-r--r-- | app/src/main/java/com/wireguard/android/util/ToolsInstaller.java | 3 |
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); |