From c8463140729b40cca3cb143561d652fa06c6d628 Mon Sep 17 00:00:00 2001 From: Oliver Scott Date: Thu, 8 Jul 2021 10:40:49 -0400 Subject: [PATCH 2/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 730c258..0feb0f6 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -13910,4 +13910,10 @@ Circle to Search Touch and hold the Home button or the navigation handle to search using the content on your screen. + + + 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"/> + +