From 20ecd9840f1e237dba79674b71e49b43b074902e Mon Sep 17 00:00:00 2001
From: pacien
Date: Tue, 8 Dec 2020 16:16:08 +0100
Subject: 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
---
app/src/main/res/layout/configure_activity.xml | 24 ++++--
...ure_tools_configuration_ftp_server_fragment.xml | 86 ++++++++++++++++++++++
app/src/main/res/values-nb-rNO/strings.xml | 1 -
app/src/main/res/values-zh-rCN/strings.xml | 1 -
app/src/main/res/values-zh-rHK/strings.xml | 1 -
app/src/main/res/values-zh-rTW/strings.xml | 1 -
app/src/main/res/values/strings.xml | 8 +-
7 files changed, 110 insertions(+), 12 deletions(-)
create mode 100644 app/src/main/res/layout/configure_tools_configuration_ftp_server_fragment.xml
(limited to 'app/src/main/res')
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 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/values-nb-rNO/strings.xml b/app/src/main/res/values-nb-rNO/strings.xml
index 9c330a7..346a2d1 100644
--- a/app/src/main/res/values-nb-rNO/strings.xml
+++ b/app/src/main/res/values-nb-rNO/strings.xml
@@ -80,7 +80,6 @@
Ugyldig nettverksnavn.
Nettverksoppsett skrevet.
- Sti-info
Oppsettsmappe
Loggingsmappe
tinc-binærfil
diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml
index b5d12b1..536403e 100644
--- a/app/src/main/res/values-zh-rCN/strings.xml
+++ b/app/src/main/res/values-zh-rCN/strings.xml
@@ -80,7 +80,6 @@
网络名称无效。
网络配置写入成功。
- 路径信息
配置目录
日志目录
Tinc 二进制文件
diff --git a/app/src/main/res/values-zh-rHK/strings.xml b/app/src/main/res/values-zh-rHK/strings.xml
index bddb004..e9c48d2 100644
--- a/app/src/main/res/values-zh-rHK/strings.xml
+++ b/app/src/main/res/values-zh-rHK/strings.xml
@@ -80,7 +80,6 @@
網絡名稱無效。
網絡配置寫入成功。
- 路徑信息
配置目錄
日誌目錄
Tinc 二進制文件
diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml
index c423b15..82eec1d 100644
--- a/app/src/main/res/values-zh-rTW/strings.xml
+++ b/app/src/main/res/values-zh-rTW/strings.xml
@@ -80,7 +80,6 @@
網路名稱無效。
網路配置寫入成功。
- 路徑資訊
配置目錄
日誌目錄
Tinc 二進位制檔案
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 770f61c..cae7fe5 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -62,6 +62,7 @@
Errors
Open manual
Could not start tinc
+ Could not start FTP server
Could not read private tinc keys:\n%1$s
Could not read network interface configuration:\n%1$s
Could not bind network interface. Is another VPN running?
@@ -84,7 +85,12 @@
Invalid network name.
Network configuration written.
- Path info
+ Configuration server
+ FTP access
+ User: %1$s, password: %2$s, port: %3$d
+ Not active
+
+ Internal paths info
Configuration directory
Log directory
tinc binary
--
cgit v1.2.3