summaryrefslogtreecommitdiffhomepage
path: root/app/src
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-03-09 01:40:14 +0800
committerJason A. Donenfeld <Jason@zx2c4.com>2020-03-09 01:42:38 +0800
commit95c857a93d0cbf07a5128f92ebce1b9f1fcd3280 (patch)
treeca95db9515302eccbcc11d4ece8102db1cce2196 /app/src
parent92ba8c6403db81b5ca0f4a3e070745df7b77c4ad (diff)
ToolsInstaller: do not use R
This is horible! But ToolsInstaller uses lots of other error strings nakedly, as does ModuleLoader. These both need to be fixed up the proper way (like the last two commits). This commit here is just to make the initial porting a bit easier.
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/com/wireguard/android/util/ToolsInstaller.java4
1 files changed, 1 insertions, 3 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 5483db35..f2fdeddc 100644
--- a/app/src/main/java/com/wireguard/android/util/ToolsInstaller.java
+++ b/app/src/main/java/com/wireguard/android/util/ToolsInstaller.java
@@ -12,7 +12,6 @@ import android.util.Log;
import com.wireguard.android.Application;
import com.wireguard.android.BuildConfig;
-import com.wireguard.android.R;
import com.wireguard.android.util.RootShell.RootShellException;
import java.io.File;
@@ -101,8 +100,7 @@ public final class ToolsInstaller {
}
}
if (!areToolsAvailable)
- throw new FileNotFoundException(
- context.getString(R.string.tools_unavailable_error));
+ throw new FileNotFoundException("Required tools unavailable");
}
}