Shows how to build a VPN app for Android using leaf.
- Rust
- GCC/clang
- Make
- SDK
- NDK
export ANDROID_HOME=/path/to/sdk
export NDK_HOME=/path/to/sdk/ndk-bundle
rustup target add aarch64-linux-android x86_64-linux-android
git clone https://github.com/eycorsican/aleaf
cd aleaf
./app/src/main/rust/leaf-android/build.sh debug
Refer here and here for more details.
TLS outbound is not working on x86_64
due to this issue. But it's possible to specify a custom certificate chain via the SSL_CERT_FILE
env var.