An universal (badvpn)tun2socks for Android, with easy usage, just need call Java APIs...
./gradlew tun2socks:assembleRelease
./gradlew tun2socks:assembleRelease
- Copy so file you need from
tun2socks/build/intermediates/stripped_native_libs/release/out/lib
to flutter project'sandroid/src/main/jniLibs/
- Copy
tun2socks/src/main/java/com/LondonX/tun2socks/Tun2Socks.java
in to flutter project'sandroid/src/main/kotlin/com/LondonX/tun2socks/Tun2Socks.java