From 488a41cc60636298581c2b44b4706b259fc98a36 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Sat, 21 Apr 2012 18:36:35 +0200 Subject: wip --- res/drawable-hdpi/ic_sysbar_quicksettings.png | Bin 0 -> 773 bytes res/drawable-mdpi/ic_sysbar_quicksettings.png | Bin 0 -> 653 bytes res/drawable-xhdpi/ic_sysbar_quicksettings.png | Bin 0 -> 956 bytes res/layout/config.xml | 40 ++++++++++- res/layout/vpn_preference_layout.xml | 94 +++++++++++++++++++++++++ res/layout/vpn_preference_widget.xml | 8 +++ res/values/arrays.xml | 2 + res/values/strings.xml | 13 ++++ res/xml/vpn_authentification.xml | 11 +++ res/xml/vpn_headers.xml | 46 ++++++++++++ res/xml/vpn_ipsettings.xml | 53 ++++++++++++++ res/xml/vpn_obscure.xml | 42 +++++++++++ res/xml/vpn_overview.xml | 15 ++++ res/xml/vpn_preferences.xml | 7 ++ 14 files changed, 330 insertions(+), 1 deletion(-) create mode 100644 res/drawable-hdpi/ic_sysbar_quicksettings.png create mode 100644 res/drawable-mdpi/ic_sysbar_quicksettings.png create mode 100644 res/drawable-xhdpi/ic_sysbar_quicksettings.png create mode 100644 res/layout/vpn_preference_layout.xml create mode 100644 res/layout/vpn_preference_widget.xml create mode 100644 res/xml/vpn_authentification.xml create mode 100644 res/xml/vpn_headers.xml create mode 100644 res/xml/vpn_ipsettings.xml create mode 100644 res/xml/vpn_obscure.xml create mode 100644 res/xml/vpn_overview.xml create mode 100644 res/xml/vpn_preferences.xml (limited to 'res') diff --git a/res/drawable-hdpi/ic_sysbar_quicksettings.png b/res/drawable-hdpi/ic_sysbar_quicksettings.png new file mode 100644 index 00000000..47b4ba23 Binary files /dev/null and b/res/drawable-hdpi/ic_sysbar_quicksettings.png differ diff --git a/res/drawable-mdpi/ic_sysbar_quicksettings.png b/res/drawable-mdpi/ic_sysbar_quicksettings.png new file mode 100644 index 00000000..79281042 Binary files /dev/null and b/res/drawable-mdpi/ic_sysbar_quicksettings.png differ diff --git a/res/drawable-xhdpi/ic_sysbar_quicksettings.png b/res/drawable-xhdpi/ic_sysbar_quicksettings.png new file mode 100644 index 00000000..a057db8b Binary files /dev/null and b/res/drawable-xhdpi/ic_sysbar_quicksettings.png differ diff --git a/res/layout/config.xml b/res/layout/config.xml index e2ea8aa0..cfe8c6e3 100644 --- a/res/layout/config.xml +++ b/res/layout/config.xml @@ -152,12 +152,50 @@ android:inputType="textPassword" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/res/layout/vpn_preference_widget.xml b/res/layout/vpn_preference_widget.xml new file mode 100644 index 00000000..fef23003 --- /dev/null +++ b/res/layout/vpn_preference_widget.xml @@ -0,0 +1,8 @@ + \ No newline at end of file diff --git a/res/values/arrays.xml b/res/values/arrays.xml index 52e3afd8..eb2c1b1c 100644 --- a/res/values/arrays.xml +++ b/res/values/arrays.xml @@ -4,6 +4,8 @@ Certificates PKCS12 File Android Certficate + Username/Password + Static Keys diff --git a/res/values/strings.xml b/res/values/strings.xml index 4e191d8a..a9c1b1dc 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -80,6 +80,19 @@ Show advanced settings Use TLS Authentication TLS Direction + VPN List + Add OpenVPN Config + Saved VPN Configs + + Enter IPv6 Address/Netmask in CIDR Format (e.g. 2000:dd::23/64) + Enter IPv4 Address/Netmask in CIDR Format (e.g. 1.2.3.4/24) + IPv4 Address + IPv6 Address + Enter custom OpenVPN. Use with great care. Also note that many of the tun related Openvpn settings cannot be supported by design of the VPNSettings. If you think an important option is missing contact the author + Username + Password + For the static configuration the TLS Auth Keys will be used as static keys. + Configure the VPN 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 @@ + + + + + + + \ 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 @@ + + + +
+ android:title="Basic Setting" + +
+ +
+ +
+ + + +
+ + + +
+ + +
+ +
+ + \ 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 @@ + + + + + + + + + + + + + + + + + + + + + + + \ 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 @@ + + + + + + + + + + + + + + + + + + android:key="customOptions" + android:title="Custom Options" /> + + \ 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 @@ + + + + + + + + + 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 @@ + + + + + + -- cgit v1.2.3