moved Tor data directory to app_data from cache
This commit is contained in:
		
							parent
							
								
									aba382c581
								
							
						
					
					
						commit
						bf044b9390
					
				|  | @ -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 | ||||
|  |  | |||
|  | @ -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); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue