From 7f8f1bee30c35c3e8e740dcf1d4b8a84fdfb9296 Mon Sep 17 00:00:00 2001 From: Juan David Vega Date: Sun, 27 Oct 2019 20:40:17 +0100 Subject: [PATCH 1/3] T8539 - Create a new flow to manage trusted networks Summary: I have created a new activity that allows you to trust all networks or add networks one by one to a list when you are connected to that network Test Plan: Test Cases: 1. By default everything should works like it works before, If you uncheck the "Allow all" option in trusted network menu and there isn't any ssid in the trusted network list the app doesn't send the first udp package and log "Current WiFi isn't a Trusted Network" 2. With the "Allow all" uncheck, use "Add: YOUR_SSID_NAME" button to add your current ssid to the trusted networks list, once you added, go back and the app should works as always {F6152314} 1 -> https://youtu.be/ZpCEFTstbJI 2 -> https://youtu.be/cVB1LXlFVyk Reviewers: #kde_connect, jdvr Subscribers: sredman, albertvaka, nicolasfella, apol, kdeconnect Tags: #kde_connect Maniphest Tasks: T8539 Differential Revision: https://phabricator.kde.org/D13505 --- AndroidManifest.xml | 15 +- res/layout/trusted_network_list.xml | 38 +++++ res/menu/pairing.xml | 6 + res/values/strings.xml | 6 + .../Backends/LanBackend/LanLinkProvider.java | 11 ++ .../Helpers/TrustedNetworkHelper.java | 82 ++++++++++ .../UserInterface/PairingFragment.java | 4 + .../TrustedNetworksActivity.java | 148 ++++++++++++++++++ 8 files changed, 309 insertions(+), 1 deletion(-) create mode 100644 res/layout/trusted_network_list.xml create mode 100644 src/org/kde/kdeconnect/Helpers/TrustedNetworkHelper.java create mode 100644 src/org/kde/kdeconnect/UserInterface/TrustedNetworksActivity.java diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 63639f28..48f008c8 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -15,6 +15,7 @@ android:name="android.hardware.telephony" android:required="false" /> + @@ -28,11 +29,12 @@ - + + + + + + + + \ No newline at end of file diff --git a/res/layout/trusted_network_list.xml b/res/layout/trusted_network_list.xml new file mode 100644 index 00000000..5bd6fe61 --- /dev/null +++ b/res/layout/trusted_network_list.xml @@ -0,0 +1,38 @@ + + + + + + + + + + +