From 8fe897a3c7654ee0573bfb50333ebc3a319cf3f8 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Thu, 1 Jun 2023 00:28:41 +0200 Subject: Use JobScheduler as backup to keep an active VPN active This should restart it in some instances when the app dies or gets killed. --- main/src/main/AndroidManifest.xml | 5 + .../de/blinkt/openvpn/core/OpenVPNService.java | 9 +- .../java/de/blinkt/openvpn/core/keepVPNAlive.java | 106 +++++++++++++++++++++ 3 files changed, 119 insertions(+), 1 deletion(-) create mode 100644 main/src/main/java/de/blinkt/openvpn/core/keepVPNAlive.java (limited to 'main') diff --git a/main/src/main/AndroidManifest.xml b/main/src/main/AndroidManifest.xml index 4a8348e1..50362b30 100644 --- a/main/src/main/AndroidManifest.xml +++ b/main/src/main/AndroidManifest.xml @@ -96,6 +96,11 @@ + +