diff options
author | pacien | 2020-12-08 16:16:08 +0100 |
---|---|---|
committer | pacien | 2020-12-08 16:16:08 +0100 |
commit | 20ecd9840f1e237dba79674b71e49b43b074902e (patch) | |
tree | 4594947f1faf96e9851d95c9cfc7bfad0c9ff923 /app/src/main/res/layout/configure_activity.xml | |
parent | b1f98caca2f6960f7abb3ef7f7c27b903e1ef929 (diff) | |
download | tincapp-20ecd9840f1e237dba79674b71e49b43b074902e.tar.gz |
app: add configuration FTP server
This is a ridiculous workaround to make the configuration (and other files) accessible to the user
necessary after the new storage access restriction enforced in Android 11 which prevent other
applications from accessing the supposedly public application's directory.
The app's internal private storage directory is now exposed to the user through an embedded FTP
server that the user can turn on and off from the configuration activity. The user can then play
with the configuration and retrieve logs through a remote or local FTP client application of their
choice.
GitHub: closes #103
Diffstat (limited to 'app/src/main/res/layout/configure_activity.xml')
-rw-r--r-- | app/src/main/res/layout/configure_activity.xml | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/app/src/main/res/layout/configure_activity.xml b/app/src/main/res/layout/configure_activity.xml index 6097384..2fde4a2 100644 --- a/app/src/main/res/layout/configure_activity.xml +++ b/app/src/main/res/layout/configure_activity.xml | |||
@@ -2,7 +2,7 @@ | |||
2 | 2 | ||
3 | <!-- | 3 | <!-- |
4 | * Tinc App, an Android binding and user interface for the tinc mesh VPN daemon | 4 | * Tinc App, an Android binding and user interface for the tinc mesh VPN daemon |
5 | * Copyright (C) 2017-2018 Pacien TRAN-GIRARD | 5 | * Copyright (C) 2017-2020 Pacien TRAN-GIRARD |
6 | * | 6 | * |
7 | * This program is free software: you can redistribute it and/or modify | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | 8 | * it under the terms of the GNU General Public License as published by |
@@ -28,23 +28,33 @@ | |||
28 | android:layout_height="wrap_content" | 28 | android:layout_height="wrap_content" |
29 | android:orientation="vertical"> | 29 | android:orientation="vertical"> |
30 | 30 | ||
31 | <TextView | ||
32 | style="@style/AppTheme.SectionTitle" | ||
33 | android:text="@string/configure_activity_title_configuration_server"/> | ||
34 | |||
35 | <fragment | ||
36 | android:id="@+id/configure_activity_configuration_sftp_server_fragment" | ||
37 | android:name="org.pacien.tincapp.activities.configure.ConfigurationFtpServerFragment" | ||
38 | android:layout_width="match_parent" | ||
39 | android:layout_height="wrap_content"/> | ||
40 | |||
31 | <TextView | 41 | <TextView |
32 | style="@style/AppTheme.SectionTitle" | 42 | style="@style/AppTheme.SectionTitle" |
33 | android:text="@string/configure_activity_title_path_info"/> | 43 | android:text="@string/configure_activity_title_tools"/> |
34 | 44 | ||
35 | <fragment | 45 | <fragment |
36 | android:id="@+id/configure_activity_path_info_fragment" | 46 | android:id="@+id/configure_activity_tools_fragment" |
37 | android:name="org.pacien.tincapp.activities.configure.PathInfoFragment" | 47 | android:name="org.pacien.tincapp.activities.configure.ToolsFragment" |
38 | android:layout_width="match_parent" | 48 | android:layout_width="match_parent" |
39 | android:layout_height="wrap_content"/> | 49 | android:layout_height="wrap_content"/> |
40 | 50 | ||
41 | <TextView | 51 | <TextView |
42 | style="@style/AppTheme.SectionTitle" | 52 | style="@style/AppTheme.SectionTitle" |
43 | android:text="@string/configure_activity_title_tools"/> | 53 | android:text="@string/configure_activity_title_internal_paths_info"/> |
44 | 54 | ||
45 | <fragment | 55 | <fragment |
46 | android:id="@+id/configure_activity_tools_fragment" | 56 | android:id="@+id/configure_activity_path_info_fragment" |
47 | android:name="org.pacien.tincapp.activities.configure.ToolsFragment" | 57 | android:name="org.pacien.tincapp.activities.configure.PathInfoFragment" |
48 | android:layout_width="match_parent" | 58 | android:layout_width="match_parent" |
49 | android:layout_height="wrap_content"/> | 59 | android:layout_height="wrap_content"/> |
50 | 60 | ||