aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorpacien2020-12-08 16:04:48 +0100
committerpacien2020-12-08 16:04:48 +0100
commit69445bffe7a17055ac47a41df5d33fe09b9aff3c (patch)
tree61a00dfe1c0d3085386f40c0c0d8c8cbb427a33b /app/src/main/res
parent9c0aa8bd9dc694854b5c4b5eb07ef4d8942709a8 (diff)
downloadtincapp-69445bffe7a17055ac47a41df5d33fe09b9aff3c.tar.gz
context: read configuration from and write logs and temp files to private app storage
The external app public storage directory is no longer reliably accessible on Android 11 and above. This makes editing the configuration and accessing the log files impossible in some cases. Let's move to the app private storage, to be made accessible to the user by some other mean. This has the benefit of also protecting the private keys that need to be stored encrypted otherwise. We also split the configuration and cache directory into specialised sub-directories. GitHub: related to #103
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/configure_tools_path_info_fragment.xml2
-rw-r--r--app/src/main/res/values-nb-rNO/strings.xml1
-rw-r--r--app/src/main/res/values-zh-rCN/strings.xml1
-rw-r--r--app/src/main/res/values-zh-rHK/strings.xml1
-rw-r--r--app/src/main/res/values-zh-rTW/strings.xml1
-rw-r--r--app/src/main/res/values/strings.xml1
6 files changed, 1 insertions, 6 deletions
diff --git a/app/src/main/res/layout/configure_tools_path_info_fragment.xml b/app/src/main/res/layout/configure_tools_path_info_fragment.xml
index 376fa3d..c6d9777 100644
--- a/app/src/main/res/layout/configure_tools_path_info_fragment.xml
+++ b/app/src/main/res/layout/configure_tools_path_info_fragment.xml
@@ -51,7 +51,7 @@
51 51
52 <TextView 52 <TextView
53 style="@style/AppTheme.BlockContent" 53 style="@style/AppTheme.BlockContent"
54 android:text="@{appPaths.cacheDir().absolutePath}" 54 android:text="@{appPaths.logDir().absolutePath}"
55 android:textIsSelectable="true"/> 55 android:textIsSelectable="true"/>
56 56
57 </LinearLayout> 57 </LinearLayout>
diff --git a/app/src/main/res/values-nb-rNO/strings.xml b/app/src/main/res/values-nb-rNO/strings.xml
index 67a7404..9c330a7 100644
--- a/app/src/main/res/values-nb-rNO/strings.xml
+++ b/app/src/main/res/values-nb-rNO/strings.xml
@@ -74,7 +74,6 @@
74 <string name="start_activity_menu_configure">Sett opp</string> 74 <string name="start_activity_menu_configure">Sett opp</string>
75 <string name="start_network_list_title">Koble til nettverk</string> 75 <string name="start_network_list_title">Koble til nettverk</string>
76 <string name="start_network_list_empty_none_found">Kunne ikke finne noe nettverksoppsett.</string> 76 <string name="start_network_list_empty_none_found">Kunne ikke finne noe nettverksoppsett.</string>
77 <string name="start_network_list_empty_storage_not_available">Fikk ikke tilgang til lagringsmappe.</string>
78 <string name="start_starting_vpn">Starter VPN…</string> 77 <string name="start_starting_vpn">Starter VPN…</string>
79 78
80 <!-- Configure activity --> 79 <!-- Configure activity -->
diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml
index 41662bf..b5d12b1 100644
--- a/app/src/main/res/values-zh-rCN/strings.xml
+++ b/app/src/main/res/values-zh-rCN/strings.xml
@@ -74,7 +74,6 @@
74 <string name="start_activity_menu_configure">配置</string> 74 <string name="start_activity_menu_configure">配置</string>
75 <string name="start_network_list_title">连接到网络</string> 75 <string name="start_network_list_title">连接到网络</string>
76 <string name="start_network_list_empty_none_found">未找到网络配置。</string> 76 <string name="start_network_list_empty_none_found">未找到网络配置。</string>
77 <string name="start_network_list_empty_storage_not_available">无法访问存储目录。</string>
78 <string name="start_starting_vpn">正在启动 VPN…</string> 77 <string name="start_starting_vpn">正在启动 VPN…</string>
79 78
80 <!-- Configure activity --> 79 <!-- Configure activity -->
diff --git a/app/src/main/res/values-zh-rHK/strings.xml b/app/src/main/res/values-zh-rHK/strings.xml
index 770ad46..bddb004 100644
--- a/app/src/main/res/values-zh-rHK/strings.xml
+++ b/app/src/main/res/values-zh-rHK/strings.xml
@@ -74,7 +74,6 @@
74 <string name="start_activity_menu_configure">配置</string> 74 <string name="start_activity_menu_configure">配置</string>
75 <string name="start_network_list_title">連接到網絡</string> 75 <string name="start_network_list_title">連接到網絡</string>
76 <string name="start_network_list_empty_none_found">未找到網絡配置。</string> 76 <string name="start_network_list_empty_none_found">未找到網絡配置。</string>
77 <string name="start_network_list_empty_storage_not_available">無法訪問存儲目錄。</string>
78 <string name="start_starting_vpn">正在啟動 VPN…</string> 77 <string name="start_starting_vpn">正在啟動 VPN…</string>
79 78
80 <!-- Configure activity --> 79 <!-- Configure activity -->
diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml
index 5a1ad16..c423b15 100644
--- a/app/src/main/res/values-zh-rTW/strings.xml
+++ b/app/src/main/res/values-zh-rTW/strings.xml
@@ -74,7 +74,6 @@
74 <string name="start_activity_menu_configure">配置</string> 74 <string name="start_activity_menu_configure">配置</string>
75 <string name="start_network_list_title">連線到網路</string> 75 <string name="start_network_list_title">連線到網路</string>
76 <string name="start_network_list_empty_none_found">未找到網路配置。</string> 76 <string name="start_network_list_empty_none_found">未找到網路配置。</string>
77 <string name="start_network_list_empty_storage_not_available">無法訪問儲存目錄。</string>
78 <string name="start_starting_vpn">正在啟動 VPN…</string> 77 <string name="start_starting_vpn">正在啟動 VPN…</string>
79 78
80 <!-- Configure activity --> 79 <!-- Configure activity -->
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index ff1c361..770f61c 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -78,7 +78,6 @@
78 <string name="start_activity_menu_configure">Configure</string> 78 <string name="start_activity_menu_configure">Configure</string>
79 <string name="start_network_list_title">Connect to network</string> 79 <string name="start_network_list_title">Connect to network</string>
80 <string name="start_network_list_empty_none_found">Could not find any network configuration.</string> 80 <string name="start_network_list_empty_none_found">Could not find any network configuration.</string>
81 <string name="start_network_list_empty_storage_not_available">Could not access storage directory.</string>
82 <string name="start_starting_vpn">Starting VPN…</string> 81 <string name="start_starting_vpn">Starting VPN…</string>
83 82
84 <!-- Configure activity --> 83 <!-- Configure activity -->