mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-16 20:59:54 +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 configPath = configFile.getAbsolutePath();
|
||||||
String pid = String.valueOf(android.os.Process.myPid());
|
String pid = String.valueOf(android.os.Process.myPid());
|
||||||
String[] cmd = {torPath, "-f", configPath, OWNER, pid};
|
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;
|
Process torProcess;
|
||||||
try {
|
try {
|
||||||
torProcess = Runtime.getRuntime().exec(cmd, env, torDirectory);
|
torProcess = Runtime.getRuntime().exec(cmd, env, torDirectory);
|
||||||
|
|||||||
Reference in New Issue
Block a user