diff options
Diffstat (limited to 'res/xml')
-rw-r--r-- | res/xml/vpn_authentification.xml | 11 | ||||
-rw-r--r-- | res/xml/vpn_headers.xml | 46 | ||||
-rw-r--r-- | res/xml/vpn_ipsettings.xml | 53 | ||||
-rw-r--r-- | res/xml/vpn_obscure.xml | 42 | ||||
-rw-r--r-- | res/xml/vpn_overview.xml | 15 | ||||
-rw-r--r-- | res/xml/vpn_preferences.xml | 7 |
6 files changed, 174 insertions, 0 deletions
diff --git a/res/xml/vpn_authentification.xml b/res/xml/vpn_authentification.xml new file mode 100644 index 00000000..11ea3abe --- /dev/null +++ b/res/xml/vpn_authentification.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" > + + <CheckBoxPreference + android:key="remoteServerTLS" + android:summary="Checks whether the server use a TLS Server Certificate" + android:title="Except TLS Server" /> + + <de.blinkt.openvpn.VPNConfigPreference + android:title="Whaaaaats UUUUuuuuup?" /> +</PreferenceScreen>
\ No newline at end of file diff --git a/res/xml/vpn_headers.xml b/res/xml/vpn_headers.xml new file mode 100644 index 00000000..7d0ade3f --- /dev/null +++ b/res/xml/vpn_headers.xml @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="utf-8"?> +<preference-headers xmlns:android="http://schemas.android.com/apk/res/android" > + + <header android:summary="Server, port and authentication method. Normally you should only settings specified here." > + android:title="Basic Setting" + <intent + android:targetClass="de.blinkt.openvpn.OpenVPNClient" + android:targetPackage="de.binkt.openvpn" /> + </header> + <!-- android:icon="@drawable/ic_settings_applications" --> + <header + android:fragment="de.blinkt.openvpn.VPNPreferences$IP_Settings" + android:summary="IP Address and Routing" + android:title="IP Settings" /> + + <header + android:fragment="de.blinkt.openvpn.VPNPreferences$Authentication" + android:summary="Authentication" + android:title="Authentication" /> + + + <!-- android:icon="@drawable/ic_settings_display" --> + <header + android:fragment="de.blinkt.openvpn.VPNPreferences$Obscure" + android:summary="Obscure OpenVPN Settings. Normaly not needed." + android:title="Obscure" > + + <!-- + Arbitrary key/value pairs can be included with a header as + arguments to its fragment. + --> + <extra + android:name="someKey" + android:value="someHeaderValue" /> + </header> + + <!-- android:icon="@drawable/ic_settings_display" --> + <header + android:summary="Launches an Intent." + android:title="Intent" > + <intent + android:action="android.intent.action.VIEW" + android:data="http://www.android.com" /> + </header> + +</preference-headers>
\ No newline at end of file diff --git a/res/xml/vpn_ipsettings.xml b/res/xml/vpn_ipsettings.xml new file mode 100644 index 00000000..8aacaaca --- /dev/null +++ b/res/xml/vpn_ipsettings.xml @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="utf-8"?> +<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" > + + <SwitchPreference + android:disableDependentsState="true" + android:key="usePull" + android:title="Pull Settings" /> + + <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" /> + </PreferenceCategory> + <PreferenceCategory android:title="DNS" > + <CheckBoxPreference + android:key="overrideDNS" + android:summary="Override DNS Settings by Server" + android:title="Override DNS Settings" /> + + <EditTextPreference + android:key="searchdomain" + android:title="searchDomain" /> + <EditTextPreference + android:key="dns1" + android:title="DNS Server" /> + <EditTextPreference + android:key="dns2" + android:title="Backup DNS Server" /> + </PreferenceCategory> + <PreferenceCategory android:title="Routing" > + <CheckBoxPreference + android:defaultValue="true" + android:dependency="usePull" + android:disableDependentsState="true" + android:key="useDefaultRoute" + android:summary="Redirects all Traffic over the VPN" + android:title="Use default Route" /> + + <EditTextPreference + android:dependency="useDefaultRoute" + android:dialogMessage="Enter custom routes. Only enter destination in CIDR format. "10.0.0.0/8 2002::/16" would direct the networks 10.0.0.0/8 and 2002::/16 over the VPN." + android:key="customRoutes" + android:title="Custom Routes" /> + </PreferenceCategory> + +</PreferenceScreen>
\ No newline at end of file diff --git a/res/xml/vpn_obscure.xml b/res/xml/vpn_obscure.xml new file mode 100644 index 00000000..09b237f2 --- /dev/null +++ b/res/xml/vpn_obscure.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="utf-8"?> +<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" + android:title="Obscure Settings" > + + <CheckBoxPreference + android:key="useRandomHostname" + android:summary="adds 6 random chars in front of hostname" + android:title="Random Host Prefix" /> + <CheckBoxPreference + android:key="useFloat" + android:summary="Allows authenticated packets from any IP" /> + + <CheckBoxPreference android:key="setmtu" android:title="Set custom MTU" /> + <EditTextPreference + android:dependency="setmtu" + android:defaultValue="1500" + android:title="MTU" /> + + <CheckBoxPreference + android:key="useBWShaping" + android:title="Use bandwidth shaping" /> + + <EditTextPreference + android:key="shaperLimit" + android:title="Bandwidth in byte/s" /> + + <CheckBoxPreference + android:defaultValue="true" + android:key="enableReplayProtection" + android:title="Replay Protection" /> + <CheckBoxPreference + android:summary="Specify custom options. Use with care!" + android:title="Enable Custom Options" + android:key="enableCustomOptions"/> + + <EditTextPreference + android:dependency="enableCustomOptions" + android:dialogMessage="@string/custom_option_warning" /> + android:key="customOptions" + android:title="Custom Options" /> + +</PreferenceScreen>
\ No newline at end of file diff --git a/res/xml/vpn_overview.xml b/res/xml/vpn_overview.xml new file mode 100644 index 00000000..053f2526 --- /dev/null +++ b/res/xml/vpn_overview.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8"?> +<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" + android:title="@string/vpn_settings_activity_title" > + + <PreferenceScreen + android:key="new_vpn" + android:title="@string/new_vpn" /> + + <PreferenceCategory + android:fragment="de.blinkt.openvpn.VPNList$ListFragment" + android:key="vpn_list" + android:title="@string/vpn" > + </PreferenceCategory> + +</PreferenceScreen> diff --git a/res/xml/vpn_preferences.xml b/res/xml/vpn_preferences.xml new file mode 100644 index 00000000..16c330c0 --- /dev/null +++ b/res/xml/vpn_preferences.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="utf-8"?> +<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" + android:title="@string/vpn_settings_activity_title" > + + + +</PreferenceScreen> |