|
|
* Install the [Android NDK](http://developer.android.com/tools/sdk/ndk/)
|
|
|
* `export ANDROID_NDK_HOME=/wherever/you/downloaded/the/ndk`
|
|
|
* `git clone https://git.torproject.org/orbot.git`
|
|
|
* `cd orbot`
|
|
|
* `git submodule update --init external/libevent`
|
|
|
* `git submodule update --init external/openssl`
|
|
|
* `git submodule update --init external/tor`
|
|
|
* `cd external/libevent`
|
|
|
* `git checkout release-2.0.22-stable` (or latest stable release)
|
|
|
* `cd ../openssl`
|
|
|
* `git checkout OpenSSL_1_0_2g` (or latest stable release)
|
|
|
* `cd ../tor`
|
|
|
* `git checkout tor-0.2.7.6` (or latest stable release)
|
|
|
* `cd ../..`
|
|
|
|
|
|
ARM binary with PIE (Android API version 16+):
|
|
|
* `unset APP_ABI`
|
|
|
* `unset NDK_PLATFORM_LEVEL`
|
|
|
* `unset PIEFLAGS`
|
|
|
* `make -C external tor`
|
|
|
* `mv external/bin/tor .`
|
|
|
* `strip tor` (requires binutils-multiarch)
|
|
|
* `zip tor-arm-pie.zip tor`
|
|
|
* `make -C external clean`
|
|
|
|
|
|
ARM binary without PIE (Android API version 9-15):
|
|
|
* `unset APP_ABI`
|
|
|
* `export NDK_PLATFORM_LEVEL=9`
|
|
|
* `export PIEFLAGS=`
|
|
|
* `make -C external tor`
|
|
|
* `mv external/bin/tor .`
|
|
|
* `strip tor` (requires binutils-multiarch)
|
|
|
* `zip tor-arm.zip tor`
|
|
|
* `make -C external clean`
|
|
|
|
|
|
x86 binary with PIE (Android API version 16+):
|
|
|
* `export APP_ABI=x86`
|
|
|
* `unset NDK_PLATFORM_LEVEL`
|
|
|
* `unset PIEFLAGS`
|
|
|
* `make -C external tor`
|
|
|
* `mv external/bin/tor .`
|
|
|
* `strip tor` (requires binutils-multiarch)
|
|
|
* `zip tor-x86-pie.zip tor`
|
|
|
* `make -C external clean`
|
|
|
|
|
|
x86 binary without PIE (Android API version 9-15):
|
|
|
* `export APP_ABI=x86`
|
|
|
* `export NDK_PLATFORM_LEVEL=9`
|
|
|
* `export PIEFLAGS=`
|
|
|
* `make -C external tor`
|
|
|
* `mv external/bin/tor .`
|
|
|
* `strip tor` (requires binutils-multiarch)
|
|
|
* `zip tor-x86.zip tor`
|
|
|
* `make -C external clean` |