thaliproject / Tor_Onion_Proxy_Library

Provides a JAR and an AAR for embedding the Tor Onion Proxy into a Java or Android Program
Apache License 2.0
179 stars 98 forks source link

SmokeTest (mentioned in the README) fails to execute out of the box. #145

Open ProofOfKeags opened 4 years ago

ProofOfKeags commented 4 years ago

The smoke test class that is mentioned in the readme does not execute out of the box. I tested with tor android binaries both at version 0.3.1.9a and 0.4.2.5 and they both fail with the following exception.

java.io.IOException: Control port file not created: /data/user/0/io.ionic.starter/files/lib/tor/control.txt, len = 0

Note the above filesystem location is something within the set of directories that the app has write permissions to. It appears that the file is being created but nothing has been written to it. I'm not sure what this file is for and the only online reference I have managed to find for it was this old trac ticket that has been marked as fixed.

I'm assuming that this library works in the lab for the thaliproject devs. I'd like to know what I have to do differently in order to make this go away. I've checked out the latest master for TOPL. I'm currently using 0.4.2.5 for the tor-android binary.

maxgmer commented 4 years ago

same, have the write storage permissions, tried different android binary versions, just creates control.txt file, but doesn't write anything to it and the it throws len = 0 ;(( please help someone