/aleaf

Shows how to build a VPN app for Android using leaf: https://github.com/eycorsican/leaf.

Primary LanguageKotlin

aleaf

Shows how to build a VPN app for Android using leaf.

Dependencies

  • Rust
  • GCC/clang
  • Make
  • SDK
  • NDK

Building

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 --recursive https://github.com/eycorsican/aleaf
cd aleaf

./app/src/main/rust/leaf-android/build.sh debug

Refer here and here for more details.

Limitation

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.