├── app ├── .gitignore ├── proguard │ └── proguard-okhttp3.pro ├── src │ ├── main │ │ ├── res │ │ │ ├── drawable-hdpi │ │ │ │ ├── ic_share.png │ │ │ │ └── ic_sort.png │ │ │ ├── drawable-mdpi │ │ │ │ ├── ic_share.png │ │ │ │ └── ic_sort.png │ │ │ ├── drawable-xhdpi │ │ │ │ ├── ic_share.png │ │ │ │ └── ic_sort.png │ │ │ ├── drawable-xxhdpi │ │ │ │ ├── ic_sort.png │ │ │ │ └── ic_share.png │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── drawable-xxxhdpi │ │ │ │ ├── ic_share.png │ │ │ │ └── ic_sort.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values-v21 │ │ │ │ └── styles.xml │ │ │ ├── xml │ │ │ │ └── file_paths.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ ├── layout │ │ │ │ ├── toolbar.xml │ │ │ │ ├── activity_settings.xml │ │ │ │ ├── activity_server_details.xml │ │ │ │ ├── activity_main.xml │ │ │ │ ├── server_list_item.xml │ │ │ │ └── server_details.xml │ │ │ ├── menu │ │ │ │ ├── menu_server_details.xml │ │ │ │ └── menu_main.xml │ │ │ └── values │ │ │ │ ├── colors.xml │ │ │ │ ├── dimens.xml │ │ │ │ ├── styles.xml │ │ │ │ └── strings.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── jkenneth │ │ │ │ └── droidovpn │ │ │ │ ├── model │ │ │ │ └── Server.java │ │ │ │ ├── util │ │ │ │ ├── PlayStoreUtils.java │ │ │ │ ├── CsvParser.java │ │ │ │ └── OvpnUtils.java │ │ │ │ ├── ui │ │ │ │ ├── activity │ │ │ │ │ ├── SettingsActivity.java │ │ │ │ │ ├── ServerDetailsActivity.java │ │ │ │ │ └── MainActivity.java │ │ │ │ ├── fragment │ │ │ │ │ └── LicensesDialogFragment.java │ │ │ │ ├── widget │ │ │ │ │ └── EmptyRecyclerView.java │ │ │ │ └── adapter │ │ │ │ │ └── ServerAdapter.java │ │ │ │ └── data │ │ │ │ ├── ServerDatabase.java │ │ │ │ ├── ServerContract.java │ │ │ │ └── DbHelper.java │ │ ├── AndroidManifest.xml │ │ └── assets │ │ │ └── licenses.html │ └── androidTest │ │ └── java │ │ └── com │ │ └── jkenneth │ │ └── droidovpn │ │ └── ApplicationTest.java ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── screenshots ├── vpn_servers.png └── vpn_server_details.png ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── README.md ├── .gitignore ├── TODO.md ├── gradle.properties ├── gradlew.bat ├── gradlew └── LICENSE /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /screenshots/vpn_servers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkennethcarino/droidovpn/HEAD/screenshots/vpn_servers.png -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkennethcarino/droidovpn/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /screenshots/vpn_server_details.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkennethcarino/droidovpn/HEAD/screenshots/vpn_server_details.png -------------------------------------------------------------------------------- /app/proguard/proguard-okhttp3.pro: -------------------------------------------------------------------------------- 1 | -keepattributes Signature 2 | -keepattributes *Annotation* 3 | -dontwarn okhttp3.** 4 | -dontwarn okio.** 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_share.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkennethcarino/droidovpn/HEAD/app/src/main/res/drawable-hdpi/ic_share.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_sort.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkennethcarino/droidovpn/HEAD/app/src/main/res/drawable-hdpi/ic_sort.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_share.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkennethcarino/droidovpn/HEAD/app/src/main/res/drawable-mdpi/ic_share.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_sort.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkennethcarino/droidovpn/HEAD/app/src/main/res/drawable-mdpi/ic_sort.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_share.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkennethcarino/droidovpn/HEAD/app/src/main/res/drawable-xhdpi/ic_share.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_sort.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkennethcarino/droidovpn/HEAD/app/src/main/res/drawable-xhdpi/ic_sort.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_sort.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkennethcarino/droidovpn/HEAD/app/src/main/res/drawable-xxhdpi/ic_sort.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkennethcarino/droidovpn/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkennethcarino/droidovpn/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_share.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkennethcarino/droidovpn/HEAD/app/src/main/res/drawable-xxhdpi/ic_share.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxxhdpi/ic_share.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkennethcarino/droidovpn/HEAD/app/src/main/res/drawable-xxxhdpi/ic_share.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxxhdpi/ic_sort.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkennethcarino/droidovpn/HEAD/app/src/main/res/drawable-xxxhdpi/ic_sort.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkennethcarino/droidovpn/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkennethcarino/droidovpn/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jkennethcarino/droidovpn/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sun Jul 16 13:59:24 PHT 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-milestone-1-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | > 2 | 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/xml/file_paths.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | DroidOVPN 2 | ====== 3 | 4 | An unofficial [VPN Gate](http://www.vpngate.net/en/) client app for Android. 5 | 6 | 7 | 8 | License 9 | ------- 10 | 11 | DroidOVPN is licensed under the [GNU General Public License v3.0 License](https://www.gnu.org/licenses/gpl.html). 12 | -------------------------------------------------------------------------------- /app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | **/build 2 | **/production 3 | *.ap_ 4 | *.apk 5 | *.class 6 | *.dex 7 | *.iml 8 | *.ipr 9 | *.iws 10 | *.log 11 | *.o 12 | *.so 13 | *.swp 14 | .DS_Store 15 | .classpath 16 | .externalToolBuilders 17 | .gradle 18 | .idea 19 | .metadata 20 | .project 21 | .settings 22 | .svn 23 | Thumbs.db 24 | build 25 | bin 26 | gen 27 | import-summary.txt 28 | lint.xml 29 | local.properties 30 | project.properties 31 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/jkenneth/droidovpn/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.jkenneth.droidovpn; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /app/src/main/res/layout/toolbar.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | -------------------------------------------------------------------------------- /TODO.md: -------------------------------------------------------------------------------- 1 | TODO 2 | ====== 3 | 4 | - [x] Show server details 5 | - [x] Import profile to OpenVPN Connect app (net.openvpn.openvpn) 6 | - [x] Import profile to OpenVPN for Android app (de.blinkt.openvpn) 7 | - [x] Cache recently fetched servers 8 | - [x] Sort the list of servers 9 | - [x] Share .ovpn server profile 10 | - [ ] Add server to favorites 11 | - [ ] Settings 12 | - [ ] Select the desired mirror sites 13 | - [ ] Select source of VPN Gate servers (parsed from HTML or CSV) 14 | -------------------------------------------------------------------------------- /app/src/main/res/menu/menu_server_details.xml: -------------------------------------------------------------------------------- 1 | 5 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #FFF5F5F5 4 | #4CAF50 5 | #388E3C 6 | #4CAF50 7 | #212121 8 | #727272 9 | #444444 10 | #FFFFFF 11 | 12 | #B6B6B6 13 | #2D9434 14 | 15 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 16dp 3 | 16dp 4 | 5 | 8dp 6 | 88dp 7 | 16sp 8 | 14sp 9 | 8dp 10 | 11 | 16dp 12 | 8dp 13 | 16dp 14 | 16dp 15 | 16 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /home/jkenneth/Android/Sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /app/src/main/java/com/jkenneth/droidovpn/model/Server.java: -------------------------------------------------------------------------------- 1 | package com.jkenneth.droidovpn.model; 2 | 3 | import java.io.Serializable; 4 | 5 | /** 6 | * Created by Jhon Kenneth Carino on 10/18/15. 7 | */ 8 | public class Server implements Serializable { 9 | 10 | public String hostName; 11 | public String ipAddress; 12 | public int score; 13 | public String ping; 14 | public long speed; 15 | public String countryLong; 16 | public String countryShort; 17 | public long vpnSessions; 18 | public long uptime; 19 | public long totalUsers; 20 | public String totalTraffic; 21 | public String logType; 22 | public String operator; 23 | public String message; 24 | public String ovpnConfigData; 25 | public int port; 26 | public String protocol; 27 | public boolean isStarred; 28 | 29 | } 30 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | android_support_lib_version = 26.0.0-beta2 20 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 26 5 | buildToolsVersion "26.0.0" 6 | 7 | defaultConfig { 8 | applicationId "com.jkenneth.droidovpn" 9 | minSdkVersion 14 10 | targetSdkVersion 26 11 | versionCode 2 12 | versionName "1.0.1" 13 | 14 | buildConfigField("String", "VPN_GATE_API", "\"http://www.vpngate.net/api/iphone/\"") 15 | } 16 | buildTypes { 17 | release { 18 | minifyEnabled true 19 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro', 20 | 'proguard/proguard-okhttp3.pro' 21 | } 22 | } 23 | } 24 | 25 | dependencies { 26 | compile fileTree(include: ['*.jar'], dir: 'libs') 27 | compile "com.android.support:design:${android_support_lib_version}" 28 | compile "com.android.support:cardview-v7:${android_support_lib_version}" 29 | compile 'pub.devrel:easypermissions:0.4.2' 30 | compile 'com.squareup.okhttp3:okhttp:3.8.0' 31 | compile 'com.badoo.mobile:android-weak-handler:1.1' 32 | } 33 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 15 | 16 | 27 | 28 | 31 | 32 | -------------------------------------------------------------------------------- /app/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 9 | 10 | 11 | 14 | 17 | 20 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 36 | 37 | -------------------------------------------------------------------------------- /app/src/main/java/com/jkenneth/droidovpn/util/PlayStoreUtils.java: -------------------------------------------------------------------------------- 1 | package com.jkenneth.droidovpn.util; 2 | 3 | import android.content.ActivityNotFoundException; 4 | import android.content.Context; 5 | import android.content.Intent; 6 | import android.net.Uri; 7 | import android.support.annotation.NonNull; 8 | 9 | /** 10 | * Copyright (C) 2016 Jhon Kenneth Carino 11 | * 12 | * This program is free software: you can redistribute it and/or modify 13 | * it under the terms of the GNU General Public License as published by 14 | * the Free Software Foundation, either version 3 of the License, or 15 | * (at your option) any later version. 16 | * 17 | * This program is distributed in the hope that it will be useful, 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 | * GNU General Public License for more details. 21 | * 22 | * You should have received a copy of the GNU General Public License 23 | * along with this program. If not, see . 24 | * 25 | * Created by Jhon Kenneth Carino on 11/1/16. 26 | */ 27 | 28 | public class PlayStoreUtils { 29 | 30 | /** 31 | * Opens app on Google Play Store from the specified {@code packageName}. 32 | * 33 | * @param context The context of an application 34 | * @param packageName The name of application's package 35 | */ 36 | public static void openApp(@NonNull Context context, @NonNull String packageName) { 37 | try { 38 | context.startActivity(new Intent(Intent.ACTION_VIEW, 39 | Uri.parse("market://details?id=" + packageName))); 40 | } catch (ActivityNotFoundException e) { 41 | context.startActivity(new Intent(Intent.ACTION_VIEW, 42 | Uri.parse("https://play.google.com/store/apps/details?id=" + packageName))); 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /app/src/main/java/com/jkenneth/droidovpn/ui/activity/SettingsActivity.java: -------------------------------------------------------------------------------- 1 | package com.jkenneth.droidovpn.ui.activity; 2 | 3 | import android.os.Bundle; 4 | import android.support.v7.app.AppCompatActivity; 5 | import android.support.v7.widget.Toolbar; 6 | import android.view.MenuItem; 7 | 8 | import com.jkenneth.droidovpn.R; 9 | 10 | /** 11 | * Customize listing of servers 12 | * 13 | * Copyright (C) 2015 Jhon Kenneth Carino 14 | * 15 | * This program is free software: you can redistribute it and/or modify 16 | * it under the terms of the GNU General Public License as published by 17 | * the Free Software Foundation, either version 3 of the License, or 18 | * (at your option) any later version. 19 | * 20 | * This program is distributed in the hope that it will be useful, 21 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 22 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23 | * GNU General Public License for more details. 24 | * 25 | * You should have received a copy of the GNU General Public License 26 | * along with this program. If not, see . 27 | * 28 | * Created by Jhon Kenneth Carino on 10/18/15. 29 | */ 30 | public class SettingsActivity extends AppCompatActivity { 31 | 32 | @Override 33 | protected void onCreate(Bundle savedInstanceState) { 34 | super.onCreate(savedInstanceState); 35 | setContentView(R.layout.activity_settings); 36 | 37 | Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); 38 | setSupportActionBar(toolbar); 39 | getSupportActionBar().setDisplayHomeAsUpEnabled(true); 40 | } 41 | 42 | @Override 43 | public boolean onOptionsItemSelected(MenuItem item) { 44 | int id = item.getItemId(); 45 | 46 | if (id == android.R.id.home) { 47 | finish(); 48 | return true; 49 | } 50 | 51 | return super.onOptionsItemSelected(item); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 15 | 16 | 21 | 24 | 25 | 26 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 41 | 42 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_server_details.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 17 | 18 | 22 | 23 | 24 | 25 |