diff --git a/ui/src/main/java/com/wireguard/android/model/TunnelManager.java b/ui/src/main/java/com/wireguard/android/model/TunnelManager.java
index e370f8de..eb818791 100644
--- a/ui/src/main/java/com/wireguard/android/model/TunnelManager.java
+++ b/ui/src/main/java/com/wireguard/android/model/TunnelManager.java
@@ -275,10 +275,7 @@ public final class TunnelManager extends BaseObservable {
return;
}
- /* We disable the below, for now, as the security model of allowing this
- * might take a bit more consideration.
- */
- if (true)
+ if (!Application.getSharedPreferences().getBoolean("allow_remote_control_intents", false))
return;
final State state;
diff --git a/ui/src/main/res/values-hi/strings.xml b/ui/src/main/res/values-hi/strings.xml
index cd2d4eb8..c79341d7 100644
--- a/ui/src/main/res/values-hi/strings.xml
+++ b/ui/src/main/res/values-hi/strings.xml
@@ -118,7 +118,6 @@
संख्या
%1$s “%2$s” को पार्स नहीं कर सकता
पीयर
- किसी एप्लिकेशन को वायरगार्ड टनलस को नियंत्रित करने की अनुमति देता है। इस अनुमति वाले ऐप्स, इंटरनेट ट्रैफ़िक को संभावित रूप से गलत तरीके से वायरगार्ड टनलस को सक्षम और अक्षम कर सकते हैं।
वायरगार्ड टनलस को नियंत्रित करें
लगातार जिंदा रहो
प्री-शेयर्ड कीस
diff --git a/ui/src/main/res/values-id/strings.xml b/ui/src/main/res/values-id/strings.xml
index 2c8bc486..7c6c6a0b 100644
--- a/ui/src/main/res/values-id/strings.xml
+++ b/ui/src/main/res/values-id/strings.xml
@@ -119,7 +119,6 @@
angka
%1$s “%2$s” Tidak dapat diuraikan
Peer
- Memungkinkan aplikasi untuk mengontrol tunel WireGuard. Aplikasi dengan izin ini dapat mengaktifkan dan menonaktifkan tunel WireGuard yang berakibat salah mengatur lalu lintas Internet.
Kontrol tunel WireGuard
Keepalive persisten
Kunci Pra-bersama
diff --git a/ui/src/main/res/values-it/strings.xml b/ui/src/main/res/values-it/strings.xml
index 5496f42e..48f36a2b 100644
--- a/ui/src/main/res/values-it/strings.xml
+++ b/ui/src/main/res/values-it/strings.xml
@@ -111,7 +111,6 @@
numero
Impossibile analizzare %1$s “%2$s”
Peer
- Permette ad un\'app di controllare i tunnel WireGuard. Le app con questa autorizzazione possono attivare e disattivare i tunnel WireGuard a piacimento, potenzialmente deviando il traffico internet.
controlla tunnel WireGuard
Tieni sempre attivo
Chiave condivisa (PSK)
diff --git a/ui/src/main/res/values-ja/strings.xml b/ui/src/main/res/values-ja/strings.xml
index a7627cb5..c753a5d5 100644
--- a/ui/src/main/res/values-ja/strings.xml
+++ b/ui/src/main/res/values-ja/strings.xml
@@ -115,7 +115,6 @@
数値
%1$s の内容を解読できません “%2$s”
ピア
- アプリに WireGuard トンネルの制御を許可します。この権限を持つアプリはトンネルの起動停止ができるようになりますが、インターネットトラフィックが意図しない方向に向かう可能性があります。
control WireGuard tunnels
持続的キープアライブ
事前共有鍵
diff --git a/ui/src/main/res/values-ru/strings.xml b/ui/src/main/res/values-ru/strings.xml
index dc43e78d..eb22fc98 100644
--- a/ui/src/main/res/values-ru/strings.xml
+++ b/ui/src/main/res/values-ru/strings.xml
@@ -118,7 +118,6 @@
число
Не могу разобрать %1$s “%2$s”
Пир
- Приложение сможет управлять туннелями WireGuard. Приложения с таким разрешением могут по желанию включать и отключать туннели WireGuard, что может привести к неправильному перенаправлению интернет-трафика.
управлять туннелями WireGuard
Постоянное соединение
Общий ключ
diff --git a/ui/src/main/res/values-zh-rCN/strings.xml b/ui/src/main/res/values-zh-rCN/strings.xml
index a47351c6..613abf46 100644
--- a/ui/src/main/res/values-zh-rCN/strings.xml
+++ b/ui/src/main/res/values-zh-rCN/strings.xml
@@ -112,7 +112,6 @@
数字
无法解析%1$s “%2$s”
节点 / Peer
- 允许其他应用控制 WireGuard 隧道(开启 / 关闭),但可能会误传一些流量
控制 WireGuard 隧道
连接保活间隔
预共享密钥
diff --git a/ui/src/main/res/values/strings.xml b/ui/src/main/res/values/strings.xml
index 47fd867a..70d92c39 100644
--- a/ui/src/main/res/values/strings.xml
+++ b/ui/src/main/res/values/strings.xml
@@ -26,6 +26,9 @@
Add peer
Addresses
+ Allow remote control apps
+ External apps may toggle tunnels (advanced)
+ External apps may not toggle tunnels (recommended)
Allowed IPs
WireGuard
%1$s\'s %2$s
@@ -121,7 +124,7 @@
number
Cannot parse %1$s “%2$s”
Peer
- Allows an app to control WireGuard tunnels. Apps with this permission may enable and disable WireGuard tunnels at will, potentially misdirecting Internet traffic.
+ control WireGuard tunnels, enabling and disabling tunnels at will, potentially misdirecting Internet traffic
control WireGuard tunnels
Persistent keepalive
Pre-shared key
diff --git a/ui/src/main/res/xml/preferences.xml b/ui/src/main/res/xml/preferences.xml
index d7955052..0f674108 100644
--- a/ui/src/main/res/xml/preferences.xml
+++ b/ui/src/main/res/xml/preferences.xml
@@ -24,4 +24,10 @@
android:summaryOn="@string/dark_theme_summary_on"
android:title="@string/dark_theme_title" />
+