From 24605c9c0132135873f7a8c7a966ff2d512edef3 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 7 Jun 2018 04:12:42 +0200 Subject: Give Samuel heart attack by removing Dagger Signed-off-by: Jason A. Donenfeld --- app/src/main/java/com/wireguard/android/util/RootShell.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'app/src/main/java/com/wireguard/android/util/RootShell.java') 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 7a73929c..a90ff82e 100644 --- a/app/src/main/java/com/wireguard/android/util/RootShell.java +++ b/app/src/main/java/com/wireguard/android/util/RootShell.java @@ -9,8 +9,6 @@ package com.wireguard.android.util; import android.content.Context; import android.util.Log; -import com.wireguard.android.Application.ApplicationContext; -import com.wireguard.android.Application.ApplicationScope; import com.wireguard.android.R; import java.io.BufferedReader; @@ -23,13 +21,10 @@ import java.nio.charset.StandardCharsets; import java.util.Collection; import java.util.UUID; -import javax.inject.Inject; - /** * Helper class for running commands as root. */ -@ApplicationScope public class RootShell { private static final String SU = "su"; private static final String TAG = "WireGuard/" + RootShell.class.getSimpleName(); @@ -44,8 +39,7 @@ public class RootShell { private OutputStreamWriter stdin; private BufferedReader stdout; - @Inject - public RootShell(@ApplicationContext final Context context) { + public RootShell(final Context context) { deviceNotRootedMessage = context.getString(R.string.error_root); final File cacheDir = context.getCacheDir(); localBinaryDir = new File(cacheDir, "bin"); -- cgit v1.2.3