diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-11-27 04:28:48 +0100 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2017-11-27 04:28:48 +0100 |
commit | 6bc6aea2d0a73d866092d7cfb318caf5ff351437 (patch) | |
tree | 3747d314c02a85a151d2b3d21a96bddee096f997 /app/src/main/res | |
parent | ad16d2cc7b5a39c95450f9d7bd26a0895e8af76b (diff) |
NotSupported: check if the module exists
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/not_supported_activity.xml | 9 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 7 |
2 files changed, 15 insertions, 1 deletions
diff --git a/app/src/main/res/layout/not_supported_activity.xml b/app/src/main/res/layout/not_supported_activity.xml new file mode 100644 index 00000000..8e093279 --- /dev/null +++ b/app/src/main/res/layout/not_supported_activity.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<layout xmlns:android="http://schemas.android.com/apk/res/android"> + + <TextView + android:id="@+id/not_supported_message" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:padding="32dp" /> +</layout> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 232dfc56..be537ac1 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -16,15 +16,21 @@ <string name="edit">Edit</string> <string name="enabled">Enabled</string> <string name="endpoint">Endpoint</string> + <string name="error_down">Error bringing down WireGuard tunnel</string> + <string name="error_missing">Missing wg(8) and/or wg-quick(8) in PATH</string> + <string name="error_up">Error bringing up WireGuard tunnel</string> <string name="generate">Generate</string> <string name="hint_automatic">(auto)</string> <string name="hint_generated">(generated)</string> <string name="hint_optional">(optional)</string> <string name="hint_random">(random)</string> <string name="iface">Interface</string> + <string name="import_config">Import</string> <string name="listen_port">Listen port</string> <string name="mtu">MTU</string> <string name="name">Name</string> + <string name="not_supported">WireGuard Not Supported</string> + <string name="not_supported_message"><![CDATA[<p>Your Android device does not currently support the WireGuard kernel module. Please talk to the manufacturer of your Android device or the author of your device\'s ROM about supporting the WireGuard kernel module.</p><br><p>Fortunately, the WireGuard development team is currently in the process of implementing support for WireGuard in a way that will work on all Android devices. This means that while you may not be able to use WireGuard today, in several weeks, things may very well be available for you.</p>]]></string> <string name="peer">Peer</string> <string name="persistent_keepalive">Persistent keepalive</string> <string name="placeholder_text">No configuration selected</string> @@ -41,5 +47,4 @@ <string name="settings">Settings</string> <string name="status">Status</string> <string name="toggle">Toggle</string> - <string name="import_config">Import</string> </resources> |