Settings: Add hotspot setting to allow VPN upstreams [2/3]
Change-Id: I34924fe8e60e3d492f219aa6d0ffa54f0bd46e38
diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml
index d700ef6..3ed5052 100644
--- a/res/values/cm_strings.xml
+++ b/res/values/cm_strings.xml
@@ -50,4 +50,8 @@
<!-- PIN scramble -->
<string name="unlock_scramble_pin_layout_title">Scramble layout</string>
<string name="unlock_scramble_pin_layout_summary">Scramble PIN layout when unlocking device</string>
+
+ <!-- Hotspot extras -->
+ <string name="tethering_allow_vpn_upstreams_title">Allow clients to use VPNs</string>
+ <string name="tethering_allow_vpn_upstreams_summary">Permit hotspot clients to use this device\u2019s VPN connections for upstream connectivity</string>
</resources>
diff --git a/res/xml/tether_prefs.xml b/res/xml/tether_prefs.xml
index 89bd631..481f184 100644
--- a/res/xml/tether_prefs.xml
+++ b/res/xml/tether_prefs.xml
@@ -49,6 +49,12 @@
android:summary="@string/ethernet_tethering_subtext"
settings:keywords="@string/keywords_hotspot_tethering" />
+ <com.android.settings.support.SecureSettingSwitchPreference
+ android:key="tethering_allow_vpn_upstreams"
+ android:title="@string/tethering_allow_vpn_upstreams_title"
+ android:summary="@string/tethering_allow_vpn_upstreams_summary"
+ android:defaultValue="false" />
+
<com.android.settingslib.widget.FooterPreference
android:key="disabled_on_data_saver"
android:title="@string/tether_settings_disabled_on_data_saver"