Set Android env vars

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

(cherry picked from commit e26f663)
This commit is contained in:
goapunk
2017-03-11 03:48:24 +00:00
committed by akwizgran
parent 867a233b6f
commit be3752bf2f

View File

@@ -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);