summaryrefslogtreecommitdiff
path: root/main/src/ui/res/xml
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2019-08-02 12:50:57 +0200
committerArne Schwabe <arne@rfc2549.org>2019-08-05 16:01:34 +0200
commit32b080261845c7508581f9c452d48ffd2401c450 (patch)
tree76d194fedd0ec9e9250a96b4157aa32b3eead627 /main/src/ui/res/xml
parentf72ab87b31044eb5df3a8b6ed802208444d226e3 (diff)
Add skeleton build variant
Diffstat (limited to 'main/src/ui/res/xml')
-rw-r--r--main/src/ui/res/xml/general_settings.xml90
-rw-r--r--main/src/ui/res/xml/vpn_authentification.xml64
-rw-r--r--main/src/ui/res/xml/vpn_ipsettings.xml53
-rw-r--r--main/src/ui/res/xml/vpn_obscure.xml84
-rw-r--r--main/src/ui/res/xml/vpn_routing.xml66
5 files changed, 357 insertions, 0 deletions
diff --git a/main/src/ui/res/xml/general_settings.xml b/main/src/ui/res/xml/general_settings.xml
new file mode 100644
index 00000000..5c2ff8aa
--- /dev/null
+++ b/main/src/ui/res/xml/general_settings.xml
@@ -0,0 +1,90 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (c) 2012-2016 Arne Schwabe
+ ~ Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt
+ -->
+
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools">
+ <PreferenceCategory android:title="@string/appbehaviour" android:key="app_behaviour">
+ <CheckBoxPreference
+ android:defaultValue="true"
+ android:key="showlogwindow"
+ android:summary="@string/show_log_summary"
+ android:title="@string/show_log_window"/>
+
+
+ <CheckBoxPreference
+ android:defaultValue="false"
+ android:key="ovpn3"
+ android:disableDependentsState="true"
+ android:summaryOn="Use the C++ OpenVPN library (experimental)"
+ android:summaryOff="Use OpenVPN 2.x"
+ android:title="OpenVPN 3 Core"/>
+
+
+ <de.blinkt.openvpn.views.DefaultVPNListPreference
+ android:key="alwaysOnVpn"
+ android:title="@string/defaultvpn"
+ tools:summary="@string/defaultvpnsummary"
+ />
+
+ <CheckBoxPreference
+ android:defaultValue="false"
+ android:key="restartvpnonboot"
+ android:summary="@string/onbootrestartsummary"
+ android:title="@string/onbootrestart"/>
+
+ <Preference
+ android:key="clearapi"
+ android:persistent="false"
+ android:title="@string/clear_external_apps"/>
+ </PreferenceCategory>
+
+ <PreferenceCategory android:title="@string/vpnbehaviour">
+ <CheckBoxPreference
+ android:defaultValue="true"
+ android:key="usesystemproxy"
+ android:dependency="ovpn3"
+ android:summary="@string/use_system_proxy_summary"
+ android:title="@string/use_system_proxy"/>
+ <CheckBoxPreference
+ android:defaultValue="true"
+ android:key="netchangereconnect"
+ android:summary="@string/netchange_summary"
+ android:title="@string/netchange"/>
+
+
+ <CheckBoxPreference
+ android:defaultValue="false"
+ android:key="screenoff"
+ android:summary="@string/screenoff_summary"
+ android:title="@string/screenoff_title"/>
+
+ <Preference
+ android:dependency=""
+ android:key="osslspeed"
+ android:persistent="false"
+ android:title="@string/osslspeedtest" />
+ </PreferenceCategory>
+
+ <PreferenceCategory android:title="@string/device_specific" android:key="device_hacks">
+ <CheckBoxPreference
+ android:defaultValue="false"
+ android:key="useCM9Fix"
+ android:summary="@string/owner_fix_summary"
+ android:title="@string/owner_fix"/>
+ <CheckBoxPreference
+ android:defaultValue="false"
+ android:key="loadTunModule"
+ android:summary="@string/setting_loadtun_summary"
+ android:title="@string/setting_loadtun"/>
+ <CheckBoxPreference
+ android:defaultValue="false"
+ android:title="Use internal file browser"
+ android:summary="Always use the very basic file browser instead of the Android file browser. Use this option if you have problems selecting files."
+ android:key="useInternalFileSelector">
+ </CheckBoxPreference>
+ </PreferenceCategory>
+
+</PreferenceScreen> \ No newline at end of file
diff --git a/main/src/ui/res/xml/vpn_authentification.xml b/main/src/ui/res/xml/vpn_authentification.xml
new file mode 100644
index 00000000..458378b7
--- /dev/null
+++ b/main/src/ui/res/xml/vpn_authentification.xml
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="utf-8"?><!--
+ ~ Copyright (c) 2012-2016 Arne Schwabe
+ ~ Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt
+ -->
+
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
+ <PreferenceCategory android:title="@string/tls_settings">
+ <CheckBoxPreference
+ android:key="remoteServerTLS"
+ android:summary="@string/check_remote_tlscert"
+ android:title="@string/check_remote_tlscert_title" />
+ <CheckBoxPreference
+ android:key="checkRemoteCN"
+ android:summary="@string/remote_tlscn_check_summary"
+ android:title="@string/remote_tlscn_check_title" />
+
+ <de.blinkt.openvpn.views.RemoteCNPreference
+ android:dependency="checkRemoteCN"
+ android:key="remotecn"
+ android:title="@string/enter_tlscn_title" />
+
+ <EditTextPreference
+ android:dependency="checkRemoteCN"
+ android:dialogMessage="Field in the X.509 certificate subject to be used as the username (default=CN)."
+ android:key="remotex509name"
+ android:persistent="false"
+ android:title="X509 Username Field" />
+
+ </PreferenceCategory>
+ <PreferenceCategory android:title="@string/tls_authentication">
+ <SwitchPreference
+ android:key="useTLSAuth"
+ android:summary="@string/tls_key_auth"
+ android:title="@string/useTLSAuth" />
+
+ <Preference
+ android:dependency="useTLSAuth"
+ android:key="tlsAuthFile"
+ android:title="@string/tls_auth_file" />
+
+ <ListPreference
+ android:dependency="useTLSAuth"
+ android:entries="@array/tls_directions_entries"
+ android:entryValues="@array/tls_directions_values"
+ android:key="tls_direction"
+ android:persistent="false"
+ android:title="@string/tls_direction" />
+ </PreferenceCategory>
+ <PreferenceCategory android:title="@string/encryption">
+ <EditTextPreference
+ android:dialogMessage="@string/chipher_dialog_message"
+ android:dialogTitle="@string/cipher_dialog_title"
+ android:key="cipher"
+ android:persistent="false"
+ android:title="@string/encryption_cipher" />
+ <EditTextPreference
+ android:dialogMessage="@string/auth_dialog_message"
+ android:dialogTitle="@string/auth_dialog_title"
+ android:key="auth"
+ android:persistent="false"
+ android:title="@string/packet_auth" />
+ </PreferenceCategory>
+
+</PreferenceScreen> \ No newline at end of file
diff --git a/main/src/ui/res/xml/vpn_ipsettings.xml b/main/src/ui/res/xml/vpn_ipsettings.xml
new file mode 100644
index 00000000..5df7ffa8
--- /dev/null
+++ b/main/src/ui/res/xml/vpn_ipsettings.xml
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (c) 2012-2016 Arne Schwabe
+ ~ Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt
+ -->
+
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
+
+ <SwitchPreference
+ android:disableDependentsState="true"
+ android:key="usePull"
+ android:summaryOff="@string/pull_off_summary"
+ android:summaryOn="@string/pull_on_summary"
+ android:title="@string/use_pull" />
+
+ <PreferenceCategory android:title="IP" >
+ <EditTextPreference
+ android:dependency="usePull"
+ android:dialogMessage="@string/ipv4_dialog_title"
+ android:key="ipv4_address"
+ android:title="@string/ipv4_address" />
+ <EditTextPreference
+ android:dependency="usePull"
+ android:dialogMessage="@string/ipv6_dialog_tile"
+ android:key="ipv6_address"
+ android:title="@string/ipv6_address" />
+
+ <CheckBoxPreference
+ android:key="nobind"
+ android:persistent="false"
+ android:summary="@string/nobind_summary"
+ android:title="@string/no_bind" />
+ </PreferenceCategory>
+ <PreferenceCategory android:title="@string/dns" >
+ <CheckBoxPreference
+ android:key="overrideDNS"
+ android:summary="@string/dns_override_summary"
+ android:title="@string/override_dns" />
+
+ <EditTextPreference
+ android:key="searchdomain"
+ android:title="@string/searchdomain" />
+ <EditTextPreference
+ android:dialogMessage="@string/dns1_summary"
+ android:key="dns1"
+ android:title="@string/dns_server" />
+ <EditTextPreference
+ android:dialogMessage="@string/secondary_dns_message"
+ android:key="dns2"
+ android:title="@string/backup_dns" />
+ </PreferenceCategory>
+
+</PreferenceScreen> \ No newline at end of file
diff --git a/main/src/ui/res/xml/vpn_obscure.xml b/main/src/ui/res/xml/vpn_obscure.xml
new file mode 100644
index 00000000..aa78050e
--- /dev/null
+++ b/main/src/ui/res/xml/vpn_obscure.xml
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="utf-8"?><!--
+ ~ Copyright (c) 2012-2016 Arne Schwabe
+ ~ Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt
+ -->
+
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
+ android:title="@string/advanced_settings">
+ <PreferenceCategory android:title="@string/client_behaviour">
+
+ <CheckBoxPreference
+ android:key="usePersistTun"
+ android:persistent="false"
+ android:summary="@string/persisttun_summary"
+ android:title="@string/persistent_tun_title" />
+
+ <CheckBoxPreference
+ android:key="peerInfo"
+ android:summary="@string/pushpeerinfosummary"
+ android:title="@string/pushpeerinfo" />
+ </PreferenceCategory>
+
+ <CheckBoxPreference
+ android:key="useRandomHostname"
+ android:persistent="false"
+ android:summary="@string/random_host_summary"
+ android:title="@string/random_host_prefix" />
+ <CheckBoxPreference
+ android:key="useFloat"
+ android:persistent="false"
+ android:summary="@string/float_summary"
+ android:title="@string/float_title" />
+
+ <PreferenceCategory android:title="@string/payload_options">
+ <CheckBoxPreference
+ android:key="mssFix"
+ android:persistent="false"
+ android:title="@string/mssfix_checkbox" />
+ <EditTextPreference
+ android:dependency="mssFix"
+ android:dialogMessage="@string/mssfix_value_dialog"
+ android:key="mssFixValue"
+ android:persistent="false"
+ android:title="@string/mssfix_dialogtitle" />
+ <EditTextPreference
+ android:key="tunmtu"
+ android:persistent="false"
+ android:title="Tunnel MTU (tun-mtu)"/>
+ </PreferenceCategory>
+ <PreferenceCategory android:title="@string/custom_config_title">
+ <CheckBoxPreference
+ android:key="enableCustomOptions"
+ android:persistent="false"
+ android:summary="@string/custom_config_summary"
+ android:title="@string/custom_config_title" />
+
+ <EditTextPreference
+ android:dependency="enableCustomOptions"
+ android:dialogMessage="@string/custom_option_warning"
+ android:key="customOptions"
+ android:persistent="false"
+ android:title="@string/custom_options_title" />
+ </PreferenceCategory>
+ <PreferenceCategory android:title="@string/reconnection_settings">
+ <ListPreference
+ android:entries="@array/crm_entries"
+ android:entryValues="@array/crm_values"
+ android:key="connectretrymax"
+ android:persistent="false"
+ android:title="@string/connection_retries" />
+
+ <EditTextPreference
+ android:dialogMessage="@string/connectretrymessage"
+ android:key="connectretry"
+ android:persistent="false"
+ android:title="@string/connectretrywait" />
+
+ <EditTextPreference
+ android:dialogMessage="@string/connectretrymaxmessage"
+ android:key="connectretrymaxtime"
+ android:persistent="false"
+ android:title="@string/connectretrymaxtitle" />
+ </PreferenceCategory>
+
+</PreferenceScreen> \ No newline at end of file
diff --git a/main/src/ui/res/xml/vpn_routing.xml b/main/src/ui/res/xml/vpn_routing.xml
new file mode 100644
index 00000000..4b662b25
--- /dev/null
+++ b/main/src/ui/res/xml/vpn_routing.xml
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (c) 2012-2016 Arne Schwabe
+ ~ Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt
+ -->
+
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
+
+ <CheckBoxPreference
+ android:key="routenopull"
+ android:summary="@string/ignore_routes_summary"
+ android:title="@string/ignored_pushed_routes" />
+
+ <CheckBoxPreference
+ android:title="@string/blocklocal_title"
+ android:summary="@string/blocklocal_summary"
+ android:key="unblockLocal"
+ />
+
+ <CheckBoxPreference
+ android:title="@string/title_block_address_families"
+ android:key="blockUnusedAF"
+ android:summary="@string/summary_block_address_families"
+ />
+ <PreferenceCategory android:title="@string/ipv4" >
+ <CheckBoxPreference
+ android:disableDependentsState="true"
+ android:key="useDefaultRoute"
+ android:summary="@string/default_route_summary"
+ android:title="@string/use_default_title" />
+
+ <EditTextPreference
+ android:dependency="useDefaultRoute"
+ android:dialogMessage="@string/custom_route_message"
+ android:key="customRoutes"
+ android:title="@string/custom_routes_title" />
+
+ <EditTextPreference
+ android:dependency="useDefaultRoute"
+ android:dialogMessage="@string/custom_route_message_excluded"
+ android:key="excludedRoutes"
+ android:title="@string/custom_routes_title_excluded" />
+ </PreferenceCategory>
+ <PreferenceCategory android:title="@string/ipv6" >
+ <CheckBoxPreference
+ android:disableDependentsState="true"
+ android:key="useDefaultRoutev6"
+ android:summary="@string/default_route_summary"
+ android:title="@string/use_default_title" />
+
+ <EditTextPreference
+ android:dependency="useDefaultRoutev6"
+ android:dialogMessage="@string/custom_route_message"
+ android:key="customRoutesv6"
+ android:title="@string/custom_routes_title" />
+
+ <!-- disable for now. Not supported by OpenVPN itself -->
+ <EditTextPreference
+ android:enabled="false"
+ android:dependency="useDefaultRoute"
+ android:dialogMessage="@string/custom_route_message_excluded"
+ android:key="excludedRoutesv6"
+ android:title="@string/custom_routes_title_excluded" />
+ </PreferenceCategory>
+
+</PreferenceScreen> \ No newline at end of file