diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-07-23 16:38:22 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-07-23 17:35:47 +0200 |
commit | 3748a1da8894e5812a213b7b931f24197780b311 (patch) | |
tree | 1677d649c0f48ddfb9adc557f3bfb30bc07a9f86 /ui/src/main/res | |
parent | 9597d719ac4e52c8674f011b3775f5383a9c227d (diff) |
AdminKnobs: allow enterprise admins to disable private key export
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui/src/main/res')
-rw-r--r-- | ui/src/main/res/values/strings.xml | 2 | ||||
-rw-r--r-- | ui/src/main/res/xml/app_restrictions.xml | 13 |
2 files changed, 15 insertions, 0 deletions
diff --git a/ui/src/main/res/values/strings.xml b/ui/src/main/res/values/strings.xml index f3c4eb4e..63703ad6 100644 --- a/ui/src/main/res/values/strings.xml +++ b/ui/src/main/res/values/strings.xml @@ -101,6 +101,8 @@ <string name="dark_theme_summary_on">Currently using dark (night) theme</string> <string name="dark_theme_title">Use dark theme</string> <string name="delete">Delete</string> + <string name="disable_config_export_title">Disable config exporting</string> + <string name="disable_config_export_description">Disabling config exporting makes private keys less accessible</string> <string name="dns_servers">DNS servers</string> <string name="edit">Edit</string> <string name="endpoint">Endpoint</string> diff --git a/ui/src/main/res/xml/app_restrictions.xml b/ui/src/main/res/xml/app_restrictions.xml new file mode 100644 index 00000000..039af8c4 --- /dev/null +++ b/ui/src/main/res/xml/app_restrictions.xml @@ -0,0 +1,13 @@ +<!-- + ~ Copyright © 2020 WireGuard LLC. All Rights Reserved. + ~ SPDX-License-Identifier: Apache-2.0 + --> + +<restrictions xmlns:android="http://schemas.android.com/apk/res/android"> + <restriction + android:defaultValue="false" + android:description="@string/disable_config_export_description" + android:key="disable_config_export" + android:restrictionType="bool" + android:title="@string/disable_config_export_title" /> +</restrictions> |