Skip to content
Snippets Groups Projects
Commit be3752bf authored by goapunk's avatar goapunk Committed by akwizgran
Browse files

Set Android env vars


Signed-off-by: default avatargoapunk <noobie@goapunks.net>

(cherry picked from commit e26f663)
parent 867a233b
No related branches found
No related tags found
No related merge requests found
......@@ -183,7 +183,11 @@ class TorPlugin implements DuplexPlugin, EventHandler, EventListener {
String configPath = configFile.getAbsolutePath();
String pid = String.valueOf(android.os.Process.myPid());
String[] cmd = {torPath, "-f", configPath, OWNER, pid};
String[] env = {"HOME=" + torDirectory.getAbsolutePath()};
String[] env = {
"HOME=" + torDirectory.getAbsolutePath(),
"ANDROID_ROOT=/system",
"ANDROID_DATA=/data"
};
Process torProcess;
try {
torProcess = Runtime.getRuntime().exec(cmd, env, torDirectory);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment