ensure torrc values are overwritten
This commit is contained in:
parent
81bd61764c
commit
022436515d
|
@ -115,6 +115,22 @@ public class TorResourceInstaller implements TorServiceConstants {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean installTorrc () throws IOException, FileNotFoundException, TimeoutException
|
||||||
|
{
|
||||||
|
|
||||||
|
InputStream is;
|
||||||
|
File outFile;
|
||||||
|
|
||||||
|
Shell shell = Shell.startShell(new ArrayList<String>(),installFolder.getAbsolutePath());
|
||||||
|
|
||||||
|
is = context.getResources().openRawResource(R.raw.torrc);
|
||||||
|
outFile = new File(installFolder, TORRC_ASSET_KEY);
|
||||||
|
shell.add(new SimpleCommand(COMMAND_RM_FORCE + outFile.getAbsolutePath())).waitForFinish();
|
||||||
|
streamToFile(is,outFile, false, false);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Extract the Tor binary from the APK file using ZIP
|
* Extract the Tor binary from the APK file using ZIP
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue