install obfsclient binary
This commit is contained in:
		
							parent
							
								
									d003826c98
								
							
						
					
					
						commit
						f485015f83
					
				|  | @ -102,8 +102,8 @@ public class TorResourceInstaller implements TorServiceConstants { | |||
| 		shell.add(new SimpleCommand(COMMAND_RM_FORCE + outFile.getAbsolutePath())).waitForFinish(); | ||||
| 		streamToFile(is,outFile, false, true); | ||||
| 	 | ||||
| 		is = context.getResources().openRawResource(R.raw.obfsproxy); | ||||
| 		outFile = new File(installFolder, OBFSPROXY_ASSET_KEY); | ||||
| 		is = context.getResources().openRawResource(R.raw.obfsclient); | ||||
| 		outFile = new File(installFolder, OBFSCLIENT_ASSET_KEY); | ||||
| 		shell.add(new SimpleCommand(COMMAND_RM_FORCE + outFile.getAbsolutePath())).waitForFinish(); | ||||
| 		streamToFile(is,outFile, false, true); | ||||
| 		 | ||||
|  |  | |||
|  | @ -532,7 +532,7 @@ public class TorService extends Service implements TorServiceConstants, TorConst | |||
|     	 | ||||
|     	filePrivoxy = new File(appBinHome, PRIVOXY_ASSET_KEY); | ||||
| 		 | ||||
| 		fileObfsProxy = new File(appBinHome, OBFSPROXY_ASSET_KEY); | ||||
| 		fileObfsProxy = new File(appBinHome, OBFSCLIENT_ASSET_KEY); | ||||
| 		 | ||||
| 		fileTorRc = new File(appBinHome, TORRC_ASSET_KEY); | ||||
| 		 | ||||
|  |  | |||
|  | @ -83,7 +83,7 @@ public interface TorServiceConstants { | |||
|     public static final String PREF_BINARY_PRIVOXY_VERSION_INSTALLED = "BINARY_PRIVOXY_VERSION_INSTALLED"; | ||||
|      | ||||
|     //obfsproxy  | ||||
|     public static final String OBFSPROXY_ASSET_KEY = "obfsproxy"; | ||||
|     public static final String OBFSCLIENT_ASSET_KEY = "obfsclient"; | ||||
|      | ||||
| 	public static final int MESSAGE_TRAFFIC_COUNT = 5; | ||||
| 	 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue