summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/java
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-03-09 04:48:43 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2020-03-09 04:48:58 -0600
commite6a2f049ea39fd61d5ef2de6d02eddd9ca6b6cb8 (patch)
tree9a17b96014d54159a5fab983428935164a58cfeb /app/src/main/java
parentd9e9dd04af9267e2e45c301020dc057ac3d9d711 (diff)
RootShell: remove need for BuildConfig
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/com/wireguard/android/util/RootShell.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/src/main/java/com/wireguard/android/util/RootShell.java b/app/src/main/java/com/wireguard/android/util/RootShell.java
index 63d2c906..1fc2c9f2 100644
--- a/app/src/main/java/com/wireguard/android/util/RootShell.java
+++ b/app/src/main/java/com/wireguard/android/util/RootShell.java
@@ -9,7 +9,6 @@ import android.content.Context;
import androidx.annotation.Nullable;
import android.util.Log;
-import com.wireguard.android.BuildConfig;
import com.wireguard.android.util.RootShell.RootShellException.Reason;
import java.io.BufferedReader;
@@ -42,7 +41,7 @@ public class RootShell {
localBinaryDir = new File(context.getCodeCacheDir(), "bin");
localTemporaryDir = new File(context.getCacheDir(), "tmp");
preamble = String.format("export CALLING_PACKAGE=%s PATH=\"%s:$PATH\" TMPDIR='%s'; id -u\n",
- BuildConfig.APPLICATION_ID, localBinaryDir, localTemporaryDir);
+ context.getPackageName(), localBinaryDir, localTemporaryDir);
}
private static boolean isExecutableInPath(final String name) {