summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/res
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-12-19 02:42:00 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2017-12-19 02:42:00 +0100
commit9b92f4d3c5ed263533844d95031d497e3ba7a0ca (patch)
tree1869827cbad898087c5458a3d7fd9ef4bcce34c7 /app/src/main/res
parentecc2a1c7591d1749c95d9fe687ec00753ea0eae2 (diff)
SettingsActivity: allow for installing command line tools
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/values/strings.xml6
-rw-r--r--app/src/main/res/xml/preferences.xml4
2 files changed, 10 insertions, 0 deletions
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index ea4acb78..02d2ac4c 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -60,6 +60,12 @@
<string name="public_key_description">WireGuard public key</string>
<string name="restore_on_boot">Restore on boot</string>
<string name="restore_on_boot_summary">Restore previously enabled configurations on boot</string>
+ <string name="install_cmd_line_tools">Install command line tools</string>
+ <string name="install_cmd_line_tools_summary">Install optional tools for scripting into /system/xbin</string>
+ <string name="install_cmd_line_tools_success">wg and wg-quick installed into /system/xbin</string>
+ <string name="install_cmd_line_tools_progress">Installing wg and wg-quick into /system/xbin</string>
+ <string name="install_cmd_line_tools_already">wg and wg-quick are already installed</string>
+ <string name="install_cmd_line_tools_failure">Command line tools could not be installed</string>
<string name="save">Save</string>
<string name="settings">Settings</string>
<string name="status">Status</string>
diff --git a/app/src/main/res/xml/preferences.xml b/app/src/main/res/xml/preferences.xml
index 95683a16..012e08fa 100644
--- a/app/src/main/res/xml/preferences.xml
+++ b/app/src/main/res/xml/preferences.xml
@@ -9,4 +9,8 @@
android:key="restore_on_boot"
android:summary="@string/restore_on_boot_summary"
android:title="@string/restore_on_boot" />
+ <Preference
+ android:key="install_cmd_line_tools"
+ android:summary="@string/install_cmd_line_tools_summary"
+ android:title="@string/install_cmd_line_tools" />
</PreferenceScreen>