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

dx a53673fd33 Update README.md 6 months ago
external 90bb11c8bb Disabled systemd and removed creating an APK from the script 6 months ago
gradle 78f79236ec sync gradle wrapper and add SHA-256 checks, use versions from Debian 3 years ago
sampletorapp 24f0d49759 Sample targets API 30 for #58 11 months ago
tor-android-binary 691bcb5c31 bump jtorctl to 0.4.5.7 11 months ago
.gitignore 91157d9e63 remove old eclipse .project, duplicate .gitignore entry 1 year ago
.gitlab-ci.yml 023d8c3a27 gitlab-ci: pin sdkmanager version for reliably operation 11 months ago
.gitmodules f191a628d5 move patches into tor-android-0.4.1 branch in our tor fork 3 years ago
AUTHORS b48bbc1487 updated AUTHORS for amoghbl1 9 years ago
BUILD 8383c1abbc remove polipo 4 years ago
LICENSE cc3c4514e8 update license for better Obfs4proxy display 5 years ago
README.md a53673fd33 Update README.md 6 months ago
Vagrantfile e8ffc7b8d9 Vagrantfile: fix Debian install errors that need human interaction 11 months ago
build.gradle 04d249d953 Add instrumentation test to reproduce #57 1 year ago
gradle.properties 090f685b88 update gradle and build settings 3 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 90bb11c8bb Disabled systemd and removed creating an APK from the script 6 months ago

README.md

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 default-jdk -y &&

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

git checkout 0.4.6.8-fixed

./tor-droid-make.sh fetch

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 "