2011-04-15 16:39:35 +00:00
|
|
|
|
2014-08-11 18:00:26 +00:00
|
|
|
This document explains how to properly build an Android package of Orbot from
|
|
|
|
source.
|
2012-02-13 12:32:16 +00:00
|
|
|
|
2012-05-03 23:40:21 +00:00
|
|
|
Orbot includes, in the external directory, git repo submodules of:
|
|
|
|
- Tor
|
|
|
|
- OpenSSL (statically built and patched for Android)
|
|
|
|
- LibEvent
|
|
|
|
- JTorControl: The Tor Control Library for Java
|
2011-04-15 16:39:35 +00:00
|
|
|
|
2014-08-11 18:00:26 +00:00
|
|
|
The Orbot repo also includes the Polipo source code of a recent stable release.
|
2009-10-25 00:01:12 +00:00
|
|
|
|
2009-10-25 02:47:27 +00:00
|
|
|
Please install the following prerequisites (instructions for each follows):
|
2009-10-25 04:49:06 +00:00
|
|
|
ant: http://ant.apache.org/
|
2014-08-11 18:00:26 +00:00
|
|
|
Android Native Dev Kit or NDK (for C/C++ code):
|
|
|
|
http://developer.android.com/sdk/ndk/index.html
|
|
|
|
Android Software Dev Kit or SDK (for Java code):
|
|
|
|
http://developer.android.com/sdk/index.html
|
2017-09-14 13:57:32 +00:00
|
|
|
AutoMake and AutoConf tool
|
|
|
|
sudo apt-get install autotools-dev
|
|
|
|
sudo apt-get install automake
|
2017-11-11 13:56:15 +00:00
|
|
|
sudo apt-get install autogen autoconf libtool gettext-base autopoint
|
2010-03-18 04:52:53 +00:00
|
|
|
|
2014-08-11 18:00:26 +00:00
|
|
|
You will need to run the 'android' command in the SDK to install the necessary
|
|
|
|
Android platform supports (ICS 4.x or android-15)
|
2009-10-25 00:47:19 +00:00
|
|
|
|
2013-12-05 23:49:23 +00:00
|
|
|
Be sure that you have all of the git submodules up-to-date:
|
|
|
|
|
2017-12-07 10:08:19 +00:00
|
|
|
./tor-droid-make.sh fetch
|
2013-12-05 23:49:23 +00:00
|
|
|
|
2017-12-07 10:08:19 +00:00
|
|
|
To begin building, from the Orbot root directory, it builds all submodules and
|
|
|
|
the project.
|
2009-10-25 00:47:19 +00:00
|
|
|
|
2017-12-07 10:08:19 +00:00
|
|
|
./tor-droid-make.sh build
|
2009-11-28 15:41:28 +00:00
|
|
|
|
2011-07-25 21:35:39 +00:00
|
|
|
Now build the Android app
|
2012-05-03 23:40:21 +00:00
|
|
|
|
2016-09-25 22:53:30 +00:00
|
|
|
(gradle / android studio instructions here)
|
2009-10-25 04:33:05 +00:00
|
|
|
|
2016-09-25 22:53:30 +00:00
|
|
|
This will produce an unsigned Tor package APK.
|
2009-10-25 05:27:19 +00:00
|
|
|
|
|
|
|
To produce a usable package, you'll need to sign the .apk. The basics on
|
|
|
|
signing can be found on the Android developer site:
|
|
|
|
|
|
|
|
http://developer.android.com/guide/publishing/app-signing.html
|
|
|
|
|
2010-03-18 04:52:53 +00:00
|
|
|
|