added installer for obfsproxy binary

This commit is contained in:
Nathan Freitas 2012-02-11 22:39:10 -05:00
parent 834188a22e
commit d22ef2b1c5
2 changed files with 6 additions and 2 deletions

View File

@ -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;
}

View File

@ -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";
}