mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-11 18:29:05 +01:00
Set Android env vars
Signed-off-by: goapunk <noobie@goapunks.net> (cherry picked from commit e26f663)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user