modified tor-android to make it actually build tor for android

Sofian Benissa 395c4cebef removing building an APK from the script 1 year ago
external 395c4cebef removing building an APK from the script 1 year ago
gradle 78f79236ec sync gradle wrapper and add SHA-256 checks, use versions from Debian 2 years ago
sampletorapp f2860e080e purge empty test templates 2 years ago
tor-android-binary 01268ee94a Merge branch 'master' of github.com:n8fr8/tor-android 2 years ago
.gitignore d7b9a0326e gitlab-ci: add emulator test run 2 years ago
.gitlab-ci.yml e2305130de gitlab-ci: update to use latest ci-images-client setup 2 years ago
.gitmodules c78be10bb2 Update '.gitmodules' 1 year ago
.project 8d8fe0ceb4 updates to improve VPN support 6 years ago
AUTHORS b48bbc1487 updated AUTHORS for amoghbl1 8 years ago
BUILD 8383c1abbc remove polipo 4 years ago
LICENSE cc3c4514e8 update license for better Obfs4proxy display 4 years ago
README 1ed8cc3f03 Update 'README' 1 year ago
TODO 3a0615855b small changes to README etc files 11 years ago
build.gradle c3a96551e2 restore Android Gradle Plugin to version that works with ./gradlew #20 2 years ago
gradle.properties 090f685b88 update gradle and build settings 2 years ago
gradlew 99eb75aeaf update gradle to 4.5.1 4 years ago
gradlew.bat 99eb75aeaf update gradle to 4.5.1 4 years ago
project.properties dbfdf4d9f2 text file change 3 years ago
settings.gradle de630b45cb add simple sample app 4 years ago
tor-droid-make.sh 395c4cebef removing building an APK from the script 1 year ago

README


Tor Android
***********************************************
This is a project forked from Orbot for building the tor binary for Android

How to Build
***********************************************
to get android ".so's":

git clone https://git.anonymousmessenger.ly/dx/tor-android.git

#docker is optional and you can run on virtually any distro with changing how to install packages

#replace the first Android with the directory of your ANDROID_HOME
docker run -v $(pwd)/tor-android/:/tor-android -v Android:/Android --network=host -it debian /bin/bash

#replace the ndk home with your own
#make sure ndk directory exists
export ANDROID_NDK_HOME=/Android/Sdk/ndk/21.3.6528147
export ANDROID_HOME=/Android

apt-get update
apt-get install autotools-dev libsystemd-dev -y &&\
apt-get install automake autogen autoconf libtool gettext-base systemd* -y &&\
apt-get install autopoint git make pkg-config systemd build-essential -y &&\
apt-get install automake libevent-dev libssl-dev zlib1g-dev libsystemd* -y &&\
apt-get install gcc-arm-linux-gnueabihf -y



cd /tor-android

./tor-droid-make.sh fetch

cd external/libevent
git checkout release-2.1.11-stable #(or latest stable release)
cd ../openssl
git checkout OpenSSL_1_1_1d #(or latest stable release)
cd ../tor
git checkout release-0.4.5 #(or latest stable release)
cd ../xz
git checkout v5.0.1 #(or latest stable release)
cd ../..

./tor-droid-make.sh fetch

cd external/xz/
git checkout v5.0.1
cd ../..


export APP_ABI=x86
unset NDK_PLATFORM_LEVEL
unset PIEFLAGS
make -C external clean tor

./tor-droid-make.sh build

#rename x86
cd external/lib/x86
mv libtor.so libtor.x86.so
#rename x86_64
cd ../x86_64
mv libtor.so libtor.x86_64.so
#rename arm
cd ../armeabi-v7a
mv libtor.so libtor.arm.so
#rename arm64
cd ../arm64-v8a
mv libtor.so libtor.arm64.so

cd ../../..

echo "the .so's are in external/lib/x86 external/lib/x86_64 external/lib/armeabi-v7a external/lib/arm64-v8a "