Skip to content

c4fun/rallets-android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Rallets
May 2, 2017
56deb3b · May 2, 2017
Jan 8, 2017
May 7, 2016
May 2, 2017
May 2, 2017
May 2, 2017
May 2, 2017
May 2, 2017
Nov 30, 2016
Jul 6, 2016
May 2, 2017
May 2, 2017
Jun 17, 2016
May 20, 2016
Jan 7, 2017
May 2, 2017
May 2, 2017
Jan 8, 2017
Nov 11, 2016
May 2, 2017
May 2, 2017
May 2, 2017

Repository files navigation

Shadowsocks for Android

A shadowsocks client for Android, written in Scala.

CI STATUS

Build Status

PREREQUISITES

  • JDK 1.8
  • SBT 0.13.0+
  • Go 1.4+
  • Android SDK
    • Build Tools 25+
    • Android Support Repository and Google Repository (see build.sbt for version)
  • Android NDK r12b+

BUILD

  • Set environment variable ANDROID_HOME to /path/to/android-sdk
  • Set environment variable ANDROID_NDK_HOME to /path/to/android-ndk
  • Set environment variable GOROOT_BOOTSTRAP to /path/to/go
  • Create your key following the instructions at https://developer.android.com/studio/publish/app-signing.html
  • Create local.properties from local.properties.example with your own key information
  • Invoke the building like this
    git submodule update --init

    # Build the App
    sbt native-build clean android:package-release

TRANSLATE

Translators can go to POEditor to help translate shadowsocks-android. Guidelines:

  • It's okay to leave some strings untranslated if you think it should use the same string as English (US).
  • faq_url should not be changed. If you'd like to translate FAQ, submit a pull request with the translated faq.md (it should be named properly, e.g. .github/faq.zh-CN.md). Administrators will take care of the rest.
  • Do not add/edit/remove comments.

DEVELOPE & DEBUG

  • clean and install: sbt clean android:install
  • list database tables: adb -e shell "run-as com.github.rallets ls /data/data/com.github.rallets/databases/"

OPEN SOURCE LICENSES

Signing

  • keytool -genkey -v -keystore .keystore -alias rallets -keyalg RSA -keysize 2048 -validity 10000
  • zipalign -p 4 my.apk ~/Desktop/Rallets-VERSION.apk
  • jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore .keystore ~/Desktop/Rallets-VERSION.apk rallets