From 824c2a99f9d139d523265e64c8628b3171a7b017 Mon Sep 17 00:00:00 2001 From: Oliver Scott Date: Thu, 8 Jul 2021 10:40:49 -0400 Subject: [PATCH 1/2] Global VPN feature [2/2] * Create a global VPN toggle for VPNs in the system user. It is only enabled when no VPN is active in any user. Change-Id: If4a552b8f59bc15f53c324afa93a67e086b9c5a9 --- res/values/strings.xml | 6 +++ res/xml/vpn_app_management.xml | 6 +++ .../settings/vpn2/AppManagementFragment.java | 48 ++++++++++++++++++- 3 files changed, 59 insertions(+), 1 deletion(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 7e363e6..cd3a83d 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -13670,4 +13670,10 @@ Search Settings + + + Global VPN + Force all traffic on the device through this VPN, including work profile and other users. + Force all traffic on the device through this VPN, including work profile and other users. Note: When enabled, you will not be able to use a separate VPN in a work profile or other users + You need to disable all active VPN connections first to enable this diff --git a/res/xml/vpn_app_management.xml b/res/xml/vpn_app_management.xml index dffbbbe..93df378 100644 --- a/res/xml/vpn_app_management.xml +++ b/res/xml/vpn_app_management.xml @@ -23,6 +23,12 @@ android:key="version" android:selectable="false"/> + +