Rod Hynes aeb024a106 Added AndroidApp project 11 лет назад
..
.idea aeb024a106 Added AndroidApp project 11 лет назад
app aeb024a106 Added AndroidApp project 11 лет назад
gradle aeb024a106 Added AndroidApp project 11 лет назад
.gitignore aeb024a106 Added AndroidApp project 11 лет назад
AndroidApp.iml aeb024a106 Added AndroidApp project 11 лет назад
README.md aeb024a106 Added AndroidApp project 11 лет назад
build.gradle aeb024a106 Added AndroidApp project 11 лет назад
gradle.properties aeb024a106 Added AndroidApp project 11 лет назад
gradlew aeb024a106 Added AndroidApp project 11 лет назад
gradlew.bat aeb024a106 Added AndroidApp project 11 лет назад
settings.gradle aeb024a106 Added AndroidApp project 11 лет назад

README.md

Psibot README

Overview

Psibot is a sample app that demonstrates embedding the Psiphon Go client in an Android app. Psibot uses the Android VpnService API to route all device traffic through tun2socks and in turn through Psiphon.

Status

  • Incomplete
    • Android app code builds but is not tested.
    • Go client builds and runs (tested via adb shell).
    • Go client support for protect sockets (VpnService) must be implemented.

Native libraries

app\src\main\jniLibs\<platform>\libtun2socks.so is built from the Psiphon fork of badvpn. Source code is here: https://bitbucket.org/psiphon/psiphon-circumvention-system/src/default/Android/badvpn/.

Go client binary and config file

app\src\main\res\raw\psiphon_tunnel_core_arm is built with Go targetting android/arm. At this time, android/arm support is not yet released but is available in the development branch.

Install Go from source. The Android instructions are here: https://code.google.com/p/go/source/browse/README?repo=mobile.

In summary, download and install the Android NDK, use a script to make a standalone toolchain, and use that toolchain to build android/arm support within the Go source install. Then cross compile as usual.

In app\src\main\res\raw\psiphon_config, placeholders must be replaced with valid values.