a little bit of cleanup of new binary installs

This commit is contained in:
Nathan Freitas 2014-04-04 10:19:23 -04:00
parent a309cece79
commit 8140b32714
3 changed files with 4 additions and 3 deletions

View File

@ -4,7 +4,7 @@
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry exported="true" kind="lib" path="libs/android-support-v4.jar"/>
<classpathentry exported="true" kind="lib" path="libs/android-support-v7-appcompat.jar"/>
<classpathentry kind="output" path="bin/classes"/>

View File

@ -45,6 +45,9 @@ public class TorResourceInstaller implements TorServiceConstants {
InputStream is;
File outFile;
if (!installFolder.exists())
installFolder.mkdirs();
is = context.getResources().openRawResource(R.raw.torrc);
outFile = new File(installFolder, TORRC_ASSET_KEY);
streamToFile(is,outFile, false, false);
@ -69,7 +72,6 @@ public class TorResourceInstaller implements TorServiceConstants {
outFile = new File(installFolder, OBFSPROXY_ASSET_KEY);
streamToFile(is,outFile, false, true);
is = context.getResources().openRawResource(R.raw.xtables);
outFile = new File(installFolder, IPTABLES_ASSET_KEY);
streamToFile(is,outFile, false, true);

View File

@ -537,7 +537,6 @@ public class TorService extends Service implements TorServiceConstants, TorConst
enableBinExec(fileObfsProxy);
enableBinExec(fileXtables);
}
private boolean enableBinExec (File fileBin) throws Exception