moved Tor data directory to app_data from cache

This commit is contained in:
n8fr8 2012-05-09 23:06:46 -04:00
parent aba382c581
commit bf044b9390
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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);