Giter Site home page Giter Site logo

ashraf789 / cake-vpn Goto Github PK

View Code? Open in Web Editor NEW
374.0 15.0 141.0 42.55 MB

Android VPN app based on OpenVPN library.

License: GNU General Public License v2.0

Java 97.26% AIDL 2.74%
android-vpn ovpn cake-vpn openvpn-library openvpn vpn androidvpn cakevpn freevpn vpnapp

cake-vpn's Introduction

Cake-VPN

Android VPN app based on OpenVPN library.
Install app from : Google play store




Note

I use free OpenVPN configuration file from this site https://www.vpngate.net/en/
I am not sure how long it will work with the free ovpn file. It's better to update ovpn files with your own ovpn.

Instruction to update server list:

  1. Replace/add your .ovpn file with assets/ directory .ovpn file
  2. Now go to MainActivity.class and find the "getServerList()" method there you have to update server information.
  3. [!Optional] At Last go to SharedPreference.class and find the "getServer()" method there update default server information.



License

Free Software!

This project and the uses VPN library "ICS OpenVPN" both are under GPLv2 License.

Make sure you understand the licenses of the code. OpenVPN for Android is GPL licensed.

cake-vpn's People

Contributors

ashraf789 avatar dibon-jhs avatar gnanesh023 avatar max4444 avatar natkarock avatar sticknologic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cake-vpn's Issues

UDP protocol?

Really awesome APK nice and simple just one issue I seem to have.
Apps doesn't seem to connect when using UDP protocol and when tls-crypt is within .ovpn config

android app bundle is not working

i have added library gradle file
splits {
abi {
enable = true
reset()
include("x86", "x86_64", "armeabi-v7a", "arm64-v8a")
universalApk = true
}
}

but it is not working
please update or help

Open VPN over SSL

Hi,

I really appreciate your work. Using this, I learned a lot. I hope you will add more features on this project. Have you heared HTTP Injector? Can you create a tutorial om how to compiled ICS-OpenVPN? You can create a Youtube channel and I am willing to subsceibe.

Thanks

Android 10 (Api 29) Support + tls-crypt

This library can work in Android 10 if we use compileSdkVersion 28, but it can't connect if using compileSdkVersion 29.

Next problem is the library doesn't support tls-crypt? I think the lates ics-openvpn can use tls-crypt and also can use api 29 to compile.

Do you mind if you update the library? Anyway, this is awseome!!!

CakeVpn not working as system app

Android 11
I have added your VPN app as system app in my AOSP source code
it not working but
it works fine as userapp when I install it on mobile directly.
it gives error OpenVpnApi: startVpnInternal: ==============de.blinkt.openvpn.core.ConfigParser@90d7b01 12-17 14:11:18.680 3694 3694 D OpenVpnApi: converted Profile 12-17 14:11:18.699 1314 2313 E NotificationService: Suppressing notification from package by user request 12-17 14:11:18.702 1314 2313 W ShortcutService: reportShortcutUsed: package com.lazycoder.cakevpn doesn't have shortcut 38604bb5-6b2c-4a3d-844f-9182d2ee2bf7 12-17 14:11:18.710 3694 4785 I OpenVPN : Starting openvpn 12-17 14:11:18.712 3694 4785 E OpenVPN : OpenVPNThread Got java.lang.NullPointerException: Attempt to invoke virtual method 'void java.lang.Process.destroy()' on a null object reference

can you help in sorting out this issue ?

split tunneling

hi @ashraf789 i was looking into adding the split tunneling feature to the app so we could select the apps that are allowed to have vpn (all the apps are selected in default) and i was looking in to openvpn source and i found a class called Settings_Allowed_Apps.kt but the problem is i dont know kotlin so i was wondering if you would like to add this feature its really use full thanks

build.gradle (Module: vpnLib)

Configure project :vpnLib
WARNING: Configuration 'androidTestCompile' is obsolete and has been replaced with 'androidTestImplementation'.
It will be removed soon. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
WARNING: The specified Android SDK Build Tools version (26.0.2) is ignored, as it is below the minimum supported version (28.0.3) for Android Gradle Plugin 3.6.1.
Android SDK Build Tools 28.0.3 will be used.
To suppress this warning, remove "buildToolsVersion '26.0.2'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

Exclude app from using VPN

How can I exclude the VPN app itself to send the requests through the VPN? I am using admob with my VPN app when I connect to a VPN for example if I connect to a Korean VPN the ads are showing in korean. I think it could affect my admob earnings.

Is there any way to exclude the app by package name?

I was looking through the VPN source code, I found this class ExternalAppDatabase which contains methods addApp and isAllowed I tried with a condition if the package name is my app then return false or not add, but it's not working.

account

I would like to ask sir if there's a way I could add an accounts tab in which I could put their the ovpn user and pass instead of being embed in the java? how could I implement it sir?

ovpn file

Hello,

can you share details for ovpn file. ? how we can get it ?

not connect after publish in google play

This app will not connect after publish in google play !
log app in connecting:
`
2020-08-19 16:28:45.934 17089-17089/? D/OpenVpnApi: startVpnInternal: ==============de.blinkt.openvpn.core.ConfigParser@8d3986d
converted Profile

2020-08-19 16:28:45.985 17089-17646/? I/OpenVPN: Starting openvpn

2020-08-19 16:28:45.989 17089-17646/? E/OpenVPN: OpenVPNThread Got java.lang.NullPointerException: Attempt to invoke virtual method 'void java.lang.Process.destroy()' on a null object reference`

VPN Not Connecting after app Published in play store

app was working on testing so i published to play store , after that i download the app from play store , app was opening properly but not connecting to vpn , when i tap connect button but no response..
showing connecting for 2 sec then hide , nothing happens

Not Connected

I/OpenVPN: OpenVPN process exited
I/OpenVPN: Exiting
CANNOT LINK EXECUTABLE "/data/user/0/com.mypackage/cache/c_pie_openvpn.arm64-v8a": library "libopenvpn.so" not found

dns-leak issue

hi @ashraf789
i just found a bug and its really odd in xiaomi devices the phone refuses to use vpn profile dns is there any way that you could fix it i tried everyting its not from the server im sure and i tried the same vpn profile in openvpn app from google play and it works there

Closing/hiding notification

Hello. I just wanted to stop all processes and close activities when disconnect button was clicked. I was trying different techniques of closing/killing services, threads and activities from code, but notification is still visible. Do you have any suggestions? Thank you in advance.

BTW. Great work with Cake VPN. It really helps to start working with library.

Dismiss notification on disconnect

Unable to dismiss foreground service notification on the VPN disconnect. Even after closing the app or disconnect VPN notification remains there (Check screenshots). Can you please help me to solve it. I want the notification to dismiss as I disconnect the VPN. Thank you.
Screenshot_20200831-165704
Screenshot_20200831-165709

Button to switch

Will be very nice convert buttons ( connect - disconnect ) to switches with eventlistener

OpenVpnThread Null Exception with SDK 29

when you set the target sdk to 29, openvpn gives null exception on OpenVpnthread i tried to solve this but failed,, i think may this this is becasue of file system andorid changed in sdk 29,, but on the other hand i found that the .so files are n more works with sdk29 may be this is the reason we are getting null exception.

Update/Modify Notification

Hello Asraf789,
Unable to modify or update notification. Please make the notification code public so that we may modify/update the contents/design of notification.
Thanks in advance.

question about IKEv2

Thank you very much for your excellent repository ๐Ÿ™

its greatest way to use openvpn

You are simplified the "ICS OpenVPN" App

Do you know a similar method for IKEv2?

Add ability

Add an option so that the settings of an .ovpn file can be encrypted
and that encrypted file is normally opened on another device but the settings cannot be seen.
Only the file can be decrypted in the same file that was encrypted.

can't connect on android API 29 / Android 10

can't connect on android API 29 / Android 10 , no errors log found. I think maybe about android permission sdk 23
https://developer.android.com/guide/topics/manifest/uses-permission-sdk-23-element

Heres my gradle

android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
minSdkVersion 21
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}

AlwaysOnVpn

Hi @ashraf789 how are you doing ,I was wondering if you could add the AlwaysOnVpn feature to the app so if the user restarts the phone the vpn connects automatically on boot, so i looked into Ics-openvpn source and i found a class named OnBootReciver so if you could add this it would be amazing

connect with PRIVATE KEY

hi . i thank you for this source code .
my problem is connecting with PRIVATE KEY in openvpn .
how to use "PRIVATE KEY" instead "user / password"?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.