[guardian-dev] Build process for Android Tor binary

Nathan of Guardian nathan at guardianproject.info
Fri Dec 27 12:42:02 EST 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/27/2013 11:23 AM, Michael Rogers wrote:
> Does anyone have a few minutes to give me a quick description of
> how you cross-compile the Tor binary that's bundled with
> ChatSecure? We're using Guardian's Tor binaries for Briar, but we
> ought to build all our dependencies from source (deterministically,
> in the long term). Is there a build script somewhere that I can
> refer to?

We don't bundle Tor with ChatSecure, it is only in Orbot. ChatSecure
uses a simple helper class to check if Orbot is running (based on
process list), and then requests it to start via Intent API if it is
not on.

https://github.com/guardianproject/NetCipher/blob/master/libonionkit/src/info/guardianproject/onionkit/ui/OrbotHelper.java

Regardless, still happy to help you compile your own Tor. It is quite
a robust build process.

1) Ensure you have NDK installed

2) Set your ANDROID_NDK home env variable.

3) cd Orbot/external

4) run "make"!

More build info here:
https://gitweb.torproject.org/orbot.git/blob/HEAD:/BUILD

Makefile here if you want to enjoy the _hc's evil genious of fusing
Make with NDK-BUILD:
https://gitweb.torproject.org/orbot.git/blob/HEAD:/external/Makefile

I'm around on IRC if you have any questions.

+n

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJSvbvpAAoJEKgBGD5ps3qphhsQAIAgwI6dqD/1lKNqChY0Rvos
Vdu12pLi19iWpdIgcKIjaLja1hJIvwDBWr23k/u+myhd+B/+OshnAlGd1SqvhPWm
TEFiE5ORCx5ZBZe048XYXR59vzh+EpvNwCmKkQ4hpD3ktVHWuUQFlt6b7N6RiSL/
F2vBQ+VjkY5hZik93zyKgDUVfeFNe1e0PbZFuSiIqXX5ErKNVC0rlIh/igZ7iW6n
WsoLbtknI1ogvAYbfOIlsJQe5hUxJxieyk5npe1fJVksHzzQ3RX6fPHfJV8HE+TS
A004PsEKoiX61tkFjH6TY6E/guoQf+iom8v/L9kLQeaiy0gN2rs95kwn2QnXNeXw
X9iyCRjvyuhgVIdg/6CDlGY5uEEygfr/Ec/ZifAaBsuQXCq3KQtsDBMFpxBoWj0F
8pIFOphLJaq09guoC4AKQZR3FjFurkf7jpTg++XB/Zj6PDFjPU3jYydArs4Ycbl2
c71mQqGnUjVIiNWdZV1Xv/Zl4gt/mDvSt1lXhM6/aYsbD0i2sgIU51L8KjODM18C
6Q5zkM1CleBWBvNcYlFyPnZt9GbE+JeaXuGoW/yI8R42a974QnLI0F5Kh1+ne5Sp
bJMFwEl8GtwGKss7R7mD2lOWfqGux0HpyxiUFK1uBQz3hHwp5HbMIEQbDvPTOT6W
gC59Gmi9+3HAxXgqZESj
=qnnD
-----END PGP SIGNATURE-----


More information about the Guardian-dev mailing list