[tor-commits] [orbot/master] add torrcdiag file to installer
n8fr8 at torproject.org
n8fr8 at torproject.org
Thu Apr 17 15:36:58 UTC 2014
commit 37eddfcbd27fdacda00da62bcad4ddb9e9b19c28
Author: Nathan Freitas <nathan at freitas.net>
Date: Thu Apr 17 10:14:57 2014 -0400
add torrcdiag file to installer
---
src/org/torproject/android/service/TorResourceInstaller.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/org/torproject/android/service/TorResourceInstaller.java b/src/org/torproject/android/service/TorResourceInstaller.java
index 04b7d2d..799bdae 100644
--- a/src/org/torproject/android/service/TorResourceInstaller.java
+++ b/src/org/torproject/android/service/TorResourceInstaller.java
@@ -77,6 +77,11 @@ public class TorResourceInstaller implements TorServiceConstants {
shell.add(new SimpleCommand(COMMAND_RM_FORCE + outFile.getAbsolutePath())).waitForFinish();
streamToFile(is,outFile, false, false);
+ is = context.getResources().openRawResource(R.raw.torrcdiag);
+ outFile = new File(installFolder, TORRCDIAG_ASSET_KEY);
+ shell.add(new SimpleCommand(COMMAND_RM_FORCE + outFile.getAbsolutePath())).waitForFinish();
+ streamToFile(is,outFile, false, false);
+
is = context.getResources().openRawResource(R.raw.torrctether);
outFile = new File(installFolder, TORRC_TETHER_KEY);
shell.add(new SimpleCommand(COMMAND_RM_FORCE + outFile.getAbsolutePath())).waitForFinish();
More information about the tor-commits
mailing list