[tor-commits] [orbot/master] moved Tor data directory to app_data from cache

n8fr8 at torproject.org n8fr8 at torproject.org
Thu Jun 21 03:59:35 UTC 2012


commit bf044b939035f81871597a9ab6fc86a7e8c0355c
Author: n8fr8 <nathan at freitas.net>
Date:   Wed May 9 23:06:46 2012 -0400

    moved Tor data directory to app_data from cache
---
 .../android/service/TorBinaryInstaller.java        |    2 +-
 src/org/torproject/android/service/TorService.java |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/org/torproject/android/service/TorBinaryInstaller.java b/src/org/torproject/android/service/TorBinaryInstaller.java
index bb51422..81f6db8 100644
--- a/src/org/torproject/android/service/TorBinaryInstaller.java
+++ b/src/org/torproject/android/service/TorBinaryInstaller.java
@@ -241,7 +241,7 @@ public class TorBinaryInstaller implements TorServiceConstants {
 		Runtime.getRuntime().exec("chmod "+mode+" "+abspath).waitFor();
 	}
     /**
-	 * Asserts that the binary files are installed in the cache directory.
+	 * Asserts that the binary files are installed in the bin directory.
 	 * @param ctx context
      * @param showErrors indicates if errors should be alerted
 	 * @return false if the binary files could not be installed
diff --git a/src/org/torproject/android/service/TorService.java b/src/org/torproject/android/service/TorService.java
index 90ec393..071b680 100644
--- a/src/org/torproject/android/service/TorService.java
+++ b/src/org/torproject/android/service/TorService.java
@@ -479,7 +479,7 @@ public class TorService extends Service implements TorServiceConstants, TorConst
     {
     	
     	appBinHome = getDir("bin",Application.MODE_PRIVATE);
-    	appCacheHome = getCacheDir();
+    	appCacheHome = getDir("data",Application.MODE_PRIVATE);
     	
     	fileTor = new File(appBinHome, TOR_BINARY_ASSET_KEY);
 		filePrivoxy = new File(appBinHome, PRIVOXY_ASSET_KEY);





More information about the tor-commits mailing list