meafs / android-app

Official ProtonVPN Android app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ProtonVPN for Android

Copyright (c) 2019 Proton Technologies AG

Build instructions

  • Install sdk, ndk, cmake, swig
  • Clone this repository
  • ./gradlew assembleProdDebug or open and build in Android Studio

Build release

To complete a release build signing keys need to be provided: ./gradlew assembleProdRelease -PkeyStoreFilePath= -PkeyStoreKeyAlias= -PkeyStorePassword= -PkeyStoreKeyPassword=`

Rebuild strongswan

This project is using native libraries from open-source project Strongswan. To simplify the build process we include prebuilt copies of those libraries here. To rebuild them follow these steps:

  • git submodule init followed by git submodule update in the main directory (we include original Strongswan repository as a git submodule)
  • cd strongswan and follow build instructions from Strongswan to rebuild native libraries
  • after a successful build, run cp -r strongswan/src/frontends/android/app/src/main/libs/* app/src/main/jniLibs in our main directory to copy the prebuilt libraries and rebuild the ProtonVPN client

Code style

Project uses agreed code style ProtonStyle.xml for java. Import it in Android studio via File>>Settings>>Editor>>Code style>>Import Scheme For kotlin's code style we use ktlint with default rules


If you would like to contribute, please keep in mind the following rules:

  • Try to stick to the project's existing code style and naming conventions
  • The code base is mostly written in Java, but we are transitioning to Kotlin, so new code should be written in Kotlin where possible
  • Our preferred tech stack is Kotlin, MVVM, data-binding and coroutines, so any new features or large refactors should conform to this preferred tech stack
  • After adding/updating open source dependencies run gradlew updateLicensesJson to update attributions.

Internally our CI automatically checks all pull requests for code style issues, and runs our tests. However you can run those locally as well.

gradlew checkstyle
gradlew ktlint
gradlew test
gradlew androidTest

By making a contribution to this project you agree to the following:

  1. I assign any and all copyright related to the contribution to Proton Technologies AG;
  2. I certify that the contribution was created in whole by me;
  3. I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it) is maintained indefinitely and may be redistributed with this project or the open source license(s) involved.


  • Version matches format: [major][minor][patch]


The code and datafiles in this distribution are licensed under the terms of the GPLv3 as published by the Free Software Foundation. See for a copy of this license.

Copyright (c) 2019 Proton Technologies AG


Official ProtonVPN Android app

License:GNU General Public License v3.0


Language:C 45.7%Language:C++ 19.0%Language:Assembly 13.7%Language:Perl 10.7%Language:Java 4.1%Language:Shell 2.8%Language:Makefile 0.8%Language:Roff 0.6%Language:Python 0.5%Language:Kotlin 0.5%Language:Objective-C 0.4%Language:M4 0.3%Language:xBase 0.3%Language:CMake 0.2%Language:HTML 0.2%Language:JavaScript 0.2%Language:Batchfile 0.1%Language:AGS Script 0.1%Language:eC 0.0%Language:GDB 0.0%Language:SmPL 0.0%Language:Tcl 0.0%