added installer for obfsproxy binary
This commit is contained in:
parent
834188a22e
commit
d22ef2b1c5
|
@ -74,6 +74,9 @@ public class TorBinaryInstaller implements TorServiceConstants {
|
||||||
outFile = new File(installFolder, PRIVOXYCONFIG_ASSET_KEY);
|
outFile = new File(installFolder, PRIVOXYCONFIG_ASSET_KEY);
|
||||||
streamToFile(is,outFile, false, false);
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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_TOR_VERSION_INSTALLED = "BINARY_TOR_VERSION_INTALLED";
|
||||||
public static final String PREF_BINARY_PRIVOXY_VERSION_INSTALLED = "BINARY_PRIVOXY_VERSION_INTALLED";
|
public static final String PREF_BINARY_PRIVOXY_VERSION_INSTALLED = "BINARY_PRIVOXY_VERSION_INTALLED";
|
||||||
|
|
||||||
|
//obfsproxy
|
||||||
|
public static final String OBFSPROXY_ASSET_KEY = "obfsproxy";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue