a little bit of cleanup of new binary installs
This commit is contained in:
parent
a309cece79
commit
8140b32714
|
@ -4,7 +4,7 @@
|
||||||
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
|
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
|
||||||
<classpathentry kind="src" path="src"/>
|
<classpathentry kind="src" path="src"/>
|
||||||
<classpathentry kind="src" path="gen"/>
|
<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-v4.jar"/>
|
||||||
<classpathentry exported="true" kind="lib" path="libs/android-support-v7-appcompat.jar"/>
|
<classpathentry exported="true" kind="lib" path="libs/android-support-v7-appcompat.jar"/>
|
||||||
<classpathentry kind="output" path="bin/classes"/>
|
<classpathentry kind="output" path="bin/classes"/>
|
||||||
|
|
|
@ -45,6 +45,9 @@ public class TorResourceInstaller implements TorServiceConstants {
|
||||||
InputStream is;
|
InputStream is;
|
||||||
File outFile;
|
File outFile;
|
||||||
|
|
||||||
|
if (!installFolder.exists())
|
||||||
|
installFolder.mkdirs();
|
||||||
|
|
||||||
is = context.getResources().openRawResource(R.raw.torrc);
|
is = context.getResources().openRawResource(R.raw.torrc);
|
||||||
outFile = new File(installFolder, TORRC_ASSET_KEY);
|
outFile = new File(installFolder, TORRC_ASSET_KEY);
|
||||||
streamToFile(is,outFile, false, false);
|
streamToFile(is,outFile, false, false);
|
||||||
|
@ -69,7 +72,6 @@ public class TorResourceInstaller implements TorServiceConstants {
|
||||||
outFile = new File(installFolder, OBFSPROXY_ASSET_KEY);
|
outFile = new File(installFolder, OBFSPROXY_ASSET_KEY);
|
||||||
streamToFile(is,outFile, false, true);
|
streamToFile(is,outFile, false, true);
|
||||||
|
|
||||||
|
|
||||||
is = context.getResources().openRawResource(R.raw.xtables);
|
is = context.getResources().openRawResource(R.raw.xtables);
|
||||||
outFile = new File(installFolder, IPTABLES_ASSET_KEY);
|
outFile = new File(installFolder, IPTABLES_ASSET_KEY);
|
||||||
streamToFile(is,outFile, false, true);
|
streamToFile(is,outFile, false, true);
|
||||||
|
|
|
@ -537,7 +537,6 @@ public class TorService extends Service implements TorServiceConstants, TorConst
|
||||||
enableBinExec(fileObfsProxy);
|
enableBinExec(fileObfsProxy);
|
||||||
enableBinExec(fileXtables);
|
enableBinExec(fileXtables);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean enableBinExec (File fileBin) throws Exception
|
private boolean enableBinExec (File fileBin) throws Exception
|
||||||
|
|
Loading…
Reference in New Issue