Package com.wireguard.android.util
Class ToolsInstaller
- java.lang.Object
-
- com.wireguard.android.util.ToolsInstaller
-
public final class ToolsInstaller extends java.lang.Object
Helper to install WireGuard tools to the system partition.
-
-
Constructor Summary
Constructors Constructor Description ToolsInstaller(android.content.Context context, RootShell rootShell)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
areInstalled()
void
ensureToolsAvailable()
boolean
extract()
int
install()
-
-
-
Field Detail
-
ERROR
public static final int ERROR
- See Also:
- Constant Field Values
-
MAGISK
public static final int MAGISK
- See Also:
- Constant Field Values
-
NO
public static final int NO
- See Also:
- Constant Field Values
-
SYSTEM
public static final int SYSTEM
- See Also:
- Constant Field Values
-
YES
public static final int YES
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ToolsInstaller
public ToolsInstaller(android.content.Context context, RootShell rootShell)
-
-
Method Detail
-
areInstalled
public int areInstalled() throws RootShell.RootShellException
- Throws:
RootShell.RootShellException
-
ensureToolsAvailable
public void ensureToolsAvailable() throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
-
extract
public boolean extract() throws java.io.IOException
- Throws:
java.io.IOException
-
install
public int install() throws RootShell.RootShellException, java.io.IOException
- Throws:
RootShell.RootShellException
java.io.IOException
-
-