2009-10-25 00:01:12 +00:00
|
|
|
This document explains how to properly build an Android package of Orbot from
|
|
|
|
source.
|
|
|
|
|
|
|
|
Please install the following prerequisites:
|
2009-10-25 00:47:19 +00:00
|
|
|
Android OS SDK
|
2009-10-25 00:01:12 +00:00
|
|
|
droid-wrapper: http://github.com/tmurakam/droid-wrapper
|
|
|
|
libevent source
|
|
|
|
Tor source (most recent git master branch)
|
|
|
|
|
2009-10-25 00:47:19 +00:00
|
|
|
Install and prepare the Android OS SDK ( http://source.android.com/download )
|
|
|
|
on Debian Lenny:
|
|
|
|
|
|
|
|
sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf \
|
|
|
|
libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip \
|
|
|
|
curl libncurses5-dev zlib1g-dev
|
|
|
|
|
|
|
|
curl http://android.git.kernel.org/repo >~/bin/repo
|
|
|
|
chmod a+x ~/bin/repo
|
|
|
|
|
|
|
|
mkdir ~/mydroid
|
|
|
|
cd ~/mydroid
|
|
|
|
|
|
|
|
repo init -u git://android.git.kernel.org/platform/manifest.git
|
|
|
|
repo sync
|
|
|
|
|
|
|
|
# Paste in key from http://source.android.com/download next...
|
|
|
|
gpg --import
|
|
|
|
|
|
|
|
export ANDROID_JAVA_HOME=$JAVA_HOME
|
|
|
|
cd ~/mydroid
|
2009-10-25 00:52:32 +00:00
|
|
|
|
|
|
|
# This takes a long while...
|
2009-10-25 00:47:19 +00:00
|
|
|
make
|
|
|
|
|
2009-10-25 00:52:32 +00:00
|
|
|
Install droid-wrapper:
|
|
|
|
|
|
|
|
cd /tmp
|
|
|
|
git clone git://github.com/tmurakam/droid-wrapper.git
|
|
|
|
cd droid-wrapper
|
|
|
|
sudo make install
|
|
|
|
|
2009-10-25 00:01:12 +00:00
|
|
|
XXX TODO: Explain build process for making a static Tor with our libevent, etc.
|
|
|
|
XXX TODO: Explain build process for making a .apk file for install.
|