diff options
author | Sam Mortimer <sam@mortimer.me.uk> | 2019-08-15 14:48:00 -0700 |
---|---|---|
committer | Luca Stefani <luca.stefani.ge1@gmail.com> | 2019-08-20 10:53:05 +0200 |
commit | c0d4150a7f5f7c82a0e07215da8752f110a46ddc (patch) | |
tree | ac163e3f042a6b107199847ae5ba4012cbf20a16 | |
parent | 2250c78241e0ac9354fd475cbf22a05361bf1f35 (diff) | |
download | lineage-sdk-c0d4150a7f5f7c82a0e07215da8752f110a46ddc.tar.gz lineage-sdk-c0d4150a7f5f7c82a0e07215da8752f110a46ddc.tar.bz2 lineage-sdk-c0d4150a7f5f7c82a0e07215da8752f110a46ddc.zip |
linage-sdk: Add secure setting to allow tethering via VPN upstream
Change-Id: I4665be19f425c47766f29da5993fd18b19352b4b
-rw-r--r-- | sdk/src/java/lineageos/providers/LineageSettings.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sdk/src/java/lineageos/providers/LineageSettings.java b/sdk/src/java/lineageos/providers/LineageSettings.java index 568c1871..699a7c3e 100644 --- a/sdk/src/java/lineageos/providers/LineageSettings.java +++ b/sdk/src/java/lineageos/providers/LineageSettings.java @@ -3087,6 +3087,14 @@ public final class LineageSettings { public static final Validator VOLUME_PANEL_ON_LEFT_VALIDATOR = sBooleanValidator; + /** + * Whether tethering is allowed to use VPN upstreams + * 0 = false, 1 = true + */ + public static final String TETHERING_ALLOW_VPN_UPSTREAMS = "tethering_allow_vpn_upstreams"; + + public static final Validator TETHERING_ALLOW_VPN_UPSTREAMS_VALIDATOR = sBooleanValidator; + // endregion /** @@ -3196,6 +3204,7 @@ public final class LineageSettings { VALIDATORS.put(NETWORK_TRAFFIC_AUTOHIDE, NETWORK_TRAFFIC_AUTOHIDE_VALIDATOR); VALIDATORS.put(NETWORK_TRAFFIC_UNITS, NETWORK_TRAFFIC_UNITS_VALIDATOR); VALIDATORS.put(NETWORK_TRAFFIC_SHOW_UNITS, NETWORK_TRAFFIC_SHOW_UNITS_VALIDATOR); + VALIDATORS.put(TETHERING_ALLOW_VPN_UPSTREAMS, TETHERING_ALLOW_VPN_UPSTREAMS_VALIDATOR); VALIDATORS.put(TRUST_NOTIFICATIONS, TRUST_NOTIFICATIONS_VALIDATOR); VALIDATORS.put(TRUST_RESTRICT_USB_KEYGUARD, TRUST_RESTRICT_USB_KEYGUARD_VALIDATOR); VALIDATORS.put(TRUST_WARNINGS, TRUST_WARNINGS_VALIDATOR); |