[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [orbot/master] added installer for obfsproxy binary



commit d22ef2b1c53d30c4de19c32fb1ffd8458c7a058a
Author: Nathan Freitas <nathan@xxxxxxxxxxx>
Date:   Sat Feb 11 22:39:10 2012 -0500

    added installer for obfsproxy binary
---
 .../android/service/TorBinaryInstaller.java        |    5 ++++-
 .../android/service/TorServiceConstants.java       |    3 ++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/org/torproject/android/service/TorBinaryInstaller.java b/src/org/torproject/android/service/TorBinaryInstaller.java
index 0d79780..bb51422 100644
--- a/src/org/torproject/android/service/TorBinaryInstaller.java
+++ b/src/org/torproject/android/service/TorBinaryInstaller.java
@@ -73,7 +73,10 @@ public class TorBinaryInstaller implements TorServiceConstants {
 		is = context.getResources().openRawResource(R.raw.privoxy_config);
 		outFile = new File(installFolder, PRIVOXYCONFIG_ASSET_KEY);
 		streamToFile(is,outFile, false, false);
-		
+	
+		is = context.getResources().openRawResource(R.raw.obfsproxy);
+		outFile = new File(installFolder, OBFSPROXY_ASSET_KEY);
+		streamToFile(is,outFile, false, false);
 	
 		return true;
 	}
diff --git a/src/org/torproject/android/service/TorServiceConstants.java b/src/org/torproject/android/service/TorServiceConstants.java
index c9d0cb4..8f8fc1b 100644
--- a/src/org/torproject/android/service/TorServiceConstants.java
+++ b/src/org/torproject/android/service/TorServiceConstants.java
@@ -82,6 +82,7 @@ public interface TorServiceConstants {
     public static final String PREF_BINARY_TOR_VERSION_INSTALLED = "BINARY_TOR_VERSION_INTALLED";
     public static final String PREF_BINARY_PRIVOXY_VERSION_INSTALLED = "BINARY_PRIVOXY_VERSION_INTALLED";
     
-    
+    //obfsproxy 
+    public static final String OBFSPROXY_ASSET_KEY = "obfsproxy";
     
 }



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits