0
0
mirror of https://github.com/schwabe/ics-openvpn.git synced 2024-09-20 03:52:27 +02:00
Commit Graph

1926 Commits

Author SHA1 Message Date
Arne Schwabe
881d82ebd5 Fix two small issues reported in crashes from Play Console 2021-10-07 15:39:28 +02:00
Arne Schwabe
706f3d28ab Fix concurrent access on TrafficHistory lists 2021-10-07 15:30:27 +02:00
Arne Schwabe
aeae23169a Version 0.7.26 2021-10-06 21:44:31 +02:00
Arne Schwabe
1a71917476 Minor fixes 2021-10-06 21:43:53 +02:00
Arne Schwabe
789effda05 Fix legacy preovider option not being saved. 2021-10-06 19:45:28 +02:00
Arne Schwabe
67a7438ccb Allow legacy algorithm in the OpenSSL Speed test 2021-10-06 18:16:55 +02:00
Arne Schwabe
afea4c95b3 Detect broken server URLs on import instead crashing 2021-10-06 17:38:53 +02:00
Arne Schwabe
38175d6d0e Fix crash when no connections are defined 2021-10-06 17:38:33 +02:00
Arne Schwabe
eecf3dbf9b Fix NPE in Toast on Android TV (closes #1370) 2021-10-06 16:58:03 +02:00
Arne Schwabe
3166e5229c Add option to allow loading the legacy provider 2021-10-06 16:58:03 +02:00
Arne Schwabe
aaab1021aa Allow setting a default profile via App Restrictions 2021-10-06 12:47:01 +02:00
Arne Schwabe
858371c328 Version 0.7.25 2021-10-04 18:27:19 +02:00
Arne Schwabe
bb0c82f28b Hide autologin checkbox when importing from URL 2021-10-04 17:49:17 +02:00
Arne Schwabe
e171dca738 Minor cleanups 2021-10-04 16:55:35 +02:00
Arne Schwabe
cf093699bd Add logging of StrictMode violations to app internal log
Also disable penaltyDeath by default as thjere is some Android internal
leak that I am unable to track down.
2021-10-04 16:55:14 +02:00
Arne Schwabe
609fd8e292 Add Strictmode to remoteExample 2021-10-04 16:54:02 +02:00
Arne Schwabe
bcb6673af6 Update dependencies version to latest 2021-10-04 14:26:00 +02:00
Arne Schwabe
7b82a5b5a5 Update okhttp to version 4.9.1 and adjust API usage 2021-10-04 07:37:27 +02:00
Arne Schwabe
674762a1d4 Minor code cleanup 2021-10-04 04:51:46 +02:00
Arne Schwabe
04054693df Avoid ANR when starting OpenVPNService and fetching profile 2021-10-04 04:48:57 +02:00
Arne Schwabe
d54ba7a09d Add check to start profile when importing to remote Example 2021-10-04 04:18:35 +02:00
Arne Schwabe
650e238b76 Ensure profile is saved if auth/password is queried on startup
This ensure the profile counter is incremented and the profile is
saved to disk to avoid the race condition of not getting the user/pass
which was started.

Closes #1342
2021-10-04 04:18:06 +02:00
Arne Schwabe
af6c8187ec Fix peer-fingerprint with auth-user-pass
Also throw an error if neither of CA or peer-fingerprint is configured
2021-10-03 18:36:57 +02:00
Arne Schwabe
cb2323d7c5 Fix various issues in remoteExample 2021-10-03 18:26:55 +02:00
Arne Schwabe
164d6d6cca Do not stop github build if one variant fails 2021-10-03 02:53:26 +02:00
Arne Schwabe
c3a0f99f90 Move Ui specific unit tests to Ui specific test file 2021-10-03 02:53:26 +02:00
Arne Schwabe
ba7fedf203 Small gradle build file cleanup 2021-10-03 02:53:26 +02:00
Arne Schwabe
6cdfc97c52 Add unit tests runs to github actions 2021-10-03 02:37:35 +02:00
Arne Schwabe
895f046e03 Fix lint issue 2021-10-02 23:23:53 +02:00
Arne Schwabe
dfe9306553 Modernise default ciphers in the OpenSSL Speed test 2021-10-01 19:56:39 +02:00
Arne Schwabe
66cfaf4591 Remove Ice Cream Sandwich support from ics-openvpn (closes #1337)
Ice cream sandwich was the first Android version to support the
VPNService API, which also gave the project its name as it was an
Android port to ICS. Now that the NDK does no longer support API 14 and
15, this project needs to say farewell to Ice cream sandwich.
2021-10-01 19:56:39 +02:00
Arne Schwabe
02d27a843f Update OPenSSL to 3.0 and OpenVPN to current master 2021-10-01 19:56:39 +02:00
Arne Schwabe
88885981db Do not use key CA certificate if peer-fingerprint is enabled 2021-10-01 19:56:39 +02:00
Arne Schwabe
f6227082f1 Implement using compat-mode 2021-10-01 19:56:39 +02:00
Arne Schwabe
9e704d04dc Implement new signing API as required by the OpenSSL 3.0 provider 2021-10-01 19:56:39 +02:00
Arne Schwabe
ea408251e6 Fix background in Tab Bar 2021-09-27 14:56:05 +02:00
Arne Schwabe
10fe1a66e1 Update build system and API to 31 2021-09-27 14:55:37 +02:00
Arne Schwabe
f07838fac6 Note that APIprofile also is exempted from GPL like the AIDL interfaces 2021-09-21 18:44:25 +02:00
syphyr
f66c66d2ae Fix NPE when resuming VPN activity
Fixes: Implement support of openvpn://import-profile/ support

E AndroidRuntime: FATAL EXCEPTION: main
E AndroidRuntime: Process: de.blinkt.openvpn, PID: 15364
E AndroidRuntime: java.lang.RuntimeException: Unable to resume activity
{de.blinkt.openvpn/de.blinkt.openvpn.activities.MainActivity}: java.lang.NullPointerException:
Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
E AndroidRuntime: 	at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3454)
E AndroidRuntime: 	at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3494)
E AndroidRuntime: 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2757)
E AndroidRuntime: 	at android.app.ActivityThread.-wrap12(ActivityThread.java)
E AndroidRuntime: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1496)
E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:102)
E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:154)
E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:6186)
E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
E AndroidRuntime: 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method
'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
E AndroidRuntime: 	at de.blinkt.openvpn.activities.MainActivity.onResume(MainActivity.java:82)
E AndroidRuntime: 	at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1270)
E AndroidRuntime: 	at android.app.Activity.performResume(Activity.java:6788)
E AndroidRuntime: 	at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3431)
E AndroidRuntime: 	... 10 more
2021-09-09 22:47:35 +02:00
Arne Schwabe
0d9aefb1b8 Version 0.7.24 2021-08-25 14:31:41 +02:00
Arne Schwabe
09c5cb0a0d Implement support of openvpn://import-profile/ support
For details about the protocol see
https://github.com/OpenVPN/openvpn3/blob/master/doc/webauth.md
2021-08-24 19:25:59 +02:00
Arne Schwabe
d1eb15b8dd fix skeleton build 2021-08-14 01:59:58 +02:00
Arne Schwabe
ded687a7c6 Also build skeleton target in Github actions 2021-08-14 01:55:09 +02:00
Arne Schwabe
2bd5c430d0 Add a dialog in Log Window allowing to start pending auth 2021-08-13 16:53:55 +02:00
Arne Schwabe
2765afc92e Add WEB_AUTH pending auth support 2021-08-13 14:48:01 +02:00
Arne Schwabe
e530ceb639 Update coverity script 2021-08-12 22:22:43 +02:00
Arne Schwabe
9c7285a5d2 Update lz4 and asio to latest release 2021-08-12 22:22:43 +02:00
Arne Schwabe
2862a851b5 Rename opvpnutil to ovpnutil
opvpn is a rather unusual abbreviation for openvpn
2021-08-12 22:22:43 +02:00
Dániel Zolnai
4c2abd81b4 Change provider authority reference to include applicationId
We have found an issue that we couldn't install any of our apps next to each other, and also next to the official OpenVPN for Android app.
The reason is that the provider authorities must be unique globally on the device. Since the class name is hardcoded, it will be the same for all of the implementors of this library.
Although this issue can be easily fixed by changing this manually, I think it is important to do it, because it might be missed by most developers, since we usually do not test 2 VPN apps next to each other. By doing this change, the authority will always start with the final application package ID, so it should be unique globally.
2021-07-18 14:02:40 +02:00
ntoskrnl
e7d5155abe Ability to pass extras when starting VPN via AIDL using inline config.
To preserve backward compatibility, a new method is created: IOpenVPNAPIService#startVPNwithExtras(String, Bundle).
Currently only one parameter is supported:
de.blinkt.openvpn.api.ALLOW_VPN_BYPASS – boolean.
2021-07-18 14:02:12 +02:00