From: Tobias Brunner Date: Fri, 8 Jun 2018 09:57:38 +0000 (+0200) Subject: android: Add settings activity and default profile selection X-Git-Tag: 5.7.0dr5~20^2~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acdac14818d270a097a80c83b69a70848ece06c0;p=thirdparty%2Fstrongswan.git android: Add settings activity and default profile selection The default profile can then be used for a Quick Settings tile or the Always-on VPN feature. --- diff --git a/src/frontends/android/app/build.gradle b/src/frontends/android/app/build.gradle index 4184596025..737787b5e9 100644 --- a/src/frontends/android/app/build.gradle +++ b/src/frontends/android/app/build.gradle @@ -45,6 +45,7 @@ android { dependencies { implementation 'com.android.support:appcompat-v7:26.0.2' implementation 'com.android.support:design:26.0.2' + implementation 'com.android.support:preference-v7:26.0.2' implementation 'com.android.support:support-v4:26.0.2' testImplementation 'junit:junit:4.12' } diff --git a/src/frontends/android/app/src/main/AndroidManifest.xml b/src/frontends/android/app/src/main/AndroidManifest.xml index fc0fb4f578..5d827a34de 100644 --- a/src/frontends/android/app/src/main/AndroidManifest.xml +++ b/src/frontends/android/app/src/main/AndroidManifest.xml @@ -1,6 +1,6 @@ + Einstellungen + Voreingestelltes VPN Profil + Verbinden mit zuletzt verwendetem Profil + Log Logdatei senden @@ -76,8 +81,8 @@ Erweiterte Einstellungen Erweiterte Einstellungen anzeigen Server-Identität - Standardwert ist der konfigurierte Server. Eigene Werte werden explizit and den Server gesendet und während der Authentifizierung erzwungen - Standardwert ist \"%1$s\". Eigene Werte werden explizit and den Server gesendet und während der Authentifizierung erzwungen + Standardwert ist der konfigurierte Server. Eigene Werte werden explizit an den Server gesendet und während der Authentifizierung erzwungen + Standardwert ist \"%1$s\". Eigene Werte werden explizit an den Server gesendet und während der Authentifizierung erzwungen MTU des VPN Tunnel-Device Falls der Standardwert in einem bestimmten Netzwerk nicht geeignet ist Server Port @@ -105,7 +110,7 @@ Für non-AEAD/klassische Verschlüsselungsalgorithmen wird ein Integritätsalgorithmus, eine pseudozufällige Funktion (PRF, optional, ansonsten wird eine auf dem Integritätsalgorithmus basierende verwendet) und eine Diffie-Hellman Gruppe benötigt (z.B. aes256-sha256-ecp256). Für kombinierte/AEAD Algorithmen wird der Integritätsalgorithmus weggelassen aber eine PRF wird benötigt (z.B. aes256gcm16-prfsha256-ecp256). IPsec/ESP Algorithmen Für non-AEAD/klassische Verschlüsselungsalgorithmen wird ein Integritätsalgorithmus benötigt, eine Diffie-Hellman Gruppe ist optional (z.B. aes256-sha256 oder aes256-sha256-ecp256). Für kombinierte/AEAD Algorithmen wird der Integritätsalgorithmus weggelassen (z.B. aes256gcm16 oder aes256gcm16-ecp256). Falls eine DH Gruppe angegeben wird, kommt während dem IPsec SA Rekeying ein DH Schlüsselaustausch zur Anwendung. Beim initialen Verbindungsaufbau hat eine DH Gruppe hier keinen Einfluss, weil die Schlüssel dort von der IKE SA abgeleitet werden. Deshalb wird eine Fehlkonfiguration mit dem Server erst später während dem Rekeying zu einem Fehler führen. - VPN Profile importieren + VPN Profil importieren VPN Profil-Import fehlgeschlagen VPN Profil-Import fehlgeschlagen: %1$s Datei nicht gefunden diff --git a/src/frontends/android/app/src/main/res/values-pl/strings.xml b/src/frontends/android/app/src/main/res/values-pl/strings.xml index 835efd531a..e9c52f14a0 100644 --- a/src/frontends/android/app/src/main/res/values-pl/strings.xml +++ b/src/frontends/android/app/src/main/res/values-pl/strings.xml @@ -32,6 +32,11 @@ VPN connection state Provides information about the VPN connection state and serves as permanent notification to keep the VPN service running in the background. + + Settings + Default VPN profile + Connect to most recently used profile + Log Prześlij log diff --git a/src/frontends/android/app/src/main/res/values-ru/strings.xml b/src/frontends/android/app/src/main/res/values-ru/strings.xml index 53e8375730..5f16eecc81 100644 --- a/src/frontends/android/app/src/main/res/values-ru/strings.xml +++ b/src/frontends/android/app/src/main/res/values-ru/strings.xml @@ -29,6 +29,11 @@ VPN connection state Provides information about the VPN connection state and serves as permanent notification to keep the VPN service running in the background. + + Settings + Default VPN profile + Connect to most recently used profile + Журнал Отправить журнал diff --git a/src/frontends/android/app/src/main/res/values-ua/strings.xml b/src/frontends/android/app/src/main/res/values-ua/strings.xml index 8e41daf914..53bcf71640 100644 --- a/src/frontends/android/app/src/main/res/values-ua/strings.xml +++ b/src/frontends/android/app/src/main/res/values-ua/strings.xml @@ -30,6 +30,11 @@ VPN connection state Provides information about the VPN connection state and serves as permanent notification to keep the VPN service running in the background. + + Settings + Default VPN profile + Connect to most recently used profile + Журнал Відправити файл журналу diff --git a/src/frontends/android/app/src/main/res/values-zh-rCN/strings.xml b/src/frontends/android/app/src/main/res/values-zh-rCN/strings.xml index 0cb6bd087a..72098cc479 100644 --- a/src/frontends/android/app/src/main/res/values-zh-rCN/strings.xml +++ b/src/frontends/android/app/src/main/res/values-zh-rCN/strings.xml @@ -29,6 +29,11 @@ VPN connection state Provides information about the VPN connection state and serves as permanent notification to keep the VPN service running in the background. + + Settings + Default VPN profile + Connect to most recently used profile + 日志 发送日志文件 diff --git a/src/frontends/android/app/src/main/res/values-zh-rTW/strings.xml b/src/frontends/android/app/src/main/res/values-zh-rTW/strings.xml index 168fdd7dd3..ba9fdd044a 100644 --- a/src/frontends/android/app/src/main/res/values-zh-rTW/strings.xml +++ b/src/frontends/android/app/src/main/res/values-zh-rTW/strings.xml @@ -29,6 +29,11 @@ VPN connection state Provides information about the VPN connection state and serves as permanent notification to keep the VPN service running in the background. + + Settings + Default VPN profile + Connect to most recently used profile + 日誌 發送日誌檔 diff --git a/src/frontends/android/app/src/main/res/values/strings.xml b/src/frontends/android/app/src/main/res/values/strings.xml index 13d7187333..cb507beae4 100644 --- a/src/frontends/android/app/src/main/res/values/strings.xml +++ b/src/frontends/android/app/src/main/res/values/strings.xml @@ -32,6 +32,11 @@ VPN connection state Provides information about the VPN connection state and serves as permanent notification to keep the VPN service running in the background. + + Settings + Default VPN profile + Connect to most recently used profile + Log Send log file diff --git a/src/frontends/android/app/src/main/res/values/styles.xml b/src/frontends/android/app/src/main/res/values/styles.xml index 83f34b6e18..4b7cc4c5c9 100644 --- a/src/frontends/android/app/src/main/res/values/styles.xml +++ b/src/frontends/android/app/src/main/res/values/styles.xml @@ -20,6 +20,7 @@ @color/primary @color/primary_dark @style/AlertDialogTheme + @style/PreferenceThemeOverlay