From 6f1e86e8a7aad3545321ecae2e552431c597b43e Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 9 Mar 2020 01:40:14 +0800 Subject: 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. Signed-off-by: Jason A. Donenfeld --- app/src/main/java/com/wireguard/android/util/ToolsInstaller.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'app/src/main') 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"); } } -- cgit v1.2.3