From d22ef2b1c53d30c4de19c32fb1ffd8458c7a058a Mon Sep 17 00:00:00 2001 From: Nathan Freitas Date: Sat, 11 Feb 2012 22:39:10 -0500 Subject: [PATCH] added installer for obfsproxy binary --- src/org/torproject/android/service/TorBinaryInstaller.java | 5 ++++- src/org/torproject/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 0d79780f..bb514228 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 c9d0cb4b..8f8fc1b5 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"; }